Procházet zdrojové kódy

门诊统筹支付结算单打印逻辑调整

hurugang před 3 roky
rodič
revize
6a198b6353

+ 8 - 8
src/main/java/cn/hnthyy/thmz/mapper/his/mz/MzDepositFileMapper.java

@@ -269,14 +269,14 @@ public interface MzDepositFileMapper {
 //    @Select(" select sum(amount) from ${tableName} where patient_id =#{patientId} and times=#{times} and pay_mark <> 2 ")
 //    BigDecimal selectAmountForPatientId(@Param(value = "patientId") String patientId, @Param("times") Integer times, @Param("tableName") String tableName);
 
-    /**
-     * 查询患者的处方是否有医保报销支付(门诊统筹)
-     * @param patientId
-     * @param times
-     * @return
-     */
-    @Select("select count(1) from mz_deposit_file where patient_id =#{patientId} and times=#{times} and pay_mark =0 and cheque_type='2' ")
-    int countYbZf(@Param(value = "patientId") String patientId, @Param("times") Integer times);
+//    /**
+//     * 查询患者的处方是否有医保报销支付(门诊统筹)
+//     * @param patientId
+//     * @param times
+//     * @return
+//     */
+//    @Select("select count(1) from mz_deposit_file where patient_id =#{patientId} and times=#{times} and pay_mark =0 and cheque_type='2' ")
+//    int countYbZf(@Param(value = "patientId") String patientId, @Param("times") Integer times);
 
 
     /**

+ 10 - 0
src/main/java/cn/hnthyy/thmz/mapper/his/mz/MzPatientMiMapper.java

@@ -219,4 +219,14 @@ public interface MzPatientMiMapper {
      */
     @Select("select fund_pay_sumamt,acct_pay from t_si_setlinfo where pat_no=#{patientId} and times=#{times} and revoked=0")
     Map<String,BigDecimal>  selectYbAmount(@Param("patientId") String patientId,@Param("times") Integer times);
+
+
+    /**
+     * 查询患者的处方是否有医保报销支付(门诊统筹)
+     * @param patientId
+     * @param times
+     * @return
+     */
+    @Select("select count(1) from t_si_setlinfo where pat_no=#{patientId} and times=#{times} and revoked=0 ")
+    int countYbZf(@Param(value = "patientId") String patientId, @Param("times") Integer times);
 }

+ 1 - 1
src/main/java/cn/hnthyy/thmz/service/impl/his/mz/MzChargeDetailServiceImpl.java

@@ -218,7 +218,7 @@ public class MzChargeDetailServiceImpl implements MzChargeDetailService {
                         }
                     }
                 }
-                mzChargeDetail.setCountYbZf(mzDepositFileMapper.countYbZf(mzChargeDetail.getPatientId(), mzChargeDetail.getTimes()));
+                mzChargeDetail.setCountYbZf(mzPatientMiMapper.countYbZf(mzChargeDetail.getPatientId(), mzChargeDetail.getTimes()));
             }
         }
         return mzChargeDetailList;