lighter 3 жил өмнө
parent
commit
67d53d914a

+ 4 - 4
src/main/java/thyyxxk/simzfeeoprnsystm/service/SiMzFeeService.java

@@ -539,6 +539,10 @@ public class SiMzFeeService {
         if (MzgjUtil.inProcessing(param.getPatientId())) {
             return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "此患者上一次的共济流程尚未结束,请稍后再试。");
         }
+        ResultVo<FundDetail> setlfund = getFundDetailByPatientInfo(param.getPatientId(), param.getTimes());
+        if (setlfund != null) {
+            return setlfund;
+        }
         MzgjUtil.addProcess(param.getPatientId());
         try {
             return executeMzgj(param);
@@ -555,10 +559,6 @@ public class SiMzFeeService {
             mzDao.updateMzTimes(param.getPatientId(), param.getTimes());
         }
         mzDao.deleteTempPatinfo(param.getPatientId(), param.getTimes());
-        ResultVo<FundDetail> setlfund = getFundDetailByPatientInfo(param.getPatientId(), param.getTimes());
-        if (setlfund != null) {
-            return setlfund;
-        }
         MzPatientInfo mzptnt = new MzPatientInfo();
         mzptnt.setStaffId(param.getStaffId());
         mzptnt.setPatNo(param.getPatientId());