From 260687df882672c651f5f668d932b0f31c328ba4 Mon Sep 17 00:00:00 2001
From: songhuangfeng123 <shf18767906695@163.com>
Date: 星期二, 05 七月 2022 16:20:01 +0800
Subject: [PATCH] 应急队伍新增

---
 emergency/emergency-service/src/main/resource/config/mapper/emergency/EmergencyTeamInfoMapper.xml |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/emergency/emergency-service/src/main/resource/config/mapper/emergency/EmergencyTeamInfoMapper.xml b/emergency/emergency-service/src/main/resource/config/mapper/emergency/EmergencyTeamInfoMapper.xml
index 13c15bc..58a6b97 100644
--- a/emergency/emergency-service/src/main/resource/config/mapper/emergency/EmergencyTeamInfoMapper.xml
+++ b/emergency/emergency-service/src/main/resource/config/mapper/emergency/EmergencyTeamInfoMapper.xml
@@ -18,12 +18,12 @@
         <if test="query.teamLevel != null  and query.teamLevel != ''"> and `team_level` = #{query.teamLevel}</if>
     </select>
 
-    <insert id="addEmergencyTeam" parameterType="com.gkhy.safePlatform.emergency.entity.EmergencyTeamInfo">
+    <insert id="addEmergencyTeam" parameterType="com.gkhy.safePlatform.emergency.entity.EmergencyTeamInfo" keyProperty="id" useGeneratedKeys="true">
         insert into emergency_team(
         <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="principalUid != null ">principal_uid,</if>
@@ -32,12 +32,12 @@
         <if test="teamName != null and teamName != ''">team_name,</if>
         <if test="principalPhone != null and principalPhone != ''">principal_phone,</if>
         <if test="telephoneNumber != null and telephoneNumber != ''">telephone_number,</if>
-        <if test="teamDesc != null and teamDesc != ''">team_desc,</if>
+        <if test="teamDesc != null and teamDesc != ''">team_desc</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>
         <if test="principalUid != null ">#{principalUid},</if>
@@ -46,7 +46,7 @@
         <if test="teamName != null and teamName != ''">#{teamName},</if>
         <if test="principalPhone != null and principalPhone != ''">#{principalPhone},</if>
         <if test="telephoneNumber != null and telephoneNumber != ''">#{telephoneNumber},</if>
-        <if test="teamDesc != null and teamDesc != ''">#{teamDesc},</if>
+        <if test="teamDesc != null and teamDesc != ''">#{teamDesc}</if>
         )
     </insert>
 

--
Gitblit v1.9.2