不通过的点可以被审核为已通过

This commit is contained in:
liuchengqian 2022-06-21 14:21:39 +08:00
parent 963483d534
commit d0b127f34b

View File

@ -313,7 +313,7 @@ public class FirePointServiceImpl implements FirePointService {
if (existShanDongFirePoint == null) { if (existShanDongFirePoint == null) {
return outputEncapsulationObject(PromptMessageEnum.PROCESS_FAIL, "审核失败,没有指定的火点编号", locale); return outputEncapsulationObject(PromptMessageEnum.PROCESS_FAIL, "审核失败,没有指定的火点编号", locale);
} }
if ("0".equals(existShanDongFirePoint.getVerifyState())) { if ("0".equals(existShanDongFirePoint.getVerifyState()) || "2".equals(existShanDongFirePoint.getVerifyState())) {
if ("0".equals(verifyState)) { if ("0".equals(verifyState)) {
return outputEncapsulationObject(PromptMessageEnum.PROCESS_FAIL, "审核失败,审核状态不能被设置为未审核", locale); return outputEncapsulationObject(PromptMessageEnum.PROCESS_FAIL, "审核失败,审核状态不能被设置为未审核", locale);
} }
@ -334,6 +334,7 @@ public class FirePointServiceImpl implements FirePointService {
shanDongFirePointDao.updateVerifyStateByFireCode(fireCode, verifyState); shanDongFirePointDao.updateVerifyStateByFireCode(fireCode, verifyState);
return outputEncapsulationObject(PromptMessageEnum.SUCCESS, "修改成功", locale); return outputEncapsulationObject(PromptMessageEnum.SUCCESS, "修改成功", locale);
} }
//0或者2可以被审核为1未审核和未通过可以被审核为通过已经通过了的就不能再处理了
return outputEncapsulationObject(PromptMessageEnum.PROCESS_FAIL, "审核失败,火点不能被重复审核", locale); return outputEncapsulationObject(PromptMessageEnum.PROCESS_FAIL, "审核失败,火点不能被重复审核", locale);
} }