lyhzzz 2 年之前
父节点
当前提交
604871c453
共有 1 个文件被更改,包括 6 次插入5 次删除
  1. 6 5
      src/main/java/com/fdkankan/manage/service/impl/JySceneUserAuthServiceImpl.java

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

@@ -68,11 +68,12 @@ public class JySceneUserAuthServiceImpl extends ServiceImpl<IJySceneUserAuthMapp
 
     @Override
     public void addAuth(JySceneUserAuth param) {
-        if(param.getAuthType() != null ){
-            jySceneAuthService.updateAuthTypeByNum(param.getNum(),param.getAuthType());
-            if(param.getAuthType() == 1){
-                return;
-            }
+        if(param.getAuthType() == null ){
+            param.setAuthType(0);
+        }
+        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);