lyhzzz преди 9 месеца
родител
ревизия
09b61d01e8
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      src/main/java/com/fdkankan/manage/service/impl/JyUserPlatformServiceImpl.java

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

@@ -76,10 +76,10 @@ public class JyUserPlatformServiceImpl extends ServiceImpl<IJyUserPlatformMapper
 
         JyUser jyUser = jyUserService.getById(param.getId());
         if(jyUser!= null && jyUser.getStatus() !=1){
-            throw new BusinessException(ResultCode.JY_ID_NO_EXIST);
+            throw new BusinessException(ResultCode.USER_BAN);
         }
         if(jyUser == null){
-            throw new BusinessException(ResultCode.USER_BAN);
+            throw new BusinessException(ResultCode.JY_ID_NO_EXIST);
         }
         SysUser byId = sysUserService.getById(jyUser.getSysUserId());
         if(byId.getRoleId() != 47L ){