Просмотр исходного кода

订单审核-点击领取订单提示超出领取限制,但是在我的审核中,待审核条数未超过10的bug修复

原因:查询待审核数据的时候,没有传审核状态为待审核

订单审核-点击领取订单提示超出领取限制,但是在我的审核中,待审核条数是0
lipf 4 месяцев назад
Родитель
Сommit
c10541eaf2

+ 4 - 3
tenant/insurance/quotation-summary/src/main/java/com/jzg/quotation/summary/service/impl/InsFeeAuditServiceImpl.java

@@ -258,13 +258,14 @@ public class InsFeeAuditServiceImpl extends ServiceImpl<InsFeeAuditMapper, InsFe
                 AssertionUtils.isFail(true, "订单已被" + audit.getReceiveUser() + "领取!");
             }
         }else{
+            int countLimit = 10;
             LambdaQueryWrapper<InsFeeAudit> wrapper = new LambdaQueryWrapper<>();
             // modify by lipf 2026年5月23日10:15:32 判断是领取限制,需要添加一个未审核的状态
             wrapper.eq(InsFeeAudit::getAuditStatus,0);
             wrapper.like(InsFeeAudit::getReceiveUser, userName);
             long count = this.count(wrapper);
-            if(count >= 3){
-                AssertionUtils.isFail(true, "超出10次领取限制,请先审核后再领取订单!");
+            if(count >= countLimit){
+                AssertionUtils.isFail(true, "超出"+countLimit+"次领取限制,请先审核后再领取订单!");
             }else{
                 // 领取订单
                 audit.setReceiveUser(userName);
@@ -317,7 +318,7 @@ public class InsFeeAuditServiceImpl extends ServiceImpl<InsFeeAuditMapper, InsFe
         InsOrdersPdfUrl pdfUrl = ordersPdfUrlService.getById(orderNo);
         AssertionUtils.isFail(Objects.isNull(pdfUrl), "未生成电子保单!");
         String url = null;
-        Integer type = 0;
+        int type = 0;
         if(StringUtils.isNotBlank(pdfUrl.getJqUrl())){
             url = pdfUrl.getJqUrl();
             type = 1;