songhuangfeng123
2022-08-16 b98d1d16f81efb2a7795f1b8753e10a3fa98968f
emergency/emergency-service/src/main/resource/config/mapper/emergency/EmergencyTeamFileInfoMapper.xml
@@ -19,24 +19,35 @@
        insert into emergency_team_file(
        <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="fileUrl != null and fileUrl != ''">file_url,</if>
        <if test="fileName != null and fileName != ''">file_name,</if>
        <if test="fileName != null and fileName != ''">file_name</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="teamId != null ">#{teamId},</if>
        <if test="fileUrl != null and fileUrl != ''">#{fileUrl},</if>
        <if test="fileName != null and fileName != ''">#{fileName},</if>
        <if test="fileName != null and fileName != ''">#{fileName}</if>
        )
    </insert>
    <update id = "deleteEmergencyTeamFileByIds" >
        update emergency_team_file set del_flag = 1 where id in
        <foreach item="id" collection="ids" open="(" separator="," close=")">
            #{id}
        </foreach>
    </update>
    <update id="deleteEmergencyTeamFileByTeamId">
        update emergency_team_file set del_flag = 1 where team_id = #{teamId}
    </update>
</mapper>