|
@@ -68,11 +68,12 @@ public class JySceneUserAuthServiceImpl extends ServiceImpl<IJySceneUserAuthMapp
|
|
|
|
|
|
@Override
|
|
@Override
|
|
public void addAuth(JySceneUserAuth param) {
|
|
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()) ){
|
|
if(StringUtils.isBlank(param.getRyId()) || StringUtils.isBlank(param.getNum()) ){
|
|
throw new BusinessException(ResultCode.MISSING_REQUIRED_PARAMETERS);
|
|
throw new BusinessException(ResultCode.MISSING_REQUIRED_PARAMETERS);
|