mirror of https://gitee.com/stylefeng/roses
【7.2.2】【system】更新应用的显示和隐藏接口
parent
dcef277f10
commit
761ffd5007
|
@ -131,13 +131,6 @@ public class SysAppServiceImpl extends ServiceImpl<SysAppMapper, SysApp> impleme
|
|||
@Override
|
||||
public void editStatus(SysAppRequest sysAppParam) {
|
||||
SysApp currentApp = this.querySysApp(sysAppParam);
|
||||
|
||||
// 激活状态的不能被禁用
|
||||
if (YesOrNotEnum.Y.getCode().equals(currentApp.getActiveFlag())
|
||||
&& StatusEnum.DISABLE.getCode().equals(sysAppParam.getStatusFlag())) {
|
||||
throw new SystemModularException(AppExceptionEnum.CANT_DISABLE);
|
||||
}
|
||||
|
||||
currentApp.setStatusFlag(sysAppParam.getStatusFlag());
|
||||
this.updateById(currentApp);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue