lyhzzz před 9 měsíci
rodič
revize
6e390c62b9

+ 1 - 0
src/main/java/com/fdkankan/manage/common/ResultCode.java

@@ -92,6 +92,7 @@ public enum ResultCode  {
     PHONE_EXIT(60020, "手机号已存在"),
     PLATFORM_USER_ADDERROR(60021, "该用户身份为平台管理员,无法更改其平台,如需继续,请联系超级管理员更改平台管理员身份后再试"),
     ID_CARD_EXIT2(60022, "该用户已属其他平台,请更换用户后再试"),
+    USER_BAN(60023, "该用户已被禁用,无法添加。"),
     ;
 
     private Integer code;

+ 3 - 0
src/main/java/com/fdkankan/manage/service/impl/JyPlatformServiceImpl.java

@@ -82,6 +82,9 @@ public class JyPlatformServiceImpl extends ServiceImpl<IJyPlatformMapper, JyPlat
             if(jyUser != null && jyUser.getPlatformId() != null  ){
                 throw new BusinessException(ResultCode.ID_CARD_EXIT2);
             }
+            if(jyUser != null && jyUser.getStatus() !=1){
+                throw new BusinessException(ResultCode.USER_BAN);
+            }
             jyPlatform = new JyPlatform();
             BeanUtils.copyProperties(param,jyPlatform);
             this.save(jyPlatform);

+ 1 - 0
src/main/java/com/fdkankan/manage/service/impl/JyUserPlatformServiceImpl.java

@@ -168,6 +168,7 @@ public class JyUserPlatformServiceImpl extends ServiceImpl<IJyUserPlatformMapper
             JyUser user = jyUserService.getByNickName(name);
             if(user != null && user.getPlatformId() == null){
                 updatePlatformUserList.add(user.getId());
+                continue;
             }
             if(user != null ){
                 errorIndex.add(index -3 );