From faa658a837ecb01f95618639c4536c91a5c65d1f Mon Sep 17 00:00:00 2001
From: songhuangfeng123 <shf18767906695@163.com>
Date: 星期三, 03 八月 2022 10:55:59 +0800
Subject: [PATCH] 应急接口fix

---
 emergency/emergency-service/src/main/resource/config/mapper/emergency/EmergencyPlanInfoMapper.xml |    6 +++++-
 1 files changed, 5 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 364caa7..57460fa 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
@@ -32,6 +32,7 @@
             <if test="status != null ">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>
             <if test="authorDeptId != null ">author_dept_id,</if>
             <if test="associatedDanger != null ">associated_danger,</if>
             <if test="type != null and type != ''">`type`,</if>
@@ -48,6 +49,7 @@
             <if test="status != null ">#{status},</if>
             <if test="releaseDate != null ">#{releaseDate},</if>
             <if test="authorUid != null ">#{authorUid},</if>
+            <if test="authorName != null and authorName != ''">#{authorName},</if>
             <if test="authorDeptId != null ">#{authorDeptId},</if>
             <if test="associatedDanger!= null ">#{associatedDanger},</if>
             <if test="type != null and type != ''">#{type},</if>
@@ -65,12 +67,13 @@
         <result column="level" property="level"/>
         <result column="release_date" property="releaseDate"/>
         <result column="author_uid" property="authorUid"/>
+        <result column="author_name" property="authorName"/>
         <result column="author_dept_id" property="authorDeptId"/>
         <result column="associated_danger" property="associatedDanger"/>
     </resultMap>
 
     <select id="selectEmergencyPlanById" resultMap="emergencyPlanInfoDetailDOResult">
-        select id ,`name`,`status`,`type`,`level`,release_date ,author_uid ,author_dept_id ,associated_danger from emergency_plan
+        select id ,`name`,`status`,`type`,`level`,release_date ,author_uid ,author_dept_id ,associated_danger,author_name from emergency_plan
         where del_flag = 0 and id = #{id}
     </select>
 
@@ -82,6 +85,7 @@
             <if test="status != null ">status = #{status},</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>
             <if test="authorDeptId != null ">author_dept_id = #{authorDeptId},</if>
             <if test="associatedDanger != null ">associated_danger = #{associatedDanger},</if>
             <if test="type != null and type != ''">type = #{type},</if>

--
Gitblit v1.9.2