From af7dd07dc1521f3c0012e9e0eea836de3260f374 Mon Sep 17 00:00:00 2001
From: 陈昶聿 <chychen@nbjetron.com>
Date: 星期一, 08 六月 2026 15:37:04 +0800
Subject: [PATCH] 【丽水】随访查询页面-统计调整 * total: 患者服务总量 * wxsf: 无需随访数量 sendstate != 4 * xsf: 需随访数量 sendstate = 4 * dsf: 待随访数量 sendstate = 1L, 2L, 3L, 5L, 7L * ywc: 已完成数量 sendstate = 6L * yc: 异常数量 excep = '1' * yc: 警告数量 excep = '2'
---
smartor/src/main/resources/mapper/smartor/SvyTaskTemplateScriptMapper.xml | 45 ++++++++++++++++++++++++++++++++++++++++++++-
1 files changed, 44 insertions(+), 1 deletions(-)
diff --git a/smartor/src/main/resources/mapper/smartor/SvyTaskTemplateScriptMapper.xml b/smartor/src/main/resources/mapper/smartor/SvyTaskTemplateScriptMapper.xml
index 57dba35..b69adad 100644
--- a/smartor/src/main/resources/mapper/smartor/SvyTaskTemplateScriptMapper.xml
+++ b/smartor/src/main/resources/mapper/smartor/SvyTaskTemplateScriptMapper.xml
@@ -45,12 +45,23 @@
<result property="prompt" column="prompt"/>
<result property="groupName" column="group_name"/>
<result property="categoryid" column="categoryid"/>
-
+ <result property="dutyDeptName" column="duty_dept_name"/>
+ <result property="dutyDeptCode" column="duty_dept_code"/>
+ <result property="reportDeptCode" column="report_dept_name"/>
+ <result property="reportDeptName" column="report_dept_code"/>
+ <result property="isMydException" column="is_myd_exception"/>
+ <result property="dimension" column="dimension"/>
</resultMap>
<sql id="selectSvyTaskTemplateScriptVo">
select id,
sort,
+ is_myd_exception,
+ dimension,
+ duty_dept_name,
+ duty_dept_code,
+ report_dept_name,
+ report_dept_code,
ishide,
prompt,
categoryid,
@@ -74,6 +85,8 @@
<include refid="selectSvyTaskTemplateScriptVo"/>
where 1=1
<if test="taskid != null ">and taskid = #{taskid}</if>
+ <if test="isMydException != null ">and is_myd_exception = #{isMydException}</if>
+ <if test="dimension != null ">and dimension = #{dimension}</if>
<if test="categoryid != null ">and categoryid = #{categoryid}</if>
<if test="ishide != null ">and ishide = #{ishide}</if>
<if test="scriptno != null ">and scriptno = #{scriptno}</if>
@@ -82,6 +95,18 @@
<if test="scriptDesc != null and scriptDesc != ''">and script_desc = #{scriptDesc}</if>
<if test="language != null and language != ''">and language = #{language}</if>
<if test="categoryName != null and categoryName != ''">and categoryName like concat('%', #{categoryName},
+ '%')
+ </if>
+ <if test="dutyDeptName != null and dutyDeptName != ''">and duty_dept_name like concat('%', #{dutyDeptName},
+ '%')
+ </if>
+ <if test="dutyDeptCode != null and dutyDeptCode != ''">and duty_dept_code like concat('%', #{dutyDeptCode},
+ '%')
+ </if>
+ <if test="reportDeptName != null and reportDeptName != ''">and report_dept_name like concat('%', #{reportDeptName},
+ '%')
+ </if>
+ <if test="reportDeptCode != null and reportDeptCode != ''">and report_dept_code like concat('%', #{reportDeptCode},
'%')
</if>
<if test="scriptContent != null and scriptContent != ''">and script_content = #{scriptContent}</if>
@@ -160,6 +185,12 @@
<if test="groupName != null ">group_name,</if>
<if test="ishide != null ">ishide,</if>
<if test="categoryid != null ">categoryid,</if>
+ <if test="dutyDeptName != null and dutyDeptName != ''">duty_dept_name,</if>
+ <if test="dutyDeptCode != null and dutyDeptCode != ''">duty_dept_code,</if>
+ <if test="reportDeptName != null and reportDeptName != ''">report_dept_name,</if>
+ <if test="reportDeptCode != null and reportDeptCode != ''"> report_dept_code,</if>
+ <if test="isMydException != null ">is_myd_exception,</if>
+ <if test="dimension != null ">dimension,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="taskid != null">#{taskid},</if>
@@ -201,6 +232,12 @@
<if test="groupName != null ">#{groupName},</if>
<if test="ishide != null ">#{ishide},</if>
<if test="categoryid != null ">#{categoryid},</if>
+ <if test="dutyDeptName != null and dutyDeptName != ''">#{dutyDeptName},</if>
+ <if test="dutyDeptCode != null and dutyDeptCode != ''">#{dutyDeptCode},</if>
+ <if test="reportDeptName != null and reportDeptName != ''">#{reportDeptName},</if>
+ <if test="reportDeptCode != null and reportDeptCode != ''">#{reportDeptCode},</if>
+ <if test="isMydException != null ">#{isMydException},</if>
+ <if test="dimension != null ">#{dimension},</if>
</trim>
</insert>
@@ -248,6 +285,12 @@
<if test="groupName != null ">group_name = #{groupName},</if>
<if test="ishide != null ">ishide = #{ishide},</if>
<if test="categoryid != null ">categoryid = #{categoryid},</if>
+ <if test="dutyDeptName != null and dutyDeptName != ''">duty_dept_name = #{dutyDeptName},</if>
+ <if test="dutyDeptCode != null and dutyDeptCode != ''"> duty_dept_code = #{dutyDeptCode},</if>
+ <if test="reportDeptName != null and reportDeptName != ''">report_dept_name = #{reportDeptName},</if>
+ <if test="reportDeptCode != null and reportDeptCode != ''">report_dept_code = #{reportDeptCode},</if>
+ <if test="isMydException != null ">is_myd_exception = #{isMydException},</if>
+ <if test="dimension != null ">dimension = #{dimension},</if>
</trim>
where id = #{d}
</update>
--
Gitblit v1.9.3