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