yeguodong 1 week ago
parent
commit
129ca7ab3d

+ 1 - 1
src/main/java/thyyxxk/webserver/dao/his/medicalinsurance/SiQueryDao.java

@@ -151,7 +151,7 @@ public interface SiQueryDao {
             "dscgMaindiagName=(select rtrim(dis_diag_comment) from zy_dis_diag_yb where zy_dis_diag_yb.inpatient_no=a.pat_no " +
             "and zy_dis_diag_yb.admiss_times=a.times and zy_dis_diag_yb.dis_diag_no=1), " +
             "chfpdrName=(select rtrim(name) from a_employee_mi where code=c.refer_physician), " +
-            "hosp_part_amt=(select hosp_part_amt from zy_ledger_file where inpatient_no=a.pat_no), " +
+            "hosp_part_amt=(select hosp_part_amt from zy_ledger_file where inpatient_no=a.pat_no and ledger_sn=a.ledger_sn), " +
             "staffName=(select rtrim(name) from a_employee_mi where a_employee_mi.code=a.staff_id), " +
             "a.balc,a.medfee_sumamt,a.hifp_pay,a.acct_pay,a.cvlserv_pay,a.psn_cash_pay, " +
             "a.hifob_pay,a.oth_pay,a.hifmi_pay,a.maf_pay " +