From c604f08ffc5264165a25d15b3eeef87c72ed8489 Mon Sep 17 00:00:00 2001
From: songhuangfeng123 <shf18767906695@163.com>
Date: 星期二, 05 七月 2022 18:05:34 +0800
Subject: [PATCH] 应急队伍详情

---
 emergency/emergency-service/src/main/resource/config/mapper/emergency/EmergencyTeamMemberInfoMapper.xml |   37 ++++++++++++++++++++++++++-----------
 1 files changed, 26 insertions(+), 11 deletions(-)

diff --git a/emergency/emergency-service/src/main/resource/config/mapper/emergency/EmergencyTeamMemberInfoMapper.xml b/emergency/emergency-service/src/main/resource/config/mapper/emergency/EmergencyTeamMemberInfoMapper.xml
index 6aab788..a55b8e1 100644
--- a/emergency/emergency-service/src/main/resource/config/mapper/emergency/EmergencyTeamMemberInfoMapper.xml
+++ b/emergency/emergency-service/src/main/resource/config/mapper/emergency/EmergencyTeamMemberInfoMapper.xml
@@ -8,22 +8,22 @@
         insert into emergency_team_Member(
         <if test="id != null ">id,</if>
         <if test="delFlag != null ">del_flag,</if>
-        <if test="gmtCreate != null and gmtCreate != ''">gmt_create,</if>
-        <if test="gmtModitify != null and gmtModitify != ''">gmt_moditify,</if>
+        <if test="gmtCreate != null ">gmt_create,</if>
+        <if test="gmtModitify != null ">gmt_moditify,</if>
         <if test="createUid != null ">create_uid,</if>
         <if test="updateUid != null ">update_uid,</if>
         <if test="teamId != null ">team_id,</if>
-        <if test="userUid != null ">#{user_uid},</if>
-        <if test="gender != null ">#{gender},</if>
-        <if test="jobNumber != null and jobNumber != ''">#{job_number},</if>
-        <if test="name != null and name != ''">#{name},</if>
-        <if test="phone != null and phone != ''">#{phone},</if>
-        <if test="position != null and position != ''">#{position},</if>
+        <if test="userUid != null ">user_uid,</if>
+        <if test="gender != null ">gender,</if>
+        <if test="jobNumber != null and jobNumber != ''">job_number,</if>
+        <if test="name != null and name != ''">`name`,</if>
+        <if test="phone != null and phone != ''">phone,</if>
+        <if test="position != null and position != ''">`position`</if>
         )values(
         <if test="id != null ">#{id},</if>
         <if test="delFlag != null ">#{delFlag},</if>
-        <if test="gmtCreate != null and gmtCreate != ''">#{gmtCreate},</if>
-        <if test="gmtModitify != null and gmtModitify != ''">#{gmtModitify},</if>
+        <if test="gmtCreate != null ">#{gmtCreate},</if>
+        <if test="gmtModitify != null ">#{gmtModitify},</if>
         <if test="createUid != null ">#{createUid},</if>
         <if test="updateUid != null ">#{updateUid},</if>
 
@@ -33,8 +33,23 @@
         <if test="jobNumber != null and jobNumber != ''">#{jobNumber},</if>
         <if test="name != null and name != ''">#{name},</if>
         <if test="phone != null and phone != ''">#{phone},</if>
-        <if test="position != null and position != ''">#{position},</if>
+        <if test="position != null and position != ''">#{position}</if>
         )
     </insert>
 
+    <resultMap type="com.gkhy.safePlatform.emergency.entity.EmergencyTeamMemberInfoDO" id="emergencyTeamMemberInfoDOResult">
+        <id column="id" property="id" jdbcType="BIGINT"/>
+        <result column="team_id" property="teamId" />
+        <result column="user_uid" property="userUid" />
+        <result column="gender" property="gender" />
+        <result column="job_number" property="jobNumber" />
+        <result column="name" property="name" />
+        <result column="phone" property="phone" />
+        <result column="position" property="position" />
+    </resultMap>
+
+    <select id="selectByEmergencyTeamId" resultMap="emergencyTeamMemberInfoDOResult">
+        select id ,team_id ,user_uid ,gender ,job_number ,`name` ,phone ,`position` from emergency_team_Member where del_flag = 0 and team_id = #{teamId}
+    </select>
+
 </mapper>

--
Gitblit v1.9.2