From 78c9129e9045fafe4c2f7333b3dcafde6b20b96d Mon Sep 17 00:00:00 2001
From: liusheng <337615773@qq.com>
Date: 星期四, 05 十二月 2024 15:20:51 +0800
Subject: [PATCH] 代码提交

---
 smartor/src/main/resources/mapper/smartor/TemplateDeptMapper.xml |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/smartor/src/main/resources/mapper/smartor/TemplateDeptMapper.xml b/smartor/src/main/resources/mapper/smartor/TemplateDeptMapper.xml
index c9ecc7b..41cf715 100644
--- a/smartor/src/main/resources/mapper/smartor/TemplateDeptMapper.xml
+++ b/smartor/src/main/resources/mapper/smartor/TemplateDeptMapper.xml
@@ -37,6 +37,7 @@
             resultMap="TemplateDeptResult">
         <include refid="selectTemplateDeptVo"/>
         <where>
+            del_flag=0
             <if test="type != null ">
                 and type = #{type}
             </if>
@@ -163,6 +164,14 @@
         where id = #{id}
     </update>
 
+    <update id="deleteTemplateDeptByTemplateId" parameterType="com.smartor.domain.TemplateDept">
+        update template_dept
+        <trim prefix="SET" suffixOverrides=",">
+            del_flag =1
+        </trim>
+        where tempid = #{tempid} and type=#{type}
+    </update>
+
     <update id="deleteTemplateDeptByIds" parameterType="String">
         update template_dept
         <trim prefix="SET" suffixOverrides=",">

--
Gitblit v1.9.3