Showing
2 changed files
with
2 additions
and
1 deletions
... | ... | @@ -305,6 +305,7 @@ public interface FastIotConstants { |
305 | 305 | class MagicNumber { |
306 | 306 | public static final int ZERO = 0; |
307 | 307 | public static final int ONE = 1; |
308 | + public static final int THREE = 3; | |
308 | 309 | public static final int TWO = 2; |
309 | 310 | public static final int FOUR = 4; |
310 | 311 | public static final int TEN = 10; | ... | ... |
... | ... | @@ -302,7 +302,7 @@ public class SysUserServiceImpl extends AbstractBaseService<UserMapper, SysUserE |
302 | 302 | throw new TkDataValidationException(ErrorMessage.USERNAME_IS_IMMUTABLE.getMessage()); |
303 | 303 | } |
304 | 304 | |
305 | - if(null != userDTO.getOrganizationIds()){ | |
305 | + if(null != userDTO.getOrganizationIds() && user.getLevel() == MagicNumber.THREE){ | |
306 | 306 | boolean difference = false; |
307 | 307 | //判断客户组织是否有变化 |
308 | 308 | List<String> newList = List.of(userDTO.getOrganizationIds()); | ... | ... |