【7.2.2】【system】更新应用的显示和隐藏接口

pull/29/head
fengshuonan 2022-04-14 16:09:24 +08:00
parent dcef277f10
commit 761ffd5007
1 changed files with 0 additions and 7 deletions

View File

@ -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);
}