From 27c3f725f9bbd51e97857de6cc191d016b660bd6 Mon Sep 17 00:00:00 2001 From: liusheng <337615773@qq.com> Date: 星期四, 18 七月 2024 18:01:39 +0800 Subject: [PATCH] 代码提交 --- smartor/src/main/resources/mapper/smartor/ServiceSubtaskDetailMapper.xml | 56 ++++++++++++++++++++++++++++---------------------------- 1 files changed, 28 insertions(+), 28 deletions(-) diff --git a/smartor/src/main/resources/mapper/smartor/IvrTaskcalldetailMapper.xml b/smartor/src/main/resources/mapper/smartor/ServiceSubtaskDetailMapper.xml similarity index 88% rename from smartor/src/main/resources/mapper/smartor/IvrTaskcalldetailMapper.xml rename to smartor/src/main/resources/mapper/smartor/ServiceSubtaskDetailMapper.xml index 2502583..dc782d3 100644 --- a/smartor/src/main/resources/mapper/smartor/IvrTaskcalldetailMapper.xml +++ b/smartor/src/main/resources/mapper/smartor/ServiceSubtaskDetailMapper.xml @@ -2,11 +2,11 @@ <!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"/> @@ -48,9 +48,9 @@ <result property="valueType" column="value_type"/> </resultMap> - <sql id="selectIvrTaskcalldetailVo"> - select calldetailid, - callid, + <sql id="selectServiceSubtaskDetailVo"> + select id, + sub_id, uuid, phone, operate, @@ -93,11 +93,11 @@ 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> @@ -137,16 +137,16 @@ </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> @@ -188,8 +188,8 @@ <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> @@ -232,10 +232,10 @@ </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> @@ -276,19 +276,19 @@ <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> -- Gitblit v1.9.3