From ecda68f9ffbd4e0f01d3939550906f670b1e0482 Mon Sep 17 00:00:00 2001 From: liusheng <337615773@qq.com> Date: 星期五, 21 六月 2024 15:56:28 +0800 Subject: [PATCH] 代码提交 --- smartor/src/main/resources/mapper/smartor/SvyTaskSingleMapper.xml | 14 ++++++++++++++ 1 files changed, 14 insertions(+), 0 deletions(-) diff --git a/smartor/src/main/resources/mapper/smartor/SvyTaskSingleMapper.xml b/smartor/src/main/resources/mapper/smartor/SvyTaskSingleMapper.xml index 3cfcd88..b77c87f 100644 --- a/smartor/src/main/resources/mapper/smartor/SvyTaskSingleMapper.xml +++ b/smartor/src/main/resources/mapper/smartor/SvyTaskSingleMapper.xml @@ -69,11 +69,13 @@ <result property="admindate" column="admindate"/> <result property="roomno" column="roomno"/> <result property="bedno" column="bedno"/> + <result property="patid" column="patid"/> </resultMap> <sql id="selectSvyTaskSingleVo"> select id, sendname, + patid, phone, sex, age, @@ -204,6 +206,7 @@ <if test="admindate != null ">and admindate = #{admindate}</if> <if test="roomno != null and roomno != ''">and roomno = #{roomno}</if> <if test="bedno != null and bedno != ''">and bedno = #{bedno}</if> + <if test="patid != null ">and patid = #{patid}</if> </where> </select> @@ -279,6 +282,7 @@ <if test="admindate != null">admindate,</if> <if test="roomno != null">roomno,</if> <if test="bedno != null">bedno,</if> + <if test="patid != null">patid,</if> </trim> <trim prefix="values (" suffix=")" suffixOverrides=","> <if test="sendname != null">#{sendname},</if> @@ -344,6 +348,7 @@ <if test="admindate != null">#{admindate},</if> <if test="roomno != null">#{roomno},</if> <if test="bedno != null">#{bedno},</if> + <if test="patid != null">#{patid},</if> </trim> </insert> @@ -413,6 +418,7 @@ <if test="admindate != null">admindate = #{admindate},</if> <if test="roomno != null">roomno = #{roomno},</if> <if test="bedno != null">bedno = #{bedno},</if> + <if test="patid != null">patid = #{patid},</if> </trim> where id = #{id} </update> @@ -429,4 +435,12 @@ #{id} </foreach> </delete> + + <update id="deleteSvyTaskcallByCondition" > + update svy_task_single + <trim prefix="SET" suffixOverrides=","> + del_flag =1 + </trim> + where patid = #{patid} and taskid = #{taskid} + </update> </mapper> -- Gitblit v1.9.3