|
@@ -29,7 +29,7 @@ public interface EmergencyRescueDao {
|
|
|
"psnNo=(select psn_no from t_si_pat_info b where b.pat_no=patient_id and b.times=a.times), " +
|
|
|
"medType=(select med_type from t_si_pat_info b where b.pat_no=patient_id and b.times=a.times), " +
|
|
|
"medListCodg=case when a.medi_item_type=0 then " +
|
|
|
- "(select max(national_code) from zd_charge_item where code=his_item_code) else " +
|
|
|
+ "(select isnull(national_code_27, national_code) from zd_charge_item where code=his_item_code) else " +
|
|
|
"(select max(national_code) from yp_zd_dict where code=his_item_code) end, " +
|
|
|
"bilgDrCodg=(select rtrim(yb_code) from a_employee_mi where code=input_staff) " +
|
|
|
"from t_mt_receipt a where patient_id=#{patNo} and times=#{times} and yb_trans_flag=0")
|