瀏覽代碼

perf: 修复审核次数

Scott 1 年之前
父節點
當前提交
58c59aeb78

+ 4 - 3
jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/medical/service/impl/AfterwardsAuditServiceImpl.java

@@ -132,9 +132,7 @@ public class AfterwardsAuditServiceImpl extends ServiceImpl<AfterwardsAuditMappe
 /*                BigDecimal detailTotalAmt = baseMapper.statisticsErrAmtByAfterwareRecordId(item.getId());
                 item.setErrorRelativelyFewAmt(new BigDecimal("0.00"));
                 item.setErrorRelativelyManyAmt(new BigDecimal("0.00"));
-                if (!StringUtils.hasText(item.getCheckState())) {
-                    item.setCheckState(AfterwardsAuditStatusEnum.wait.getStatus());
-                }
+
                 if (null != detailTotalAmt) {
                     if (detailTotalAmt.compareTo(BigDecimal.ZERO) > 0) { // 异常金额大于0,就是多收
                         item.setErrorRelativelyManyAmt(detailTotalAmt);
@@ -142,6 +140,9 @@ public class AfterwardsAuditServiceImpl extends ServiceImpl<AfterwardsAuditMappe
                         item.setErrorRelativelyFewAmt(detailTotalAmt);
                     }
                 }*/
+                if (!StringUtils.hasText(item.getCheckState())) {
+                    item.setCheckState(AfterwardsAuditStatusEnum.wait.getStatus());
+                }
                 int appealNumber = 0;
                 MedicalDoctorAppealRecord appealRecord = appealRecordService.loadMaxAppealNumber(item.getId(), item.getMedicalDeptCode(), item.getDoctorId());
                 if (null != appealRecord && appealRecord.getAppealNumber() != null) {