bug:消息修改 #16
|
@ -94,7 +94,9 @@ public class BusinessAop {
|
|||
}
|
||||
Object result = pjp.proceed();
|
||||
log.info("<==[DAO] 返回数据类型 {}", declaringType.descriptorString());
|
||||
log.debug("\t> 传出信息:{}", result.toString());
|
||||
if (result != null) {
|
||||
log.debug("\t> 传出信息:{}", result);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -157,7 +157,7 @@ public class UserServiceImpl implements UserService {
|
|||
if (roleUserDO == null) {
|
||||
return ResultUtil.error(ErrorCode.NOT_PERMISSION);
|
||||
}
|
||||
RoleDO roleDO = roleDAO.getRoleByRoleName("admin");
|
||||
RoleDO roleDO = roleDAO.getRoleByRoleName("console");
|
||||
if (!roleUserDO.getRid().equals(roleDO.getId())) {
|
||||
return ResultUtil.error(ErrorCode.NOT_PERMISSION);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user