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