|
|
@@ -161,7 +161,8 @@ public interface SiZyDao {
|
|
|
@Param("begntime") Date begntime,
|
|
|
@Param("endtime") Date endtime);
|
|
|
|
|
|
- @Select("select a.mdtrt_id,a.psn_no,a.insutype,b.start_time as endtime,b.exec_unit as dscgDeptCodg, " +
|
|
|
+ @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 " +
|
|
|
"where a.pat_no=#{patNo} and a.times=#{times} and a.ledger_sn=#{ledgerSn} " +
|
|
|
@@ -171,7 +172,8 @@ public interface SiZyDao {
|
|
|
@Param("times") int times,
|
|
|
@Param("ledgerSn") int ledgerSn);
|
|
|
|
|
|
- @Select("select a.mdtrt_id,a.psn_no,a.insutype,b.small_dept as dscgDeptCodg, " +
|
|
|
+ @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) " +
|
|
|
"from t_si_pat_info a, zy_actpatient b " +
|
|
|
"where a.pat_no=#{patNo} and a.times=#{times} and a.ledger_sn=#{ledgerSn} " +
|