|
@@ -120,8 +120,8 @@ public class JySceneUserAuthServiceImpl extends ServiceImpl<IJySceneUserAuthMapp
|
|
|
|
|
|
|
|
|
@Override
|
|
|
- public void addAuth(JySceneUserAuth param) {
|
|
|
- if(StringUtils.isBlank(param.getNum()) ){
|
|
|
+ public void setAuthType(JySceneUserAuth param) {
|
|
|
+ if(StringUtils.isBlank(param.getNum()) || param.getAuthType() == null){
|
|
|
throw new BusinessException(ResultCode.MISSING_REQUIRED_PARAMETERS);
|
|
|
}
|
|
|
ScenePro pro = sceneProService.getByNum(param.getNum());
|
|
@@ -131,9 +131,19 @@ public class JySceneUserAuthServiceImpl extends ServiceImpl<IJySceneUserAuthMapp
|
|
|
}
|
|
|
|
|
|
jySceneAuthService.updateAuthTypeByNum(param.getNum(),param.getAuthType());
|
|
|
- if(param.getAuthType() == 1){
|
|
|
- return;
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public void addAuth(JySceneUserAuth param) {
|
|
|
+ if(StringUtils.isBlank(param.getNum()) ){
|
|
|
+ throw new BusinessException(ResultCode.MISSING_REQUIRED_PARAMETERS);
|
|
|
}
|
|
|
+ ScenePro pro = sceneProService.getByNum(param.getNum());
|
|
|
+ ScenePlus plus = scenePlusService.getByNum(param.getNum());
|
|
|
+ if(pro == null && plus == null){
|
|
|
+ throw new BusinessException(ResultCode.SCENE_NOT_EXITS);
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
if(StringUtils.isBlank(param.getRyId()) ){
|
|
|
throw new BusinessException(ResultCode.MISSING_REQUIRED_PARAMETERS);
|