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