songhuangfeng123
2022-08-03 44163ffec2f7a1f4c428cebc2aa5577f1f45e0b5
emergency/emergency-service/src/main/resource/config/mapper/emergency/EmergencyDrillPlanUserInfoMapper.xml
@@ -15,6 +15,7 @@
            <if test="updateUid != null ">update_uid,</if>
            <if test="drillPlanId != null ">drill_plan_id,</if>
            <if test="userUid != null ">user_uid,</if>
            <if test="userName != null and userName != ''">user_name,</if>
            <if test="type != null ">type</if>
        </trim>
        <trim prefix="values (" suffix=")" suffixOverrides=",">
@@ -26,6 +27,7 @@
            <if test="updateUid != null ">#{updateUid},</if>
            <if test="drillPlanId != null ">#{drillPlanId},</if>
            <if test="userUid != null ">#{userUid},</if>
            <if test="userName != null and userName != ''">#{userName},</if>
            <if test="type != null ">#{type}</if>
        </trim>
    </insert>
@@ -34,11 +36,12 @@
        <id column="id" property="id" jdbcType="BIGINT"/>
        <result column="drill_plan_id" property="drillPlanId" />
        <result column="user_uid" property="userUid" />
        <result column="user_name" property="userName" />
        <result column="type" property="type" />
    </resultMap>
    <select id="selectEmergencyDrillPlanUserByDrillPlanId" resultMap="emergencyDrillPlanUserInfoDOResult">
        select id,`drill_plan_id`,`user_uid`,`type` from emergency_drill_plan_user where del_flag = 0 and drill_plan_id = #{drillPlanId}
        select id,`drill_plan_id`,`user_uid`,user_name,`type` from emergency_drill_plan_user where del_flag = 0 and drill_plan_id = #{drillPlanId}
    </select>
    <update id = "deleteEmergencyDrillPlanUserByIds" >