From 0b02577ab12ac83a0530b7e0495b513dd0cdabca Mon Sep 17 00:00:00 2001 From: liusheng <337615773@qq.com> Date: 星期二, 02 七月 2024 11:25:08 +0800 Subject: [PATCH] 代码提交 --- smartor/src/main/resources/mapper/smartor/ServiceSubtaskMapper.xml | 40 ++++++++++++++++++++-------------------- 1 files changed, 20 insertions(+), 20 deletions(-) diff --git a/smartor/src/main/resources/mapper/smartor/IvrTaskSingleMapper.xml b/smartor/src/main/resources/mapper/smartor/ServiceSubtaskMapper.xml similarity index 94% rename from smartor/src/main/resources/mapper/smartor/IvrTaskSingleMapper.xml rename to smartor/src/main/resources/mapper/smartor/ServiceSubtaskMapper.xml index 69ddcbb..cf647f6 100644 --- a/smartor/src/main/resources/mapper/smartor/IvrTaskSingleMapper.xml +++ b/smartor/src/main/resources/mapper/smartor/ServiceSubtaskMapper.xml @@ -2,9 +2,9 @@ <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> -<mapper namespace="com.smartor.mapper.IvrTaskSingleMapper"> +<mapper namespace="com.smartor.mapper.ServiceSubtaskMapper"> - <resultMap type="com.smartor.domain.IvrTaskSingle" id="IvrTaskcallResult"> + <resultMap type="com.smartor.domain.ServiceSubtask" id="ServiceSubtaskResult"> <result property="id" column="id"/> <result property="sendname" column="sendname"/> <result property="phone" column="phone"/> @@ -56,7 +56,7 @@ <result property="libtemplateid" column="libtemplateid"/> </resultMap> - <sql id="selectIvrTaskcallVo"> + <sql id="selectServiceSubtaskVo"> select id, hosp_type, libtemplateid, @@ -107,11 +107,11 @@ deptname, stop_state, diagname - from ivr_task_single + from service_subtask </sql> - <select id="selectIvrTaskcallList" parameterType="com.smartor.domain.IvrTaskSingle" resultMap="IvrTaskcallResult"> - <include refid="selectIvrTaskcallVo"/> + <select id="selectServiceSubtaskList" parameterType="com.smartor.domain.ServiceSubtask" resultMap="ServiceSubtaskResult"> + <include refid="selectServiceSubtaskVo"/> <where> del_flag=0 <if test="sendname != null and sendname != ''">and sendname like concat('%', #{sendname}, '%')</if> @@ -156,14 +156,14 @@ order by update_time desc,id desc </select> - <select id="selectIvrTaskcallById" parameterType="Long" resultMap="IvrTaskcallResult"> - <include refid="selectIvrTaskcallVo"/> + <select id="selectServiceSubtaskById" parameterType="Long" resultMap="ServiceSubtaskResult"> + <include refid="selectServiceSubtaskVo"/> where id = #{id} </select> - <insert id="insertIvrTaskcall" parameterType="com.smartor.domain.IvrTaskSingle" useGeneratedKeys="true" + <insert id="insertServiceSubtask" parameterType="com.smartor.domain.ServiceSubtask" useGeneratedKeys="true" keyProperty="id"> - insert into ivr_task_single + insert into service_subtask <trim prefix="(" suffix=")" suffixOverrides=","> <if test="sendname != null">sendname,</if> <if test="phone != null">phone,</if> @@ -266,8 +266,8 @@ </trim> </insert> - <update id="updateIvrTaskcall" parameterType="com.smartor.domain.IvrTaskSingle"> - update ivr_task_single + <update id="updateServiceSubtask" parameterType="com.smartor.domain.ServiceSubtask"> + update service_subtask <trim prefix="SET" suffixOverrides=","> <if test="sendname != null">sendname = #{sendname},</if> <if test="phone != null">phone = #{phone},</if> @@ -321,8 +321,8 @@ where id = #{id} </update> - <update id="updateIvrTaskcallByCondition" parameterType="com.smartor.domain.IvrTaskSingle"> - update ivr_task_single + <update id="updateServiceSubtaskByCondition" parameterType="com.smartor.domain.ServiceSubtask"> + update service_subtask <trim prefix="SET" suffixOverrides=","> <if test="sendname != null">sendname = #{sendname},</if> <if test="phone != null">phone = #{phone},</if> @@ -376,23 +376,23 @@ where patid = #{patid} and taskid = #{taskid} </update> - <update id="deleteIvrTaskcallById" parameterType="Long"> - update ivr_task_single + <update id="deleteServiceSubtaskById" parameterType="Long"> + update service_subtask <trim prefix="SET" suffixOverrides=","> del_flag =1 </trim> where id = #{id} </update> - <update id="deleteIvrTaskcallByCondition" > - update ivr_task_single + <update id="deleteServiceSubtaskByCondition" > + update service_subtask <trim prefix="SET" suffixOverrides=","> del_flag =1 </trim> where patid = #{patid} and taskid = #{taskid} </update> - <select id="getDataByTime" resultMap="IvrTaskcallResult"> + <select id="getDataByTime" resultMap="ServiceSubtaskResult"> select id, sendname, @@ -441,7 +441,7 @@ patid, deptname, diagname - FROM ivr_task_single, + FROM service_subtask, JSON_TABLE(send_time_slot, '$[*]' COLUMNS ( begantime DATETIME PATH '$.begantime', endtime DATETIME PATH '$.endtime' -- Gitblit v1.9.3