Commit e9dfae8234643f4d79a48a1e3178c7ba45fa91ed

Authored by xp.Huang
1 parent 2ae50db0

fix: 修复只有客户在进行账号编辑时,判断其组织是否已分配了设备

... ... @@ -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());
... ...