From 44f9b71dc492f1e60f33d18bc8d3c619da44618e Mon Sep 17 00:00:00 2001
From: 陈昶聿 <chychen@nbjetron.com>
Date: 星期二, 24 十一月 2026 17:19:26 +0800
Subject: [PATCH] Merge branch 'smartor_ls_merge' into 20261118市一随访
---
ruoyi-task/src/main/resources/mapper/task/ServiceSubtaskMapper.xml | 24 +++++++++++++++++++++---
1 files changed, 21 insertions(+), 3 deletions(-)
diff --git a/ruoyi-task/src/main/resources/mapper/task/ServiceSubtaskMapper.xml b/ruoyi-task/src/main/resources/mapper/task/ServiceSubtaskMapper.xml
index 77253b8..fbf683c 100644
--- a/ruoyi-task/src/main/resources/mapper/task/ServiceSubtaskMapper.xml
+++ b/ruoyi-task/src/main/resources/mapper/task/ServiceSubtaskMapper.xml
@@ -2141,10 +2141,28 @@
where 1=1
and a.del_flag = '0'
and b.del_flag = '0'
- and a.appltype = '3'
+ <!-- 涓撶梾缁熻锛氬崟鐥呯浠诲姟(appltype=3) + 涓撶梾浠诲姟缁�(appltype=5) -->
+ and (
+ a.appltype = '3'
+ or (
+ a.appltype = '5'
+ and (
+ a.hosp_type = '3'
+ or (a.diag_type is not null and a.diag_type <> '')
+ or exists (
+ select 1
+ from service_task_schedule s
+ where s.taskid = a.taskid
+ and s.del_flag = '0'
+ and s.icd10_codes is not null
+ and s.icd10_codes <> ''
+ )
+ )
+ )
+ )
<if test="orgid != null and orgid != ''">and a.orgid = #{orgid}</if>
<if test="campusid != null and campusid != ''">and b.campusid = #{campusid}</if>
- <if test="taskId != null">and a.task_id = #{taskId}</if>
+ <if test="taskId != null">and a.taskid = #{taskId}</if>
<if test="taskName != null and taskName != ''">
and a.task_name like concat('%', #{taskName}, '%')
</if>
@@ -2152,7 +2170,7 @@
and a.diag_type = #{diagType}
</if>
<if test="taskIds != null and taskIds.size() > 0">
- AND a.task_id IN
+ AND a.taskid IN
<foreach collection="taskIds" item="taskIdItem" open="(" separator=","
close=")">
#{taskIdItem}
--
Gitblit v1.9.3