преди 1 година
родител
ревизия
8a4f88d46f
променени са 1 файла, в които са добавени 6 реда и са изтрити 0 реда
  1. 6 0
      platform-service/src/main/java/com/platform/service/sbUnused/impl/SbUnusedServiceImpl.java

+ 6 - 0
platform-service/src/main/java/com/platform/service/sbUnused/impl/SbUnusedServiceImpl.java

@@ -204,6 +204,12 @@ public class SbUnusedServiceImpl extends BaseServiceImpl<SbUnusedMapper, SbUnuse
     public void unusedVerify(String id, SbUnusedDTO dto) {
         UserInfo userInfo = SecurityUtils.getUserInfo();
         SbUnused unused = mapper.selectByPrimaryKey(id);
+        if (unused.getStatus().equals(SbUnusedStatusEnum.verifying_one.getValue()) && !unused.getVerityUserId().equals(userInfo.getUserId()) ){
+            throw new BusinessException("对不起,您没有权限进行本次审核!");
+        }
+        if (unused.getStatus().equals(SbUnusedStatusEnum.verifying_two.getValue()) && !unused.getVerityUserId2().equals(userInfo.getUserId()) ){
+            throw new BusinessException("对不起,您没有权限进行本次审核!");
+        }
         List<String> userIds = new ArrayList<>();
 
         String domain = getAndCheckPcDomain();