|
@@ -0,0 +1,148 @@
|
|
|
|
|
+<?xml version="1.0" encoding="UTF-8" ?>
|
|
|
|
|
+<!DOCTYPE mapper
|
|
|
|
|
+PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
+"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
|
|
+<mapper namespace="com.fs.qw.mapper.QwMsgAuditMessageMapper">
|
|
|
|
|
+
|
|
|
|
|
+ <resultMap type="QwMsgAuditMessage" id="QwMsgAuditMessageResult">
|
|
|
|
|
+ <result property="id" column="id" />
|
|
|
|
|
+ <result property="corpId" column="corp_id" />
|
|
|
|
|
+ <result property="seq" column="seq" />
|
|
|
|
|
+ <result property="msgId" column="msg_id" />
|
|
|
|
|
+ <result property="msgTime" column="msg_time" />
|
|
|
|
|
+ <result property="msgType" column="msg_type" />
|
|
|
|
|
+ <result property="textContent" column="text_content" />
|
|
|
|
|
+ <result property="mediaSdkfileid" column="media_sdkfileid" />
|
|
|
|
|
+ <result property="mediaMd5sum" column="media_md5sum" />
|
|
|
|
|
+ <result property="mediaSize" column="media_size" />
|
|
|
|
|
+ <result property="mediaPlayLength" column="media_play_length" />
|
|
|
|
|
+ <result property="mediaWidth" column="media_width" />
|
|
|
|
|
+ <result property="mediaHeight" column="media_height" />
|
|
|
|
|
+ <result property="mediaFileName" column="media_file_name" />
|
|
|
|
|
+ <result property="mediaFileExt" column="media_file_ext" />
|
|
|
|
|
+ <result property="mediaOssUrl" column="media_oss_url" />
|
|
|
|
|
+ <result property="rawId" column="raw_id" />
|
|
|
|
|
+ <result property="createTime" column="create_time" />
|
|
|
|
|
+ </resultMap>
|
|
|
|
|
+
|
|
|
|
|
+ <sql id="selectQwMsgAuditMessageVo">
|
|
|
|
|
+ select id, corp_id, seq, msg_id, msg_time, msg_type, text_content, media_sdkfileid, media_md5sum, media_size, media_play_length, media_width, media_height, media_file_name, media_file_ext, media_oss_url, raw_id, create_time from qw_msg_audit_message
|
|
|
|
|
+ </sql>
|
|
|
|
|
+
|
|
|
|
|
+ <select id="selectQwMsgAuditMessageList" parameterType="QwMsgAuditMessage" resultMap="QwMsgAuditMessageResult">
|
|
|
|
|
+ <include refid="selectQwMsgAuditMessageVo"/>
|
|
|
|
|
+ <where>
|
|
|
|
|
+ <if test="corpId != null and corpId != ''"> and corp_id = #{corpId}</if>
|
|
|
|
|
+ <if test="seq != null "> and seq = #{seq}</if>
|
|
|
|
|
+ <if test="msgId != null and msgId != ''"> and msg_id = #{msgId}</if>
|
|
|
|
|
+ <if test="msgTime != null "> and msg_time = #{msgTime}</if>
|
|
|
|
|
+ <if test="msgType != null and msgType != ''"> and msg_type = #{msgType}</if>
|
|
|
|
|
+ <if test="textContent != null and textContent != ''"> and text_content = #{textContent}</if>
|
|
|
|
|
+ <if test="mediaSdkfileid != null and mediaSdkfileid != ''"> and media_sdkfileid = #{mediaSdkfileid}</if>
|
|
|
|
|
+ <if test="mediaMd5sum != null and mediaMd5sum != ''"> and media_md5sum = #{mediaMd5sum}</if>
|
|
|
|
|
+ <if test="mediaSize != null "> and media_size = #{mediaSize}</if>
|
|
|
|
|
+ <if test="mediaPlayLength != null "> and media_play_length = #{mediaPlayLength}</if>
|
|
|
|
|
+ <if test="mediaWidth != null "> and media_width = #{mediaWidth}</if>
|
|
|
|
|
+ <if test="mediaHeight != null "> and media_height = #{mediaHeight}</if>
|
|
|
|
|
+ <if test="mediaFileName != null and mediaFileName != ''"> and media_file_name like concat('%', #{mediaFileName}, '%')</if>
|
|
|
|
|
+ <if test="mediaFileExt != null and mediaFileExt != ''"> and media_file_ext = #{mediaFileExt}</if>
|
|
|
|
|
+ <if test="rawId != null "> and raw_id = #{rawId}</if>
|
|
|
|
|
+ </where>
|
|
|
|
|
+ </select>
|
|
|
|
|
+
|
|
|
|
|
+ <select id="selectQwMsgAuditMessageById" parameterType="Long" resultMap="QwMsgAuditMessageResult">
|
|
|
|
|
+ <include refid="selectQwMsgAuditMessageVo"/>
|
|
|
|
|
+ where id = #{id}
|
|
|
|
|
+ </select>
|
|
|
|
|
+
|
|
|
|
|
+ <insert id="insertQwMsgAuditMessage" parameterType="QwMsgAuditMessage" useGeneratedKeys="true" keyProperty="id">
|
|
|
|
|
+ insert into qw_msg_audit_message
|
|
|
|
|
+ <trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
|
|
+ <if test="corpId != null and corpId != ''">corp_id,</if>
|
|
|
|
|
+ <if test="seq != null">seq,</if>
|
|
|
|
|
+ <if test="msgId != null">msg_id,</if>
|
|
|
|
|
+ <if test="msgTime != null">msg_time,</if>
|
|
|
|
|
+ <if test="msgType != null">msg_type,</if>
|
|
|
|
|
+ <if test="textContent != null">text_content,</if>
|
|
|
|
|
+ <if test="mediaSdkfileid != null">media_sdkfileid,</if>
|
|
|
|
|
+ <if test="mediaMd5sum != null">media_md5sum,</if>
|
|
|
|
|
+ <if test="mediaSize != null">media_size,</if>
|
|
|
|
|
+ <if test="mediaPlayLength != null">media_play_length,</if>
|
|
|
|
|
+ <if test="mediaWidth != null">media_width,</if>
|
|
|
|
|
+ <if test="mediaHeight != null">media_height,</if>
|
|
|
|
|
+ <if test="mediaFileName != null">media_file_name,</if>
|
|
|
|
|
+ <if test="mediaFileExt != null">media_file_ext,</if>
|
|
|
|
|
+ <if test="mediaOssUrl != null">media_oss_url,</if>
|
|
|
|
|
+ <if test="rawId != null">raw_id,</if>
|
|
|
|
|
+ <if test="createTime != null">create_time,</if>
|
|
|
|
|
+ </trim>
|
|
|
|
|
+ <trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
|
+ <if test="corpId != null and corpId != ''">#{corpId},</if>
|
|
|
|
|
+ <if test="seq != null">#{seq},</if>
|
|
|
|
|
+ <if test="msgId != null">#{msgId},</if>
|
|
|
|
|
+ <if test="msgTime != null">#{msgTime},</if>
|
|
|
|
|
+ <if test="msgType != null">#{msgType},</if>
|
|
|
|
|
+ <if test="textContent != null">#{textContent},</if>
|
|
|
|
|
+ <if test="mediaSdkfileid != null">#{mediaSdkfileid},</if>
|
|
|
|
|
+ <if test="mediaMd5sum != null">#{mediaMd5sum},</if>
|
|
|
|
|
+ <if test="mediaSize != null">#{mediaSize},</if>
|
|
|
|
|
+ <if test="mediaPlayLength != null">#{mediaPlayLength},</if>
|
|
|
|
|
+ <if test="mediaWidth != null">#{mediaWidth},</if>
|
|
|
|
|
+ <if test="mediaHeight != null">#{mediaHeight},</if>
|
|
|
|
|
+ <if test="mediaFileName != null">#{mediaFileName},</if>
|
|
|
|
|
+ <if test="mediaFileExt != null">#{mediaFileExt},</if>
|
|
|
|
|
+ <if test="mediaOssUrl != null">#{mediaOssUrl},</if>
|
|
|
|
|
+ <if test="rawId != null">#{rawId},</if>
|
|
|
|
|
+ <if test="createTime != null">#{createTime},</if>
|
|
|
|
|
+ </trim>
|
|
|
|
|
+ </insert>
|
|
|
|
|
+
|
|
|
|
|
+ <update id="updateQwMsgAuditMessage" parameterType="QwMsgAuditMessage">
|
|
|
|
|
+ update qw_msg_audit_message
|
|
|
|
|
+ <trim prefix="SET" suffixOverrides=",">
|
|
|
|
|
+ <if test="corpId != null and corpId != ''">corp_id = #{corpId},</if>
|
|
|
|
|
+ <if test="seq != null">seq = #{seq},</if>
|
|
|
|
|
+ <if test="msgId != null">msg_id = #{msgId},</if>
|
|
|
|
|
+ <if test="msgTime != null">msg_time = #{msgTime},</if>
|
|
|
|
|
+ <if test="msgType != null">msg_type = #{msgType},</if>
|
|
|
|
|
+ <if test="textContent != null">text_content = #{textContent},</if>
|
|
|
|
|
+ <if test="mediaSdkfileid != null">media_sdkfileid = #{mediaSdkfileid},</if>
|
|
|
|
|
+ <if test="mediaMd5sum != null">media_md5sum = #{mediaMd5sum},</if>
|
|
|
|
|
+ <if test="mediaSize != null">media_size = #{mediaSize},</if>
|
|
|
|
|
+ <if test="mediaPlayLength != null">media_play_length = #{mediaPlayLength},</if>
|
|
|
|
|
+ <if test="mediaWidth != null">media_width = #{mediaWidth},</if>
|
|
|
|
|
+ <if test="mediaHeight != null">media_height = #{mediaHeight},</if>
|
|
|
|
|
+ <if test="mediaFileName != null">media_file_name = #{mediaFileName},</if>
|
|
|
|
|
+ <if test="mediaFileExt != null">media_file_ext = #{mediaFileExt},</if>
|
|
|
|
|
+ <if test="mediaOssUrl != null">media_oss_url = #{mediaOssUrl},</if>
|
|
|
|
|
+ <if test="rawId != null">raw_id = #{rawId},</if>
|
|
|
|
|
+ <if test="createTime != null">create_time = #{createTime},</if>
|
|
|
|
|
+ </trim>
|
|
|
|
|
+ where id = #{id}
|
|
|
|
|
+ </update>
|
|
|
|
|
+
|
|
|
|
|
+ <delete id="deleteQwMsgAuditMessageById" parameterType="Long">
|
|
|
|
|
+ delete from qw_msg_audit_message where id = #{id}
|
|
|
|
|
+ </delete>
|
|
|
|
|
+
|
|
|
|
|
+ <delete id="deleteQwMsgAuditMessageByIds" parameterType="String">
|
|
|
|
|
+ delete from qw_msg_audit_message where id in
|
|
|
|
|
+ <foreach item="id" collection="array" open="(" separator="," close=")">
|
|
|
|
|
+ #{id}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ </delete>
|
|
|
|
|
+
|
|
|
|
|
+<!-- <insert id="batchInsertMessage" parameterType="com.fs.qw.domain.audit.QwMsgAuditMessage" useGeneratedKeys="true" keyProperty="id">-->
|
|
|
|
|
+<!-- insert into qw_msg_audit_message-->
|
|
|
|
|
+<!-- (corp_id, seq, msg_id, msg_time, msg_type, text_content,-->
|
|
|
|
|
+<!-- media_sdkfileid, media_md5sum, media_size, media_play_length,-->
|
|
|
|
|
+<!-- media_width, media_height, media_file_name, media_file_ext,-->
|
|
|
|
|
+<!-- raw_id, create_time)-->
|
|
|
|
|
+<!-- values-->
|
|
|
|
|
+<!-- (#{corpId}, #{seq}, #{msgId}, #{msgTime}, #{msgType}, #{textContent},-->
|
|
|
|
|
+<!-- #{mediaSdkfileid}, #{mediaMd5sum}, #{mediaSize}, #{mediaPlayLength},-->
|
|
|
|
|
+<!-- #{mediaWidth}, #{mediaHeight}, #{mediaFileName}, #{mediaFileExt},-->
|
|
|
|
|
+<!-- #{rawId}, #{createTime})-->
|
|
|
|
|
+<!-- </insert>-->
|
|
|
|
|
+
|
|
|
|
|
+</mapper>
|