lyhzzz 9 ay önce
ebeveyn
işleme
6d47e0b44f

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

@@ -293,10 +293,10 @@ public class JyUserPlatformServiceImpl extends ServiceImpl<IJyUserPlatformMapper
         if(StringUtils.isBlank(param.getName()) || StringUtils.isBlank(param.getIdCard())) {
             throw new BusinessException(ResultCode.MISSING_REQUIRED_PARAMETERS);
         }
-
         JyPlatformUserWait byIdCard = platformUserWaitService.getByIdCard(param.getIdCard());
         if(byIdCard != null){
-            throw new BusinessException(ResultCode.ID_CARD_EXIT);
+            platformUserWaitService.updatePlatformId(byIdCard.getId(),getLoginPlatformId());
+            return;
         }
         JyUser byIdCard1 = jyUserService.getByIdCard(param.getIdCard());