From 6f1e752bf00b584c8a17569578fa8e54cdb71b60 Mon Sep 17 00:00:00 2001
From: liusheng <337615773@qq.com>
Date: 星期一, 27 十月 2025 13:34:59 +0800
Subject: [PATCH] 处理选项不显示的问题

---
 smartor/src/main/resources/mapper/smartor/ServiceTaskMapper.xml |   43 +++++++++++++++++++++++++++----------------
 1 files changed, 27 insertions(+), 16 deletions(-)

diff --git a/smartor/src/main/resources/mapper/smartor/ServiceTaskMapper.xml b/smartor/src/main/resources/mapper/smartor/ServiceTaskMapper.xml
index 3970f13..5110723 100644
--- a/smartor/src/main/resources/mapper/smartor/ServiceTaskMapper.xml
+++ b/smartor/src/main/resources/mapper/smartor/ServiceTaskMapper.xml
@@ -33,6 +33,7 @@
         <result property="pid" column="pid"/>
         <result property="guid" column="guid"/>
         <result property="preachform" column="preachform"/>
+        <result property="preachformDesc" column="preachform_desc"/>
         <result property="sendType" column="send_type"/>
         <result property="sendState" column="send_state"/>
         <result property="hospType" column="hosp_type"/>
@@ -58,11 +59,13 @@
         <result property="nexttaskid" column="nexttaskid"/>
         <result property="nexttaskname" column="nexttaskname"/>
         <result property="appltype" column="appltype"/>
+        <result property="patCycle" column="pat_cycle"/>
     </resultMap>
 
     <sql id="selectServiceTaskVo">
         select taskid,
                task_name,
+               pat_cycle,
                appltype,
                send_day,
                long_task,
@@ -77,6 +80,7 @@
                text_param,
                templateid,
                templatename,
+               preachform_desc,
                labelinfo,
                count,
                executed,
@@ -233,6 +237,7 @@
         service_task.pid,
         service_task.guid,
         service_task.preachform,
+        service_task.preachform_desc,
         service_task.send_type,
         service_task.send_state,
         service_task.send_time_slot,
@@ -248,18 +253,18 @@
         service_task.orgid from service_task
         <where>
             service_task.del_flag=0
-<!--            and taskid in (-->
-<!--            select task_id from service_taskdept-->
-<!--            <where>-->
-<!--                <if test="leaveldeptcodes != null and leaveldeptcodes.size()>0">-->
-<!--                    dept_code in-->
-<!--                    <foreach collection="leaveldeptcodes" item="leaveldeptcode" open="(" separator=","-->
-<!--                             close=")">-->
-<!--                        #{leaveldeptcode}-->
-<!--                    </foreach>-->
-<!--                </if>-->
-<!--            </where>-->
-<!--            )-->
+            <!--            and taskid in (-->
+            <!--            select task_id from service_taskdept-->
+            <!--            <where>-->
+            <!--                <if test="leaveldeptcodes != null and leaveldeptcodes.size()>0">-->
+            <!--                    dept_code in-->
+            <!--                    <foreach collection="leaveldeptcodes" item="leaveldeptcode" open="(" separator=","-->
+            <!--                             close=")">-->
+            <!--                        #{leaveldeptcode}-->
+            <!--                    </foreach>-->
+            <!--                </if>-->
+            <!--            </where>-->
+            <!--            )-->
             <if test="taskName != null  and taskName != ''">and service_task.task_name like concat('%', #{taskName},
                 '%')
             </if>
@@ -330,7 +335,7 @@
 
     <select id="selectServiceTaskByTaskid" parameterType="Long" resultMap="ServiceTaskResult">
         <include refid="selectServiceTaskVo"/>
-        where taskid = #{taskid}
+        where taskid = #{taskid} and del_flag=0
     </select>
 
     <insert id="insertServiceTask" parameterType="com.smartor.domain.ServiceTask" useGeneratedKeys="true"
@@ -363,6 +368,7 @@
             <if test="pid != null">pid,</if>
             <if test="guid != null">guid,</if>
             <if test="preachform != null">preachform,</if>
+            <if test="preachformDesc != null">preachform_desc,</if>
             <if test="sendType != null">send_type,</if>
             <if test="sendState != null">send_state,</if>
             <if test="hospType != null  and hospType != ''">hosp_type,</if>
@@ -385,6 +391,7 @@
             <if test="compensateDate != null  and compensateDate != ''">compensate_date,</if>
             <if test="sendDay != null  ">send_day,</if>
             <if test="appltype != null  ">appltype,</if>
+            <if test="patCycle != null  ">pat_cycle,</if>
         </trim>
         <trim prefix="values (" suffix=")" suffixOverrides=",">
             <if test="taskName != null">#{taskName},</if>
@@ -416,6 +423,7 @@
             <if test="pid != null">#{pid},</if>
             <if test="guid != null">#{guid},</if>
             <if test="preachform != null">#{preachform},</if>
+            <if test="preachformDesc != null">#{preachformDesc},</if>
             <if test="sendType != null">#{sendType},</if>
             <if test="sendState != null">#{sendState},</if>
             <if test="hospType != null  and hospType != ''">#{hospType},</if>
@@ -438,6 +446,7 @@
             <if test="compensateDate != null  and compensateDate != ''">#{compensateDate}</if>
             <if test="sendDay != null  ">#{sendDay},</if>
             <if test="appltype != null  ">#{appltype},</if>
+            <if test="patCycle != null  ">#{patCycle},</if>
         </trim>
     </insert>
 
@@ -473,6 +482,7 @@
             <if test="pid != null">pid = #{pid},</if>
             <if test="guid != null">guid = #{guid},</if>
             <if test="preachform != null">preachform = #{preachform},</if>
+            <if test="preachformDesc != null">preachform_desc = #{preachformDesc},</if>
             <if test="sendType != null">send_type = #{sendType},</if>
             <if test="sendState != null">send_state = #{sendState},</if>
             <if test="hospType != null  and hospType != ''">hosp_type = #{hospType},</if>
@@ -494,9 +504,10 @@
             </if>
             <if test="leavehospitaldistrictcode != null  ">leavehospitaldistrictcode = #{leavehospitaldistrictcode},
             </if>
-            <if test="compensateDate != null  and compensateDate != ''">compensate_date = #{compensateDate}</if>
-            <if test="sendDay != null  ">send_day = #{sendDay}</if>
-            <if test="appltype != null  ">appltype = #{appltype}</if>
+            <if test="compensateDate != null  and compensateDate != ''">compensate_date = #{compensateDate},</if>
+            <if test="sendDay != null  ">send_day = #{sendDay},</if>
+            <if test="appltype != null  ">appltype = #{appltype},</if>
+            <if test="patCycle != null  ">pat_cycle = #{patCycle},</if>
         </trim>
         where taskid = #{taskid}
     </update>

--
Gitblit v1.9.3