From eb0b35549f024d7c0d3608e04fc51ef17ab3b2a0 Mon Sep 17 00:00:00 2001
From: liusheng <337615773@qq.com>
Date: 星期五, 24 七月 2026 14:16:23 +0800
Subject: [PATCH] (1)替换模板,需要将之前的任务模板删除
---
smartor/src/main/resources/mapper/smartor/SvyTaskTemplateMapper.xml | 74 ++++++++++++++++++------------------
1 files changed, 37 insertions(+), 37 deletions(-)
diff --git a/smartor/src/main/resources/mapper/smartor/SvyTaskTemplateMapper.xml b/smartor/src/main/resources/mapper/smartor/SvyTaskTemplateMapper.xml
index 31eb308..73aee0e 100644
--- a/smartor/src/main/resources/mapper/smartor/SvyTaskTemplateMapper.xml
+++ b/smartor/src/main/resources/mapper/smartor/SvyTaskTemplateMapper.xml
@@ -93,45 +93,45 @@
resultMap="SvyTaskTemplateResult">
<include refid="selectSvyTaskTemplateVo"/>
where 1=1
- and del_flag = 0
- <if test="templateid != null ">and templateid = #{templateid}</if>
- <if test="id != null ">and id = #{id}</if>
- <if test="categoryid != null ">and categoryid = #{categoryid}</if>
- <if test="svycode != null and svycode != ''">and svycode = #{svycode}</if>
- <if test="svyname != null and svyname != ''">and svyname like concat('%', #{svyname}, '%')</if>
- <if test="description != null and description != ''">and description = #{description}</if>
- <if test="introduce != null and introduce != ''">and introduce = #{introduce}</if>
- <if test="submitprompt != null and submitprompt != ''">and submitprompt = #{submitprompt}</if>
- <if test="tag != null and tag != ''">and tag = #{tag}</if>
- <if test="version != null ">and version = #{version}</if>
- <if test="centerlibrarycode != null and centerlibrarycode != ''">and centerlibrarycode =
- #{centerlibrarycode}
- </if>
- <if test="centerlibraryid != null ">and centerlibraryid = #{centerlibraryid}</if>
- <if test="islocal != null ">and islocal = #{islocal}</if>
- <if test="isenable != null and isenable != ''">and isenable = #{isenable}</if>
- <if test="orgid != null and orgid != ''">and orgid = #{orgid}</if>
- <if test="isupload != null ">and isupload = #{isupload}</if>
- <if test="uploadTime != null ">and upload_time = #{uploadTime}</if>
- <if test="taskScriptId != null and taskScriptId != ''">and task_script_id = #{taskScriptId}</if>
- <if test="pid != null ">and pid = #{pid}</if>
- <if test="guid != null and guid != ''">and guid = #{guid}</if>
- <if test="deptNames != null and deptNames != ''">and dept_names = #{deptNames}</if>
- <if test="labelInfo != null and labelInfo != ''">and label_info = #{labelInfo}</if>
- <if test="campus != null and campus != ''">and campus = #{campus}</if>
- <if test="suitway != null and suitway != ''">and suitway = #{suitway}</if>
- <if test="otherdata != null and otherdata != ''">and otherdata = #{otherdata}</if>
- <if test="valueType != null and valueType != ''">and value_type = #{valueType}</if>
- <if test="reply != null and reply != ''">and reply = #{reply}</if>
- <if test="taskid != null ">and taskid = #{taskid}</if>
- <if test="deptCode != null ">and dept_code = #{deptCode}</if>
- <if test="longTemp != null ">and long_temp = #{longTemp}</if>
- <if test="sendDay != null ">and send_day = #{sendDay}</if>
+ and del_flag = 0
+ <if test="templateid != null ">and templateid = #{templateid}</if>
+ <if test="id != null ">and id = #{id}</if>
+ <if test="categoryid != null ">and categoryid = #{categoryid}</if>
+ <if test="svycode != null and svycode != ''">and svycode = #{svycode}</if>
+ <if test="svyname != null and svyname != ''">and svyname like concat('%', #{svyname}, '%')</if>
+ <if test="description != null and description != ''">and description = #{description}</if>
+ <if test="introduce != null and introduce != ''">and introduce = #{introduce}</if>
+ <if test="submitprompt != null and submitprompt != ''">and submitprompt = #{submitprompt}</if>
+ <if test="tag != null and tag != ''">and tag = #{tag}</if>
+ <if test="version != null ">and version = #{version}</if>
+ <if test="centerlibrarycode != null and centerlibrarycode != ''">and centerlibrarycode =
+ #{centerlibrarycode}
+ </if>
+ <if test="centerlibraryid != null ">and centerlibraryid = #{centerlibraryid}</if>
+ <if test="islocal != null ">and islocal = #{islocal}</if>
+ <if test="isenable != null and isenable != ''">and isenable = #{isenable}</if>
+ <if test="orgid != null and orgid != ''">and orgid = #{orgid}</if>
+ <if test="isupload != null ">and isupload = #{isupload}</if>
+ <if test="uploadTime != null ">and upload_time = #{uploadTime}</if>
+ <if test="taskScriptId != null and taskScriptId != ''">and task_script_id = #{taskScriptId}</if>
+ <if test="pid != null ">and pid = #{pid}</if>
+ <if test="guid != null and guid != ''">and guid = #{guid}</if>
+ <if test="deptNames != null and deptNames != ''">and dept_names = #{deptNames}</if>
+ <if test="labelInfo != null and labelInfo != ''">and label_info = #{labelInfo}</if>
+ <if test="campus != null and campus != ''">and campus = #{campus}</if>
+ <if test="suitway != null and suitway != ''">and suitway = #{suitway}</if>
+ <if test="otherdata != null and otherdata != ''">and otherdata = #{otherdata}</if>
+ <if test="valueType != null and valueType != ''">and value_type = #{valueType}</if>
+ <if test="reply != null and reply != ''">and reply = #{reply}</if>
+ <if test="taskid != null ">and taskid = #{taskid}</if>
+ <if test="deptCode != null ">and dept_code = #{deptCode}</if>
+ <if test="longTemp != null ">and long_temp = #{longTemp}</if>
+ <if test="sendDay != null ">and send_day = #{sendDay}</if>
</select>
<select id="selectSvyTaskTemplateBySvyid" parameterType="Long" resultMap="SvyTaskTemplateResult">
<include refid="selectSvyTaskTemplateVo"/>
- where del_flag=0 and id = #{id}
+ where del_flag=0 and id = #{id}
</select>
<insert id="insertSvyTaskTemplate" parameterType="com.smartor.domain.SvyTaskTemplate" useGeneratedKeys="true"
@@ -265,8 +265,8 @@
</update>
<delete id="deleteSvyTaskTemplateBySvyid" parameterType="Long">
- delete
- from svy_task_template
+ update svy_task_template
+ set del_flag=1
where id = #{id}
</delete>
--
Gitblit v1.9.3