|
@@ -78,7 +78,7 @@ public interface CaseFrontSheetDao extends BaseMapper<CaseFrontsheetMain> {
|
|
|
"transDept=(select rtrim(name) from zd_unit_code where code=zk_ward)," +
|
|
|
"dismissDept=(select rtrim(name) from zd_unit_code where code=isnull(isnull(zk_dept,zk_ward),small_dept))," +
|
|
|
"dismissWard=(select rtrim(name) from zd_unit_code where code=isnull(zk_ward,ward))," +
|
|
|
- "admissDate=admiss_date, " +
|
|
|
+ "admiss_date, med_type," +
|
|
|
"dismissDate=(select start_time from yz_act_order where inpatient_no=#{bah} " +
|
|
|
"and admiss_times=#{times} and status_flag > '1' and isnull (group_no,'00')='00' " +
|
|
|
"and order_code in ('06025','06026','06027','06053','05973')), " +
|
|
@@ -103,14 +103,7 @@ public interface CaseFrontSheetDao extends BaseMapper<CaseFrontsheetMain> {
|
|
|
"lendFlag=isnull(lend_flag, 0), " +
|
|
|
"balance=(select balance+charge_yb from zy_ledger_file where inpatient_no=#{bah} " +
|
|
|
"and admiss_times=#{times} and ledger_sn=(select max(ledger_sn) from zy_ledger_file " +
|
|
|
- "where inpatient_no=#{bah} and admiss_times=#{times}))," +
|
|
|
- "responceType=rtrim(responce_type), " +
|
|
|
- "responceTypeName=(select rtrim(name) from zy_zd_responce_type where code=responce_type), " +
|
|
|
- "ybType=rtrim(yb_type), " +
|
|
|
- "ybTypeName=(select rtrim(name) from zy_zd_yb_type where code=yb_type " +
|
|
|
- "and responce_type=zy_actpatient.responce_type), " +
|
|
|
- "treatType=rtrim(treat_type), " +
|
|
|
- "treatTypeName=(select rtrim(name) from zd_yb_treat_type where code=treat_type) " +
|
|
|
+ "where inpatient_no=#{bah} and admiss_times=#{times})) " +
|
|
|
"from zy_actpatient where inpatient_no=#{bah}")
|
|
|
CaseFrontsheetMain getZyActPatient(@Param("bah") String bah, @Param("times") int times);
|
|
|
|
|
@@ -127,7 +120,7 @@ public interface CaseFrontSheetDao extends BaseMapper<CaseFrontsheetMain> {
|
|
|
"transDept=(select rtrim(name) from zd_unit_code where code=zk_ward)," +
|
|
|
"dismissDept=(select rtrim(name) from zd_unit_code where code=isnull(isnull(zk_dept,zk_ward),small_dept))," +
|
|
|
"dismissWard=(select rtrim(name) from zd_unit_code where code=isnull(zk_ward,ward))," +
|
|
|
- "admissDate=admiss_date, " +
|
|
|
+ "admiss_date, med_type, " +
|
|
|
"dismissDate=(select start_time from yz_inact_order where inpatient_no=#{bah} " +
|
|
|
"and admiss_times=#{times} and status_flag > '1' and isnull (group_no,'00')='00' " +
|
|
|
"and order_code in ('06025','06026','06027','06053','05973')), " +
|