From 987e38327f849e1b13d8541246dde08d877db0e8 Mon Sep 17 00:00:00 2001
From: 陈昶聿 <chychen@nbjetron.com>
Date: 星期三, 07 一月 2026 14:10:43 +0800
Subject: [PATCH] 【市一】调整mapper获取ordid
---
smartor/src/main/resources/mapper/smartor/SvyTaskMapper.xml | 17 +++++++++--------
1 files changed, 9 insertions(+), 8 deletions(-)
diff --git a/smartor/src/main/resources/mapper/smartor/SvyTaskMapper.xml b/smartor/src/main/resources/mapper/smartor/SvyTaskMapper.xml
index 8589030..c10250a 100644
--- a/smartor/src/main/resources/mapper/smartor/SvyTaskMapper.xml
+++ b/smartor/src/main/resources/mapper/smartor/SvyTaskMapper.xml
@@ -108,12 +108,13 @@
<select id="selectSvyTaskList" parameterType="com.smartor.domain.SvyTask" resultMap="SvyTaskResult">
<include refid="selectSvyTaskVo"/>
WHERE 1=1
+ <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if>
<if test="svrtaskid != null ">and svrtaskid = #{svrtaskid}</if>
<if test="taskName != null and taskName != ''">and task_name 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},
- AND '%')
+ <if test="templatename != null and templatename != ''">
+ and templatename like concat('%', #{templatename},'%')
</if>
<if test="labelinfo != null and labelinfo != ''">and labelinfo = #{labelinfo}</if>
<if test="state != null ">and state = #{state}</if>
@@ -122,13 +123,13 @@
<if test="unexecuted != null ">and unexecuted = #{unexecuted}</if>
<if test="fail != null ">and fail = #{fail}</if>
<if test="patientid != null and patientid != ''">and patientid = #{patientid}</if>
- <if test="patientname != null and patientname != ''">and patientname like concat('%', #{patientname},
- AND '%')
+ <if test="patientname != null and patientname != ''">
+ and patientname like concat('%', #{patientname},'%')
</if>
<if test="addtime != null ">and addtime = #{addtime}</if>
<if test="checkuserid != null and checkuserid != ''">and checkuserid = #{checkuserid}</if>
- <if test="checkusername != null and checkusername != ''">and checkusername like concat('%',
- #{checkusername}, '%')
+ <if test="checkusername != null and checkusername != ''">
+ and checkusername like concat('%',#{checkusername}, '%')
</if>
<if test="checktime != null ">and checktime = #{checktime}</if>
<if test="type != null and type != ''">and type = #{type}</if>
@@ -146,8 +147,8 @@
<if test="sendType != null ">and send_type = #{sendType}</if>
<if test="sendState != null and sendState != ''">and send_state = #{sendState}</if>
<if test="param != null and param != ''">and param = #{param}</if>
- <if test="sendTimeSlot != null and sendTimeSlot != ''">and send_time_slot like concat('%', #{sendTimeSlot},
- AND '%')
+ <if test="sendTimeSlot != null and sendTimeSlot != ''">
+ and send_time_slot like concat('%', #{sendTimeSlot},'%')
</if>
<if test="libtemplateid != null ">and libtemplateid = #{libtemplateid}</if>
<if test="libtemplatename != null and libtemplatename != ''">and libtemplatename = #{libtemplatename}</if>
--
Gitblit v1.9.3