소스 검색

修复sql

yeguodong 1 일 전
부모
커밋
fb5b53bedc
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/main/java/thyyxxk/simzfeeoprnsystm/dao/SiMzDao.java

+ 1 - 1
src/main/java/thyyxxk/simzfeeoprnsystm/dao/SiMzDao.java

@@ -133,7 +133,7 @@ public interface SiMzDao {
             "psn_cert_type,certno,med_type,insuplc_admdvs, " +
             "medfeeSumamt=(select sum(t.charge_fee) from t_mt_receipt t " +
             "left join mz_charge_detail m on m.patient_id=t.patient_id and m.times=t.times and m.charge_item_code=t.his_item_code " +
-            "where t.patient_id=#{patNo} and t.times=#{times} and m.serial != '01') " +
+            "where t.patient_id=#{patNo} and t.times=#{times} and m.serial != '01'), " +
             "mdtrt_id,insutype,fulamt_ownpay_amt,overlmt_amt as overlmtSelfpay, " +
             "preselfpay_amt,inscp_scp_amt " +
             "from t_si_pat_info where pat_no=#{patNo} and times=#{times}")