From f978eedf58a91824daa4171b5510cd4dac699a50 Mon Sep 17 00:00:00 2001 From: liuchengqian Date: Thu, 2 Jun 2022 11:38:55 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=B9=E6=8D=AE=E7=81=AB=E7=82=B9=E7=BC=96?= =?UTF-8?q?=E5=8F=B7=E6=9B=B4=E6=96=B0=E5=AE=A1=E6=A0=B8=E7=8A=B6=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../xkrs/controller/FirePointController.java | 13 +++++ .../com/xkrs/dao/ShanDongFirePointDao.java | 9 ++++ .../qo/ShanDongFirePointVerifyStateQo.java | 38 +++++++++++++++ .../ShanDongFirePointVerifyStateQoUpdate.java | 4 ++ .../com/xkrs/service/FirePointService.java | 6 +++ .../service/impl/FirePointServiceImpl.java | 48 +++++++++++++++++++ 6 files changed, 118 insertions(+) create mode 100644 src/main/java/com/xkrs/model/qo/ShanDongFirePointVerifyStateQo.java create mode 100644 src/main/java/com/xkrs/model/validation/ShanDongFirePointVerifyStateQoUpdate.java diff --git a/src/main/java/com/xkrs/controller/FirePointController.java b/src/main/java/com/xkrs/controller/FirePointController.java index 153efb7..16ef68e 100644 --- a/src/main/java/com/xkrs/controller/FirePointController.java +++ b/src/main/java/com/xkrs/controller/FirePointController.java @@ -9,6 +9,7 @@ import com.xkrs.model.entity.FirePointEntity; import com.xkrs.model.entity.SysUserEntity; import com.xkrs.model.qo.AuditFireTypeQo; import com.xkrs.model.qo.FirePointQo; +import com.xkrs.model.qo.ShanDongFirePointVerifyStateQo; import com.xkrs.model.vo.AppTaskBodyVo; import com.xkrs.service.FirePointService; import com.xkrs.service.StreetService; @@ -64,6 +65,18 @@ public class FirePointController { } } + /** + * 根据火点编号更新审核状态 + * 操作1:将火点编号对应的火点从山东火点表转存到火点表 + * 操作2:将山东火点表中的这个火点的审核状态更新 + */ + @PostMapping("/updateverifystatebyfirecode") + public String updateVerifyStateByFireCode(@RequestBody ShanDongFirePointVerifyStateQo shanDongFirePointVerifyStateQo) { + String fireCode = shanDongFirePointVerifyStateQo.getFireCode(); + String verifyState = shanDongFirePointVerifyStateQo.getVerifyState(); + return firePointService.updateVerifyStateByFireCode(fireCode, verifyState); + } + /** * 根据火点编码修改审核火点状态 */ diff --git a/src/main/java/com/xkrs/dao/ShanDongFirePointDao.java b/src/main/java/com/xkrs/dao/ShanDongFirePointDao.java index 7afad1c..eb755d7 100644 --- a/src/main/java/com/xkrs/dao/ShanDongFirePointDao.java +++ b/src/main/java/com/xkrs/dao/ShanDongFirePointDao.java @@ -3,6 +3,8 @@ package com.xkrs.dao; import com.xkrs.model.entity.ShanDongFirePointEntity; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data.jpa.repository.JpaSpecificationExecutor; +import org.springframework.data.jpa.repository.Modifying; +import org.springframework.data.jpa.repository.Query; import org.springframework.stereotype.Component; @Component @@ -16,4 +18,11 @@ public interface ShanDongFirePointDao extends JpaRepository