From d0b127f34b967b0ef41fab4400a8cd49b3abb91a Mon Sep 17 00:00:00 2001 From: liuchengqian Date: Tue, 21 Jun 2022 14:21:39 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8D=E9=80=9A=E8=BF=87=E7=9A=84=E7=82=B9?= =?UTF-8?q?=E5=8F=AF=E4=BB=A5=E8=A2=AB=E5=AE=A1=E6=A0=B8=E4=B8=BA=E5=B7=B2?= =?UTF-8?q?=E9=80=9A=E8=BF=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/xkrs/service/impl/FirePointServiceImpl.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/xkrs/service/impl/FirePointServiceImpl.java b/src/main/java/com/xkrs/service/impl/FirePointServiceImpl.java index c435796..7ca4fbd 100644 --- a/src/main/java/com/xkrs/service/impl/FirePointServiceImpl.java +++ b/src/main/java/com/xkrs/service/impl/FirePointServiceImpl.java @@ -313,7 +313,7 @@ public class FirePointServiceImpl implements FirePointService { if (existShanDongFirePoint == null) { return outputEncapsulationObject(PromptMessageEnum.PROCESS_FAIL, "审核失败,没有指定的火点编号", locale); } - if ("0".equals(existShanDongFirePoint.getVerifyState())) { + if ("0".equals(existShanDongFirePoint.getVerifyState()) || "2".equals(existShanDongFirePoint.getVerifyState())) { if ("0".equals(verifyState)) { return outputEncapsulationObject(PromptMessageEnum.PROCESS_FAIL, "审核失败,审核状态不能被设置为未审核", locale); } @@ -334,6 +334,7 @@ public class FirePointServiceImpl implements FirePointService { shanDongFirePointDao.updateVerifyStateByFireCode(fireCode, verifyState); return outputEncapsulationObject(PromptMessageEnum.SUCCESS, "修改成功", locale); } + //0或者2可以被审核为1(未审核和未通过可以被审核为通过),已经通过了的就不能再处理了 return outputEncapsulationObject(PromptMessageEnum.PROCESS_FAIL, "审核失败,火点不能被重复审核", locale); }