From 761ffd50079856574dabad562d5915e675dc005e Mon Sep 17 00:00:00 2001 From: fengshuonan Date: Thu, 14 Apr 2022 16:09:24 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=907.2.2=E3=80=91=E3=80=90system=E3=80=91?= =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=BA=94=E7=94=A8=E7=9A=84=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E5=92=8C=E9=9A=90=E8=97=8F=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../system/modular/app/service/impl/SysAppServiceImpl.java | 7 ------- 1 file changed, 7 deletions(-) diff --git a/kernel-s-system/system-business-app/src/main/java/cn/stylefeng/roses/kernel/system/modular/app/service/impl/SysAppServiceImpl.java b/kernel-s-system/system-business-app/src/main/java/cn/stylefeng/roses/kernel/system/modular/app/service/impl/SysAppServiceImpl.java index dda128d99..e03abf163 100644 --- a/kernel-s-system/system-business-app/src/main/java/cn/stylefeng/roses/kernel/system/modular/app/service/impl/SysAppServiceImpl.java +++ b/kernel-s-system/system-business-app/src/main/java/cn/stylefeng/roses/kernel/system/modular/app/service/impl/SysAppServiceImpl.java @@ -131,13 +131,6 @@ public class SysAppServiceImpl extends ServiceImpl 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); }