From 01a79d5b431b71cc79cf5f6cc92cd4f3432781dd Mon Sep 17 00:00:00 2001
From: liusheng <337615773@qq.com>
Date: 星期二, 30 四月 2024 12:39:54 +0800
Subject: [PATCH] 代码提交
---
smartor/src/main/resources/mapper/smartor/IvrTaskMapper.xml | 22 +++++++++++++++++-----
1 files changed, 17 insertions(+), 5 deletions(-)
diff --git a/smartor/src/main/resources/mapper/smartor/IvrTaskMapper.xml b/smartor/src/main/resources/mapper/smartor/IvrTaskMapper.xml
index c2dbe67..a2729d0 100644
--- a/smartor/src/main/resources/mapper/smartor/IvrTaskMapper.xml
+++ b/smartor/src/main/resources/mapper/smartor/IvrTaskMapper.xml
@@ -6,7 +6,7 @@
<resultMap type="com.smartor.domain.IvrTask" id="IvrTaskResult">
<result property="taskid" column="taskid"/>
- <result property="taskname" column="taskname"/>
+ <result property="taskName" column="taskname"/>
<result property="templateid" column="templateid"/>
<result property="templatename" column="templatename"/>
<result property="labelinfo" column="labelinfo"/>
@@ -39,6 +39,8 @@
<result property="isSend" column="is_send"/>
<result property="sendState" column="send_state"/>
<result property="param" column="param"/>
+ <result property="hospType" column="hosp_type"/>
+ <result property="hospno" column="hospno"/>
</resultMap>
<sql id="selectIvrTaskVo">
@@ -57,6 +59,8 @@
checkusername,
checktime,
type,
+ hosp_type,
+ hospno,
typename,
usebqsms,
usebhsms,
@@ -82,7 +86,7 @@
<select id="selectIvrTaskList" parameterType="com.smartor.domain.IvrTask" resultMap="IvrTaskResult">
<include refid="selectIvrTaskVo"/>
<where>
- <if test="taskname != null and taskname != ''">and taskname like concat('%', #{taskname}, '%')</if>
+ <if test="taskName != null and taskName != ''">and taskname like concat('%', #{taskName}, '%')</if>
<if test="templateid != null and templateid != ''">and templateid = #{templateid}</if>
<if test="templatename != null and templatename != ''">and templatename like concat('%', #{templatename},
'%')
@@ -108,6 +112,8 @@
<if test="isupload != null ">and isupload = #{isupload}</if>
<if test="uploadTime != null ">and upload_time = #{uploadTime}</if>
<if test="orgid != null and orgid != ''">and orgid = #{orgid}</if>
+ <if test="hospType != null and hospType != ''">and hosp_type = #{hospType}</if>
+ <if test="hospno != null and hospno != ''">and orgid = #{hospno}</if>
</where>
order by update_time desc,taskid desc
</select>
@@ -121,7 +127,7 @@
keyProperty="taskid">
insert into ivr_task
<trim prefix="(" suffix=")" suffixOverrides=",">
- <if test="taskname != null">taskname,</if>
+ <if test="taskName != null">taskname,</if>
<if test="templateid != null">templateid,</if>
<if test="templatename != null">templatename,</if>
<if test="labelinfo != null">labelinfo,</if>
@@ -154,9 +160,11 @@
<if test="isSend != null">is_send,</if>
<if test="sendState != null">send_state,</if>
<if test="param != null">param,</if>
+ <if test="hospType != null and hospType != ''">hosp_type,</if>
+ <if test="hospno != null and hospno != ''">hospno,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
- <if test="taskname != null">#{taskname},</if>
+ <if test="taskName != null">#{taskName},</if>
<if test="templateid != null">#{templateid},</if>
<if test="templatename != null">#{templatename},</if>
<if test="labelinfo != null">#{labelinfo},</if>
@@ -189,13 +197,15 @@
<if test="isSend != null">#{isSend},</if>
<if test="sendState != null">#{sendState},</if>
<if test="param != null">#{param},</if>
+ <if test="hospType != null and hospType != ''">#{hospType},</if>
+ <if test="hospno != null and hospno != ''">#{hospno},</if>
</trim>
</insert>
<update id="updateIvrTask" parameterType="com.smartor.domain.IvrTask">
update ivr_task
<trim prefix="SET" suffixOverrides=",">
- <if test="taskname != null">taskname = #{taskname},</if>
+ <if test="taskName != null">taskname = #{taskName},</if>
<if test="templateid != null">templateid = #{templateid},</if>
<if test="templatename != null">templatename = #{templatename},</if>
<if test="labelinfo != null">labelinfo = #{labelinfo},</if>
@@ -228,6 +238,8 @@
<if test="isSend != null">is_send = #{isSend},</if>
<if test="sendState != null">send_state = #{sendState},</if>
<if test="param != null">param = #{param},</if>
+ <if test="hospType != null and hospType != ''">hosp_type = #{hospType},</if>
+ <if test="hospno != null and hospno != ''">hospno = #{hospno},</if>
</trim>
where taskid = #{taskid}
</update>
--
Gitblit v1.9.3