|
|
@@ -0,0 +1,89 @@
|
|
|
+<?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.company.mapper.CompanyVoiceRoboticBusinessMapper">
|
|
|
+
|
|
|
+ <resultMap type="CompanyVoiceRoboticBusiness" id="CompanyVoiceRoboticBusinessResult">
|
|
|
+ <result property="id" column="id" />
|
|
|
+ <result property="roboticId" column="robotic_id" />
|
|
|
+ <result property="calleeId" column="callee_id" />
|
|
|
+ <result property="wxClientId" column="wx_client_id" />
|
|
|
+ <result property="addWxDone" column="add_wx_done" />
|
|
|
+ <result property="callPhoneDone" column="call_phone_done" />
|
|
|
+ <result property="sendMsgDone" column="send_msg_done" />
|
|
|
+ <result property="createTime" column="create_time" />
|
|
|
+ <result property="updateTime" column="update_time" />
|
|
|
+ </resultMap>
|
|
|
+
|
|
|
+ <sql id="selectCompanyVoiceRoboticBusinessVo">
|
|
|
+ select id, robotic_id, callee_id, wx_client_id, add_wx_done, call_phone_done, send_msg_done, create_time, update_time from company_voice_robotic_business
|
|
|
+ </sql>
|
|
|
+
|
|
|
+ <select id="selectCompanyVoiceRoboticBusinessList" parameterType="CompanyVoiceRoboticBusiness" resultMap="CompanyVoiceRoboticBusinessResult">
|
|
|
+ <include refid="selectCompanyVoiceRoboticBusinessVo"/>
|
|
|
+ <where>
|
|
|
+ <if test="roboticId != null "> and robotic_id = #{roboticId}</if>
|
|
|
+ <if test="calleeId != null "> and callee_id = #{calleeId}</if>
|
|
|
+ <if test="wxClientId != null "> and wx_client_id = #{wxClientId}</if>
|
|
|
+ <if test="addWxDone != null "> and add_wx_done = #{addWxDone}</if>
|
|
|
+ <if test="callPhoneDone != null "> and call_phone_done = #{callPhoneDone}</if>
|
|
|
+ <if test="sendMsgDone != null "> and send_msg_done = #{sendMsgDone}</if>
|
|
|
+ </where>
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <select id="selectCompanyVoiceRoboticBusinessById" parameterType="Long" resultMap="CompanyVoiceRoboticBusinessResult">
|
|
|
+ <include refid="selectCompanyVoiceRoboticBusinessVo"/>
|
|
|
+ where id = #{id}
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <insert id="insertCompanyVoiceRoboticBusiness" parameterType="CompanyVoiceRoboticBusiness" useGeneratedKeys="true" keyProperty="id">
|
|
|
+ insert into company_voice_robotic_business
|
|
|
+ <trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="roboticId != null">robotic_id,</if>
|
|
|
+ <if test="calleeId != null">callee_id,</if>
|
|
|
+ <if test="wxClientId != null">wx_client_id,</if>
|
|
|
+ <if test="addWxDone != null">add_wx_done,</if>
|
|
|
+ <if test="callPhoneDone != null">call_phone_done,</if>
|
|
|
+ <if test="sendMsgDone != null">send_msg_done,</if>
|
|
|
+ <if test="createTime != null">create_time,</if>
|
|
|
+ <if test="updateTime != null">update_time,</if>
|
|
|
+ </trim>
|
|
|
+ <trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="roboticId != null">#{roboticId},</if>
|
|
|
+ <if test="calleeId != null">#{calleeId},</if>
|
|
|
+ <if test="wxClientId != null">#{wxClientId},</if>
|
|
|
+ <if test="addWxDone != null">#{addWxDone},</if>
|
|
|
+ <if test="callPhoneDone != null">#{callPhoneDone},</if>
|
|
|
+ <if test="sendMsgDone != null">#{sendMsgDone},</if>
|
|
|
+ <if test="createTime != null">#{createTime},</if>
|
|
|
+ <if test="updateTime != null">#{updateTime},</if>
|
|
|
+ </trim>
|
|
|
+ </insert>
|
|
|
+
|
|
|
+ <update id="updateCompanyVoiceRoboticBusiness" parameterType="CompanyVoiceRoboticBusiness">
|
|
|
+ update company_voice_robotic_business
|
|
|
+ <trim prefix="SET" suffixOverrides=",">
|
|
|
+ <if test="roboticId != null">robotic_id = #{roboticId},</if>
|
|
|
+ <if test="calleeId != null">callee_id = #{calleeId},</if>
|
|
|
+ <if test="wxClientId != null">wx_client_id = #{wxClientId},</if>
|
|
|
+ <if test="addWxDone != null">add_wx_done = #{addWxDone},</if>
|
|
|
+ <if test="callPhoneDone != null">call_phone_done = #{callPhoneDone},</if>
|
|
|
+ <if test="sendMsgDone != null">send_msg_done = #{sendMsgDone},</if>
|
|
|
+ <if test="createTime != null">create_time = #{createTime},</if>
|
|
|
+ <if test="updateTime != null">update_time = #{updateTime},</if>
|
|
|
+ </trim>
|
|
|
+ where id = #{id}
|
|
|
+ </update>
|
|
|
+
|
|
|
+ <delete id="deleteCompanyVoiceRoboticBusinessById" parameterType="Long">
|
|
|
+ delete from company_voice_robotic_business where id = #{id}
|
|
|
+ </delete>
|
|
|
+
|
|
|
+ <delete id="deleteCompanyVoiceRoboticBusinessByIds" parameterType="String">
|
|
|
+ delete from company_voice_robotic_business where id in
|
|
|
+ <foreach item="id" collection="array" open="(" separator="," close=")">
|
|
|
+ #{id}
|
|
|
+ </foreach>
|
|
|
+ </delete>
|
|
|
+</mapper>
|