feat(REQ-3714): 如果人被删了,就提示重新操作
This commit is contained in:
parent
b2c4a7c1ee
commit
3ef0b06d61
@ -39,6 +39,7 @@ import com.google.common.collect.Lists;
|
||||
import com.google.common.collect.Sets;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.apache.commons.lang3.ObjectUtils;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
@ -406,7 +407,7 @@ public class NodeUserCheckServiceImpl implements NodeUserCheckService {
|
||||
}
|
||||
throw ResultCode.INVALID_PARAMS.toException("你已经被移出该企业/项目,请及时联系管理员;你可以退出登录或切换到其他企业/项目使用");
|
||||
}
|
||||
if (CollUtil.isEmpty(targets)) {
|
||||
if (ObjectUtils.anyNull(targets)) {
|
||||
throw ResultCode.INVALID_PARAMS.toException("操作对象已经被移出该企业/项目,请刷新页面重新操作");
|
||||
}
|
||||
|
||||
|
||||
@ -171,7 +171,7 @@ public class DeletePlatTeamWorkerProcessor implements NodeUserProcessor {
|
||||
sendWorkerMessage(ouRelation, vs);
|
||||
return;
|
||||
}
|
||||
log.error("获取企业下班组与平台班组关系失败, nodeId:{}", nodeId);
|
||||
log.warn("获取企业下班组与平台班组关系失败, nodeId:{}", nodeId);
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user