|
@@ -21,13 +21,14 @@ import java.util.List;
|
|
|
public interface JieShouHuiZhenDao {
|
|
|
|
|
|
@Select("select bed_no,name,a.admiss_times,a.inpatient_no,req_times,hz_type," +
|
|
|
- "dept_code_name = (select rtrim(name) from zd_unit_code with (nolock) where code = dept_code), " +
|
|
|
+ "dept_code_name = (select rtrim(name) from zd_unit_code with (nolock) where code = a.dept_code), " +
|
|
|
"req_dept1_name = (select rtrim(name) from zd_unit_code with (nolock) where code = req_dept1)," +
|
|
|
" admiss_date " +
|
|
|
"from ysh_hz_record a with(nolock) " +
|
|
|
" inner join view_zy_patient_all b with(nolock) on " +
|
|
|
- " (b.inpatient_no = a.inpatient_no and a.admiss_times = b.admiss_times)" +
|
|
|
- " ${ew.customSqlSegment} ")
|
|
|
+ " (b.inpatient_no = a.inpatient_no and a.admiss_times = b.admiss_times),view_yz_all_order c " +
|
|
|
+ " ${ew.customSqlSegment} and a.act_order_no = c.act_order_no " +
|
|
|
+ " and c.status_flag not in ('1', '2')")
|
|
|
List<JieShouHuiZhenPojo> getHuiZhenData(@Param(Constants.WRAPPER) QueryWrapper<?> queryWrapper);
|
|
|
|
|
|
|