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/IvrLibaScriptTargetoptionMapper.xml | 66 ++++++++++++++++++---------------
1 files changed, 36 insertions(+), 30 deletions(-)
diff --git a/smartor/src/main/resources/mapper/smartor/IvrLibaScriptTargetoptionMapper.xml b/smartor/src/main/resources/mapper/smartor/IvrLibaScriptTargetoptionMapper.xml
index 20de24c..462d545 100644
--- a/smartor/src/main/resources/mapper/smartor/IvrLibaScriptTargetoptionMapper.xml
+++ b/smartor/src/main/resources/mapper/smartor/IvrLibaScriptTargetoptionMapper.xml
@@ -38,11 +38,13 @@
<result property="picturePath" column="picture_path"/>
<result property="isEnd" column="is_end"/>
<result property="isException" column="is_exception"/>
+ <result property="defaultValue" column="default_value"/>
</resultMap>
<sql id="selectIvrLibaScriptTargetoptionVo">
select id,
targetid,
+ default_value,
is_end,
is_exception,
picture_path,
@@ -65,36 +67,37 @@
resultMap="IvrLibaScriptTargetoptionResult">
<include refid="selectIvrLibaScriptTargetoptionVo"/>
where 1=1
- and del_flag = 0
- <if test="targetid != null and targetid != ''">and targetid = #{targetid}</if>
- <if test="targetname != null and targetname != ''">and targetname = #{targetname}</if>
- <if test="scriptid != null ">and scriptid = #{scriptid}</if>
- <if test="targettype != null and targettype != ''">and targettype = #{targettype}</if>
- <if test="categoryName != null and categoryName != ''">and categoryName like concat('%', #{categoryName},
- '%')
- </if>
- <if test="targetvalue != null and targetvalue != ''">and targetvalue = #{targetvalue}</if>
- <if test="targetregex != null and targetregex != ''">and targetregex = #{targetregex}</if>
- <if test="targetregex2 != null and targetregex2 != ''">and targetregex2 = #{targetregex2}</if>
- <if test="optiondesc != null and optiondesc != ''">and optiondesc = #{optiondesc}</if>
- <if test="language != null and language != ''">and language = #{language}</if>
- <if test="version != null ">and version = #{version}</if>
- <if test="isEnd != null ">and is_end = #{isEnd}</if>
- <if test="groupid != null and groupid != ''">and groupid = #{groupid}</if>
- <if test="isabnormal != null ">and isabnormal = #{isabnormal}</if>
- <if test="warnup != null ">and warnup = #{warnup}</if>
- <if test="warndown != null ">and warndown = #{warndown}</if>
- <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="pid != null ">and pid = #{pid}</if>
- <if test="guid != null and guid != ''">and guid = #{guid}</if>
- <if test="nodynamiccruxsJson != null ">and nodynamiccruxs = #{nodynamiccruxsJson}</if>
- <if test="dynamiccruxsJson != null ">and dynamiccruxs = #{dynamiccruxsJson}</if>
- <if test="appendflag != null">and appendflag = #{appendflag}</if>
- <if test="appenddesc != null">and appenddesc = #{appenddesc}</if>
- <if test="picturePath != null">and picture_path = #{picturePath}</if>
- <if test="isException != null">and is_exception = #{isException}</if>
+ and del_flag = 0
+ <if test="targetid != null and targetid != ''">and targetid = #{targetid}</if>
+ <if test="defaultValue != null">and default_value = #{defaultValue}</if>
+ <if test="targetname != null and targetname != ''">and targetname = #{targetname}</if>
+ <if test="scriptid != null ">and scriptid = #{scriptid}</if>
+ <if test="targettype != null and targettype != ''">and targettype = #{targettype}</if>
+ <if test="categoryName != null and categoryName != ''">and categoryName like concat('%', #{categoryName},
+ '%')
+ </if>
+ <if test="targetvalue != null and targetvalue != ''">and targetvalue = #{targetvalue}</if>
+ <if test="targetregex != null and targetregex != ''">and targetregex = #{targetregex}</if>
+ <if test="targetregex2 != null and targetregex2 != ''">and targetregex2 = #{targetregex2}</if>
+ <if test="optiondesc != null and optiondesc != ''">and optiondesc = #{optiondesc}</if>
+ <if test="language != null and language != ''">and language = #{language}</if>
+ <if test="version != null ">and version = #{version}</if>
+ <if test="isEnd != null ">and is_end = #{isEnd}</if>
+ <if test="groupid != null and groupid != ''">and groupid = #{groupid}</if>
+ <if test="isabnormal != null ">and isabnormal = #{isabnormal}</if>
+ <if test="warnup != null ">and warnup = #{warnup}</if>
+ <if test="warndown != null ">and warndown = #{warndown}</if>
+ <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="pid != null ">and pid = #{pid}</if>
+ <if test="guid != null and guid != ''">and guid = #{guid}</if>
+ <if test="nodynamiccruxsJson != null ">and nodynamiccruxs = #{nodynamiccruxsJson}</if>
+ <if test="dynamiccruxsJson != null ">and dynamiccruxs = #{dynamiccruxsJson}</if>
+ <if test="appendflag != null">and appendflag = #{appendflag}</if>
+ <if test="appenddesc != null">and appenddesc = #{appenddesc}</if>
+ <if test="picturePath != null">and picture_path = #{picturePath}</if>
+ <if test="isException != null">and is_exception = #{isException}</if>
</select>
<select id="selectIvrLibaScriptTargetoptionByTargetoptionid" parameterType="String"
@@ -139,6 +142,7 @@
<if test="picturePath != null">picture_path,</if>
<if test="isEnd != null ">is_end,</if>
<if test="isException != null ">is_exception,</if>
+ <if test="defaultValue != null ">default_value,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">#{id},</if>
@@ -174,6 +178,7 @@
<if test="picturePath != null">#{picturePath},</if>
<if test="isEnd != null ">#{isEnd},</if>
<if test="isException != null ">#{isException},</if>
+ <if test="defaultValue != null ">#{defaultValue},</if>
</trim>
</insert>
@@ -212,6 +217,7 @@
<if test="picturePath != null">picture_path = #{picturePath},</if>
<if test="isEnd != null ">is_end = #{isEnd},</if>
<if test="isException != null ">is_exception = #{isException},</if>
+ <if test="defaultValue != null ">default_value = #{defaultValue},</if>
</trim>
where id = #{id}
</update>
--
Gitblit v1.9.3