| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091 |
- <?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.sop.mapper.SopUserLogsWxMapper">
- <resultMap type="SopUserLogsWx" id="SopUserLogsWxResult">
- <result property="id" column="id" />
- <result property="sopId" column="sop_id" />
- <result property="sopTempId" column="sop_temp_id" />
- <result property="userWxName" column="user_wx_name" />
- <result property="accountId" column="account_id" />
- <result property="companyUserId" column="company_user_id" />
- <result property="companyId" column="company_id" />
- <result property="startTime" column="start_time" />
- <result property="status" column="status" />
- </resultMap>
- <sql id="selectSopUserLogsWxVo">
- select id, sop_id, sop_temp_id, user_wx_name, account_id, company_user_id, company_id, start_time, status from sop_user_logs_wx
- </sql>
- <select id="selectSopUserLogsWxList" parameterType="SopUserLogsWx" resultMap="SopUserLogsWxResult">
- <include refid="selectSopUserLogsWxVo"/>
- <where>
- <if test="sopId != null and sopId != ''"> and sop_id = #{sopId}</if>
- <if test="sopTempId != null and sopTempId != ''"> and sop_temp_id = #{sopTempId}</if>
- <if test="userWxName != null and userWxName != ''"> and user_wx_name = #{userWxName}</if>
- <if test="accountId != null "> and account_id = #{accountId}</if>
- <if test="companyUserId != null "> and company_user_id = #{companyUserId}</if>
- <if test="companyId != null "> and company_id = #{companyId}</if>
- <if test="startTime != null "> and start_time = #{startTime}</if>
- <if test="status != null "> and status = #{status}</if>
- </where>
- </select>
- <select id="selectSopUserLogsWxById" parameterType="Long" resultMap="SopUserLogsWxResult">
- <include refid="selectSopUserLogsWxVo"/>
- where id = #{id}
- </select>
- <insert id="insertSopUserLogsWx" parameterType="SopUserLogsWx" useGeneratedKeys="true" keyProperty="id">
- insert into sop_user_logs_wx
- <trim prefix="(" suffix=")" suffixOverrides=",">
- <if test="sopId != null">sop_id,</if>
- <if test="sopTempId != null">sop_temp_id,</if>
- <if test="userWxName != null">user_wx_name,</if>
- <if test="accountId != null">account_id,</if>
- <if test="companyUserId != null">company_user_id,</if>
- <if test="companyId != null">company_id,</if>
- <if test="startTime != null">start_time,</if>
- <if test="status != null">status,</if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides=",">
- <if test="sopId != null">#{sopId},</if>
- <if test="sopTempId != null">#{sopTempId},</if>
- <if test="userWxName != null">#{userWxName},</if>
- <if test="accountId != null">#{accountId},</if>
- <if test="companyUserId != null">#{companyUserId},</if>
- <if test="companyId != null">#{companyId},</if>
- <if test="startTime != null">#{startTime},</if>
- <if test="status != null">#{status},</if>
- </trim>
- </insert>
- <update id="updateSopUserLogsWx" parameterType="SopUserLogsWx">
- update sop_user_logs_wx
- <trim prefix="SET" suffixOverrides=",">
- <if test="sopId != null">sop_id = #{sopId},</if>
- <if test="sopTempId != null">sop_temp_id = #{sopTempId},</if>
- <if test="userWxName != null">user_wx_name = #{userWxName},</if>
- <if test="accountId != null">account_id = #{accountId},</if>
- <if test="companyUserId != null">company_user_id = #{companyUserId},</if>
- <if test="companyId != null">company_id = #{companyId},</if>
- <if test="startTime != null">start_time = #{startTime},</if>
- <if test="status != null">status = #{status},</if>
- </trim>
- where id = #{id}
- </update>
- <delete id="deleteSopUserLogsWxById" parameterType="Long">
- delete from sop_user_logs_wx where id = #{id}
- </delete>
- <delete id="deleteSopUserLogsWxByIds" parameterType="String">
- delete from sop_user_logs_wx where id in
- <foreach item="id" collection="array" open="(" separator="," close=")">
- #{id}
- </foreach>
- </delete>
- </mapper>
|