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