From 66af8e39cf2bd10c953c870f3d009b46a9b88a7d Mon Sep 17 00:00:00 2001 From: JiilingLee <462362@qq.com> Date: Fri, 20 Oct 2023 10:30:30 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E4=BA=A4=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/admin/turnover/vo/TurnOverCreateReqVO.java | 5 ----- .../archives/service/turnover/TurnOverServiceImpl.java | 1 + 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/yudao-module-archives/yudao-module-archives-biz/src/main/java/cn/iocoder/yudao/module/archives/controller/admin/turnover/vo/TurnOverCreateReqVO.java b/yudao-module-archives/yudao-module-archives-biz/src/main/java/cn/iocoder/yudao/module/archives/controller/admin/turnover/vo/TurnOverCreateReqVO.java index 5689f107..90f832d4 100644 --- a/yudao-module-archives/yudao-module-archives-biz/src/main/java/cn/iocoder/yudao/module/archives/controller/admin/turnover/vo/TurnOverCreateReqVO.java +++ b/yudao-module-archives/yudao-module-archives-biz/src/main/java/cn/iocoder/yudao/module/archives/controller/admin/turnover/vo/TurnOverCreateReqVO.java @@ -13,9 +13,4 @@ import javax.validation.constraints.*; public class TurnOverCreateReqVO extends TurnOverBaseVO { @Schema(description = "id") private Long id; - @AssertTrue(message = "状态只能是0或者1提交") - public boolean isStatusValid() { - //只能传未提交和待审核 - return getStatus().equals(ArchivesStatusEnum.NOSUBMIT.getValue()) || getStatus().equals(ArchivesStatusEnum.PROCESS.getValue()); - } } diff --git a/yudao-module-archives/yudao-module-archives-biz/src/main/java/cn/iocoder/yudao/module/archives/service/turnover/TurnOverServiceImpl.java b/yudao-module-archives/yudao-module-archives-biz/src/main/java/cn/iocoder/yudao/module/archives/service/turnover/TurnOverServiceImpl.java index 3cb9ae22..61baaa68 100644 --- a/yudao-module-archives/yudao-module-archives-biz/src/main/java/cn/iocoder/yudao/module/archives/service/turnover/TurnOverServiceImpl.java +++ b/yudao-module-archives/yudao-module-archives-biz/src/main/java/cn/iocoder/yudao/module/archives/service/turnover/TurnOverServiceImpl.java @@ -59,6 +59,7 @@ public class TurnOverServiceImpl extends MPJBaseServiceImpl