From f3a1ffc586b88a4b8ae43e664f2cefadd3ba7d24 Mon Sep 17 00:00:00 2001
From: songhuangfeng123 <shf18767906695@163.com>
Date: 星期四, 04 八月 2022 15:04:19 +0800
Subject: [PATCH] 应急预案废止

---
 emergency/emergency-service/src/main/resource/config/mapper/emergency/EmergencyPlanInfoMapper.xml |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/emergency/emergency-service/src/main/resource/config/mapper/emergency/EmergencyPlanInfoMapper.xml b/emergency/emergency-service/src/main/resource/config/mapper/emergency/EmergencyPlanInfoMapper.xml
index 57460fa..d850825 100644
--- a/emergency/emergency-service/src/main/resource/config/mapper/emergency/EmergencyPlanInfoMapper.xml
+++ b/emergency/emergency-service/src/main/resource/config/mapper/emergency/EmergencyPlanInfoMapper.xml
@@ -14,7 +14,8 @@
     </resultMap>
 
     <select id="selectEmergencyPlanList" resultMap="emergencyPlanInfoPageDOResult">
-        select id,`name`,`status`,`type`,`level`,release_date from emergency_plan where del_flag = 0
+        select id,`name`,`status`,`type`,`level`,release_date from emergency_plan
+        where del_flag = 0 and abolish_status = #{query.abolishStatus}
         <if test="query.name != null  and query.name != ''">and `name` like concat('%', #{query.name}, '%')</if>
         <if test="query.type != null  and query.type != ''">and `type` = #{query.type}</if>
     </select>
@@ -30,6 +31,7 @@
             <if test="createUid != null ">create_uid,</if>
             <if test="updateUid != null ">update_uid,</if>
             <if test="status != null ">status,</if>
+            <if test="abolishStatus != null ">abolish_status,</if>
             <if test="releaseDate != null ">release_date,</if>
             <if test="authorUid != null ">author_uid,</if>
             <if test="authorName != null and authorName != ''">`author_name`,</if>
@@ -47,6 +49,7 @@
             <if test="createUid != null ">#{createUid},</if>
             <if test="updateUid != null ">#{updateUid},</if>
             <if test="status != null ">#{status},</if>
+            <if test="abolishStatus != null ">#{abolishStatus},</if>
             <if test="releaseDate != null ">#{releaseDate},</if>
             <if test="authorUid != null ">#{authorUid},</if>
             <if test="authorName != null and authorName != ''">#{authorName},</if>
@@ -83,6 +86,7 @@
             <if test="gmtModitify != null ">gmt_moditify = #{gmtModitify},</if>
             <if test="updateUid != null ">update_uid = #{updateUid},</if>
             <if test="status != null ">status = #{status},</if>
+            <if test="abolishStatus != null ">abolish_status = #{abolishStatus},</if>
             <if test="releaseDate != null ">release_date = #{releaseDate},</if>
             <if test="authorUid != null ">author_uid = #{authorUid},</if>
             <if test="authorName != null and authorName != ''">author_name =#{authorName},</if>
@@ -98,4 +102,7 @@
     <update id="deleteEmergencyPlan">
         update emergency_plan set del_flag = 1 where id = #{id}
     </update>
+    <update id="updateAbolish">
+        update emergency_plan set abolish_status = #{abolishStatus} where id = #{id}
+    </update>
 </mapper>

--
Gitblit v1.9.2