Browse Source

no message

FengChaoYu 4 months ago
parent
commit
b6d836db49

+ 11 - 0
mall-server-api/src/main/java/com/gree/mall/manager/logic/workorder/AppraiseRelaLogic.java

@@ -521,6 +521,17 @@ public class AppraiseRelaLogic {
             throw new RemoteServiceException("有“驳回不可再申诉信息”申诉记录,不能操作“驳回可再申诉”");
         }
 
+        final List<String> orderIds = applyList.stream().map(PgAppraiseApply::getOrderBaseId).distinct().collect(Collectors.toList());
+
+        count = pgAppraiseApplyService.lambdaQuery()
+                .isNotNull(PgAppraiseApply::getCloseTime)
+                .in(PgAppraiseApply::getOrderBaseId, orderIds)
+                .count();
+
+        if (count > 0) {
+            throw new RemoteServiceException("有“驳回不可再申诉信息”申诉记录,不能操作“驳回可再申诉”");
+        }
+
         for (PgAppraiseApply apply : applyList) {
             if (Objects.nonNull(apply.getRejectTime())) {
                 throw new RemoteServiceException(apply.getOrderBaseId() + "工单编号的申诉记录有“驳回可重申诉信息”,不能操作“驳回可再申诉”");