文件名从 smartor/src/main/resources/mapper/smartor/IvrTaskcalldetailMapper.xml 修改 |
| | |
| | | <!DOCTYPE mapper |
| | | PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.smartor.mapper.IvrTaskcalldetailMapper"> |
| | | <mapper namespace="com.smartor.mapper.ServiceSubtaskDetailMapper"> |
| | | |
| | | <resultMap type="com.smartor.domain.IvrTaskcalldetail" id="IvrTaskcalldetailResult"> |
| | | <result property="calldetailid" column="calldetailid"/> |
| | | <result property="callid" column="callid"/> |
| | | <resultMap type="com.smartor.domain.ServiceSubtaskDetail" id="ServiceSubtaskDetailResult"> |
| | | <result property="id" column="id"/> |
| | | <result property="subId" column="sub_id"/> |
| | | <result property="uuid" column="uuid"/> |
| | | <result property="phone" column="phone"/> |
| | | <result property="operate" column="operate"/> |
| | |
| | | <result property="valueType" column="value_type"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectIvrTaskcalldetailVo"> |
| | | select calldetailid, |
| | | callid, |
| | | <sql id="selectServiceSubtaskDetailVo"> |
| | | select id, |
| | | sub_id, |
| | | uuid, |
| | | phone, |
| | | operate, |
| | |
| | | from ivr_taskcalldetail |
| | | </sql> |
| | | |
| | | <select id="selectIvrTaskcalldetailList" parameterType="com.smartor.domain.IvrTaskcalldetail" |
| | | resultMap="IvrTaskcalldetailResult"> |
| | | <include refid="selectIvrTaskcalldetailVo"/> |
| | | <select id="selectServiceSubtaskDetailList" parameterType="com.smartor.domain.ServiceSubtaskDetail" |
| | | resultMap="ServiceSubtaskDetailResult"> |
| | | <include refid="selectServiceSubtaskDetailVo"/> |
| | | <where> |
| | | <if test="callid != null and callid != ''">and callid = #{callid}</if> |
| | | <if test="subId != null">and sub_id = #{subId}</if> |
| | | <if test="uuid != null and uuid != ''">and uuid = #{uuid}</if> |
| | | <if test="phone != null and phone != ''">and phone = #{phone}</if> |
| | | <if test="operate != null and operate != ''">and operate = #{operate}</if> |
| | |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectIvrTaskcalldetailByCalldetailid" parameterType="String" resultMap="IvrTaskcalldetailResult"> |
| | | <include refid="selectIvrTaskcalldetailVo"/> |
| | | where calldetailid = #{calldetailid} |
| | | <select id="selectServiceSubtaskDetailByCalldetailid" parameterType="String" resultMap="ServiceSubtaskDetailResult"> |
| | | <include refid="selectServiceSubtaskDetailVo"/> |
| | | where id = #{id} |
| | | </select> |
| | | |
| | | <insert id="insertIvrTaskcalldetail" parameterType="com.smartor.domain.IvrTaskcalldetail"> |
| | | <insert id="insertServiceSubtaskDetail" parameterType="com.smartor.domain.ServiceSubtaskDetail"> |
| | | insert into ivr_taskcalldetail |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="calldetailid != null">calldetailid,</if> |
| | | <if test="callid != null">callid,</if> |
| | | <if test="id != null">id,</if> |
| | | <if test="subId != null">sub_id,</if> |
| | | <if test="uuid != null">uuid,</if> |
| | | <if test="phone != null">phone,</if> |
| | | <if test="operate != null">operate,</if> |
| | |
| | | <if test="valueType != null">value_type,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="calldetailid != null">#{calldetailid},</if> |
| | | <if test="callid != null">#{callid},</if> |
| | | <if test="id != null">#{id},</if> |
| | | <if test="subId != null">#{subId},</if> |
| | | <if test="uuid != null">#{uuid},</if> |
| | | <if test="phone != null">#{phone},</if> |
| | | <if test="operate != null">#{operate},</if> |
| | |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateIvrTaskcalldetail" parameterType="com.smartor.domain.IvrTaskcalldetail"> |
| | | <update id="updateServiceSubtaskDetail" parameterType="com.smartor.domain.ServiceSubtaskDetail"> |
| | | update ivr_taskcalldetail |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="callid != null">callid = #{callid},</if> |
| | | <if test="subId != null">sub_id = #{subId},</if> |
| | | <if test="uuid != null">uuid = #{uuid},</if> |
| | | <if test="phone != null">phone = #{phone},</if> |
| | | <if test="operate != null">operate = #{operate},</if> |
| | |
| | | <if test="createBy != null">create_by = #{createBy},</if> |
| | | <if test="valueType != null">value_type = #{valueType},</if> |
| | | </trim> |
| | | where calldetailid = #{calldetailid} |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | <delete id="deleteIvrTaskcalldetailByCalldetailid" parameterType="String"> |
| | | <delete id="deleteServiceSubtaskDetailByCalldetailid" parameterType="String"> |
| | | delete |
| | | from ivr_taskcalldetail |
| | | where calldetailid = #{calldetailid} |
| | | where id = #{id} |
| | | </delete> |
| | | |
| | | <delete id="deleteIvrTaskcalldetailByCalldetailids" parameterType="String"> |
| | | delete from ivr_taskcalldetail where calldetailid in |
| | | <foreach item="calldetailid" collection="array" open="(" separator="," close=")"> |
| | | #{calldetailid} |
| | | <delete id="deleteServiceSubtaskDetailByCalldetailids" parameterType="String"> |
| | | delete from ivr_taskcalldetail where id in |
| | | <foreach item="id" collection="array" open="(" separator="," close=")"> |
| | | #{id} |
| | | </foreach> |
| | | </delete> |
| | | </mapper> |