Browse Source

解决重复,基金支付信息。

xiaochan 3 years ago
parent
commit
22747d6999

+ 3 - 2
src/main/java/thyyxxk/webserver/dao/his/medicalinsurance/UpIdCollectionDao.java

@@ -193,8 +193,9 @@ public interface UpIdCollectionDao {
                                    @Param("times") Integer times);
 
     // 基金支付信息
-    @Select("select fund_pay_type,fund_payamt=cast(fund_payamt as decimal(16,2)) from t_si_setldetail " +
-            "where pat_no = #{patNo} and times = #{times} and ledger_sn = #{ledgerSn} ")
+    @Select("select fund_pay_type,fund_payamt=cast(sum(fund_payamt) as decimal(16,2)) from t_si_setldetail " +
+            "where pat_no = #{patNo} and times = #{times} and ledger_sn = #{ledgerSn} " +
+            "group by fund_pay_type ")
     List<PayinfoUpld> payinfoUpld(@Param("patNo") String patNo,
                                   @Param("times") Integer times,
                                   @Param("ledgerSn") Integer ledgerSn);