lyhzzz 2 lat temu
rodzic
commit
8692737756

+ 5 - 6
src/main/java/com/fdkankan/manage/service/impl/JySceneUserAuthServiceImpl.java

@@ -68,12 +68,11 @@ public class JySceneUserAuthServiceImpl extends ServiceImpl<IJySceneUserAuthMapp
 
     @Override
     public void addAuth(JySceneUserAuth param) {
-        if(param.getAuthType() == null || StringUtils.isBlank(param.getNum())){
-            throw new BusinessException(ResultCode.MISSING_REQUIRED_PARAMETERS);
-        }
-        jySceneAuthService.updateAuthTypeByNum(param.getNum(),param.getAuthType());
-        if(param.getAuthType() == 1){
-            return;
+        if(param.getAuthType() != null ){
+            jySceneAuthService.updateAuthTypeByNum(param.getNum(),param.getAuthType());
+            if(param.getAuthType() == 1){
+                return;
+            }
         }
         if(StringUtils.isBlank(param.getRyId()) || StringUtils.isBlank(param.getNum()) ){
             throw new BusinessException(ResultCode.MISSING_REQUIRED_PARAMETERS);