From fe47ff909096722ba8e9172c3e1f0f7910b16909 Mon Sep 17 00:00:00 2001
From: sinake <sinake1@qq.com>
Date: 星期二, 21 十月 2025 14:49:18 +0800
Subject: [PATCH] 结束出院日期格式
---
smartor/src/main/resources/mapper/smartor/ServiceTaskMapper.xml | 53 +++++++++++++++++++++++++++++++++--------------------
1 files changed, 33 insertions(+), 20 deletions(-)
diff --git a/smartor/src/main/resources/mapper/smartor/ServiceTaskMapper.xml b/smartor/src/main/resources/mapper/smartor/ServiceTaskMapper.xml
index fa56374..47d8fd3 100644
--- a/smartor/src/main/resources/mapper/smartor/ServiceTaskMapper.xml
+++ b/smartor/src/main/resources/mapper/smartor/ServiceTaskMapper.xml
@@ -57,11 +57,15 @@
<result property="nexttaskflag" column="nexttaskflag"/>
<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,
show_date,
@@ -109,8 +113,8 @@
leavehospitaldistrictname,
orgid,
nexttaskflag,
- nexttaskid,
- nexttaskname
+ nexttaskid,
+ nexttaskname
from service_task
</sql>
@@ -163,6 +167,7 @@
<if test="nexttaskflag != null ">and nexttaskflag = #{nexttaskflag}</if>
<if test="nexttaskid != null ">and nexttaskid = #{nexttaskid}</if>
<if test="nexttaskname != null ">and nexttaskname = #{nexttaskname}</if>
+ <if test="appltype != null ">and appltype = #{appltype}</if>
<if test="leavehospitaldistrictname != null ">and leavehospitaldistrictname =
#{leavehospitaldistrictname}
</if>
@@ -192,6 +197,7 @@
resultMap="ServiceTaskResult">
select service_task.taskid,
service_task.task_name,
+ service_task.appltype,
service_task.send_day,
service_task.long_task,
service_task.show_date,
@@ -244,18 +250,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>
@@ -312,6 +318,7 @@
<if test="nexttaskflag != null ">and nexttaskflag = #{nexttaskflag}</if>
<if test="nexttaskid != null ">and nexttaskid = #{nexttaskid}</if>
<if test="nexttaskname != null ">and nexttaskname = #{nexttaskname}</if>
+ <if test="appltype != null ">and appltype = #{appltype}</if>
<if test="leavehospitaldistrictname != null ">and service_task.leavehospitaldistrictname =
#{leavehospitaldistrictname}
</if>
@@ -325,7 +332,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"
@@ -379,6 +386,8 @@
<if test="leavehospitaldistrictcode != null ">leavehospitaldistrictcode,</if>
<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>
@@ -431,6 +440,8 @@
<if test="leavehospitaldistrictcode != null ">#{leavehospitaldistrictcode},</if>
<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>
@@ -460,9 +471,9 @@
<if test="isupload != null">isupload = #{isupload},</if>
<if test="uploadTime != null">upload_time = #{uploadTime},</if>
<if test="orgid != null">orgid = #{orgid},</if>
- <if test="nexttaskflag != null">#{nexttaskflag},</if>
- <if test="nexttaskid != null">#{nexttaskid},</if>
- <if test="nexttaskname != null">#{nexttaskname},</if>
+ <if test="nexttaskflag != null">nexttaskflag = #{nexttaskflag},</if>
+ <if test="nexttaskid != null">nexttaskid = #{nexttaskid},</if>
+ <if test="nexttaskname != null">nexttaskname = #{nexttaskname},</if>
<if test="pid != null">pid = #{pid},</if>
<if test="guid != null">guid = #{guid},</if>
<if test="preachform != null">preachform = #{preachform},</if>
@@ -487,8 +498,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="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