代码缺陷问题处理

This commit is contained in:
Chopper
2021-05-13 15:03:11 +08:00
parent 3785bdb3bb
commit 453b4426d8
16 changed files with 54 additions and 166 deletions

View File

@@ -144,7 +144,7 @@ public class AdminUserManagerController {
public ResultMessage<Object> register(AdminUserDTO adminUser,
@RequestParam(required = false) List<String> roles) {
try {
if (roles != null & roles.size() >= 10) {
if (roles != null && roles.size() >= 10) {
return ResultUtil.error(ResultCode.PERMISSION_BEYOND_TEN);
}
adminUserService.saveAdminUser(adminUser, roles);