|
@@ -88,15 +88,8 @@ public class CheckCurrenUserAspect {
|
|
|
}
|
|
|
}
|
|
|
else if((user != null && entity != null) && entity.getUserId() != null && (user.getId().longValue() != entity.getUserId().longValue())){
|
|
|
- SceneCooperation sceneCooperation = sceneCooperationService.getByNum(sceneNum);
|
|
|
+ SceneCooperation sceneCooperation = sceneCooperationService.getByNumAndUserId(sceneNum, user.getId());
|
|
|
if(Objects.nonNull(sceneCooperation)){
|
|
|
- if(sceneCooperation.getUserId().longValue() != user.getId().longValue()){
|
|
|
- log.info(getCheckUserMthodDescription(joinPoint));
|
|
|
- log.info("不是当前用户的方法:"
|
|
|
- + (joinPoint.getTarget().getClass().getName() + "." + joinPoint.getSignature().getName() + "()"));
|
|
|
- throw new BusinessException(ErrorCode.FAILURE_CODE_5014);
|
|
|
- }
|
|
|
- }else {
|
|
|
log.info(getCheckUserMthodDescription(joinPoint));
|
|
|
log.info("不是当前用户的方法:"
|
|
|
+ (joinPoint.getTarget().getClass().getName() + "." + joinPoint.getSignature().getName() + "()"));
|