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/ServiceTaskMapper.xml | 27 ++++++++++++++-------------
1 files changed, 14 insertions(+), 13 deletions(-)
diff --git a/smartor/src/main/resources/mapper/smartor/ServiceTaskMapper.xml b/smartor/src/main/resources/mapper/smartor/ServiceTaskMapper.xml
index c65d2c1..3baf21f 100644
--- a/smartor/src/main/resources/mapper/smartor/ServiceTaskMapper.xml
+++ b/smartor/src/main/resources/mapper/smartor/ServiceTaskMapper.xml
@@ -123,18 +123,19 @@
<select id="selectServiceTaskList" parameterType="com.smartor.domain.ServiceTask" resultMap="ServiceTaskResult">
<include refid="selectServiceTaskVo"/>
WHERE 1=1
+ <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if>
AND del_flag=0
<if test="taskName != null and taskName != ''">and task_name like concat('%', #{taskName}, '%')</if>
<if test="taskid != null">and taskid = #{taskid}</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="templateid != null and templateid != ''">and templateid = #{templateid}</if>
<if test="longTask != null and longTask != ''">and long_task = #{longTask}</if>
<if test="serviceType != null and serviceType != ''">and service_type = #{serviceType}</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="count != null ">and count = #{count}</if>
@@ -253,11 +254,13 @@
service_task.nexttaskname,
service_task.orgid from service_task
WHERE 1=1
+ <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if>
AND service_task.del_flag=0
<!-- and taskid in (-->
<!-- select task_id from service_taskdept-->
<!-- WHERE 1=1
+ <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if>
-->
<!-- <if test="leaveldeptcodes != null and leaveldeptcodes.size()>0">-->
<!-- dept_code in-->
@@ -268,19 +271,17 @@
<!-- </if>-->
<!-- -->
<!-- )-->
- <if test="taskName != null and taskName != ''">and service_task.task_name like concat('%', #{taskName},
- AND '%')
+ <if test="taskName != null and taskName != ''">
+ and service_task.task_name like concat('%', #{taskName},'%')
</if>
- <if test="sendTimeSlot != null and sendTimeSlot != ''">and service_task.send_time_slot like concat('%',
- #{sendTimeSlot},
- AND '%')
+ <if test="sendTimeSlot != null and sendTimeSlot != ''">
+ and service_task.send_time_slot like concat('%',#{sendTimeSlot},'%')
</if>
<if test="templateid != null and templateid != ''">and service_task.templateid = #{templateid}</if>
<if test="longTask != null and longTask != ''">and service_task.long_task = #{longTask}</if>
<if test="serviceType != null and serviceType != ''">and service_task.service_type = #{serviceType}</if>
- <if test="templatename != null and templatename != ''">and service_task.templatename like concat('%',
- #{templatename},
- AND '%')
+ <if test="templatename != null and templatename != ''">
+ and service_task.templatename like concat('%',#{templatename},'%')
</if>
<if test="labelinfo != null and labelinfo != ''">and service_task.labelinfo = #{labelinfo}</if>
<if test="count != null ">and service_task.count = #{count}</if>
@@ -295,7 +296,7 @@
<if test="sendDay != null ">and service_task.send_day = #{sendDay}</if>
<if test="type != null and type != ''">and service_task.type = #{type}</if>
<if test="typename != null and typename != ''">and service_task.typename like concat('%', #{typename},
- AND '%')
+ '%')
</if>
<if test="beginTime != null ">and date_format( service_task.update_time,'%y%m%d') >=
AND date_format(#{beginTime},'%y%m%d')
--
Gitblit v1.9.3