|
@@ -162,19 +162,19 @@ public interface SiZyDao {
|
|
|
@Param("endtime") Date endtime);
|
|
|
|
|
|
@Select("select a.mdtrt_id,a.psn_no,a.insutype,b.start_time as endtime, " +
|
|
|
- "dscgDeptCodg=(select si_caty from zd_unit_code where code=b.exec_unit)," +
|
|
|
- "dscgDeptName=(select rtrim(name) from zd_unit_code where code=b.exec_unit) " +
|
|
|
- "from t_si_pat_info a, yz_act_order b " +
|
|
|
+ "dscgDeptCodg=(select si_caty from zd_unit_code where code=c.zk_ward)," +
|
|
|
+ "dscgDeptName=(select rtrim(name) from zd_unit_code where code=c.zk_ward) " +
|
|
|
+ "from t_si_pat_info a, yz_act_order b,zy_actpatient c " +
|
|
|
"where a.pat_no=#{patNo} and a.times=#{times} and a.ledger_sn=#{ledgerSn} " +
|
|
|
- "and a.pat_no=b.inpatient_no and a.times=b.admiss_times " +
|
|
|
+ "and a.pat_no=b.inpatient_no and a.times=b.admiss_times and a.pat_no=c.inpatient_no " +
|
|
|
"and b.status_flag>'1' and isnull(b.group_no, '00')='00' and b.order_code in ('06026','06053','05973')")
|
|
|
Dscginfo selectDscginfo(@Param("patNo") String patNo,
|
|
|
@Param("times") int times,
|
|
|
@Param("ledgerSn") int ledgerSn);
|
|
|
|
|
|
@Select("select a.mdtrt_id,a.psn_no,a.insutype, " +
|
|
|
- "dscgDeptCodg=(select si_caty from zd_unit_code where code=b.small_dept), " +
|
|
|
- "dscgDeptName=(select rtrim(name) from zd_unit_code where code=b.small_dept) " +
|
|
|
+ "dscgDeptCodg=(select si_caty from zd_unit_code where code=b.zk_ward), " +
|
|
|
+ "dscgDeptName=(select rtrim(name) from zd_unit_code where code=b.zk_ward) " +
|
|
|
"from t_si_pat_info a, zy_actpatient b " +
|
|
|
"where a.pat_no=#{patNo} and a.times=#{times} and a.ledger_sn=#{ledgerSn} " +
|
|
|
"and a.pat_no=b.inpatient_no and a.times=b.admiss_times ")
|