| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778 |
- <?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.QwApiSopLogTokenMapper">
- <resultMap type="QwApiSopLogToken" id="QwApiSopLogTokenResult">
- <result property="id" column="id" />
- <result property="qwUserId" column="qw_user_id" />
- <result property="companyId" column="company_id" />
- <result property="sendTime" column="send_time" />
- <result property="sendCount" column="send_count" />
- <result property="sendCountToken" column="send_count_token" />
- </resultMap>
- <sql id="selectQwApiSopLogTokenVo">
- select id, qw_user_id, company_id, send_time, send_count, send_count_token from qw_api_sop_log_token
- </sql>
- <select id="selectQwApiSopLogTokenList" parameterType="QwApiSopLogToken" resultMap="QwApiSopLogTokenResult">
- <include refid="selectQwApiSopLogTokenVo"/>
- <where>
- <if test="qwUserId != null and qwUserId != ''"> and qw_user_id = #{qwUserId}</if>
- <if test="companyId != null "> and company_id = #{companyId}</if>
- <if test="sendTime != null "> and send_time = #{sendTime}</if>
- <if test="sendCount != null "> and send_count = #{sendCount}</if>
- <if test="sendCountToken != null "> and send_count_token = #{sendCountToken}</if>
- </where>
- </select>
- <select id="selectQwApiSopLogTokenById" parameterType="Long" resultMap="QwApiSopLogTokenResult">
- <include refid="selectQwApiSopLogTokenVo"/>
- where id = #{id}
- </select>
- <insert id="insertQwApiSopLogToken" parameterType="QwApiSopLogToken">
- insert into qw_api_sop_log_token
- <trim prefix="(" suffix=")" suffixOverrides=",">
- <if test="id != null">id,</if>
- <if test="qwUserId != null">qw_user_id,</if>
- <if test="companyId != null">company_id,</if>
- <if test="sendTime != null">send_time,</if>
- <if test="sendCount != null">send_count,</if>
- <if test="sendCountToken != null">send_count_token,</if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides=",">
- <if test="id != null">#{id},</if>
- <if test="qwUserId != null">#{qwUserId},</if>
- <if test="companyId != null">#{companyId},</if>
- <if test="sendTime != null">#{sendTime},</if>
- <if test="sendCount != null">#{sendCount},</if>
- <if test="sendCountToken != null">#{sendCountToken},</if>
- </trim>
- </insert>
- <update id="updateQwApiSopLogToken" parameterType="QwApiSopLogToken">
- update qw_api_sop_log_token
- <trim prefix="SET" suffixOverrides=",">
- <if test="qwUserId != null">qw_user_id = #{qwUserId},</if>
- <if test="companyId != null">company_id = #{companyId},</if>
- <if test="sendTime != null">send_time = #{sendTime},</if>
- <if test="sendCount != null">send_count = #{sendCount},</if>
- <if test="sendCountToken != null">send_count_token = #{sendCountToken},</if>
- </trim>
- where id = #{id}
- </update>
- <delete id="deleteQwApiSopLogTokenById" parameterType="Long">
- delete from qw_api_sop_log_token where id = #{id}
- </delete>
- <delete id="deleteQwApiSopLogTokenByIds" parameterType="String">
- delete from qw_api_sop_log_token where id in
- <foreach item="id" collection="array" open="(" separator="," close=")">
- #{id}
- </foreach>
- </delete>
- </mapper>
|