1 tahun lalu
induk
melakukan
8a4f88d46f

+ 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();