From 52a0bf7637b725f0b6bf18a03962b0636f7074fb Mon Sep 17 00:00:00 2001
From: liusheng <337615773@qq.com>
Date: 星期五, 22 十二月 2023 18:14:40 +0800
Subject: [PATCH] 代码提交
---
smartor/src/main/resources/mapper/smartor/IvrLibaTargetoptionMapper.xml | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/smartor/src/main/resources/mapper/smartor/IvrLibaTargetoptionMapper.xml b/smartor/src/main/resources/mapper/smartor/IvrLibaTargetoptionMapper.xml
index f1f8267..e9e73fe 100644
--- a/smartor/src/main/resources/mapper/smartor/IvrLibaTargetoptionMapper.xml
+++ b/smartor/src/main/resources/mapper/smartor/IvrLibaTargetoptionMapper.xml
@@ -45,6 +45,7 @@
resultMap="IvrLibaTargetoptionResult">
<include refid="selectIvrLibaTargetoptionVo"/>
<where>
+ del_flag != 1
<if test="targetid != null ">and targetid = #{targetid}</if>
<if test="targettype != null and targettype != ''">and targettype = #{targettype}</if>
<if test="categoryName != null and categoryName != ''">and categoryName like concat('%', #{categoryName},
@@ -64,7 +65,9 @@
<if test="orgid != null and orgid != ''">and orgid = #{orgid}</if>
<if test="pid != null ">and pid = #{pid}</if>
<if test="guid != null and guid != ''">and guid = #{guid}</if>
+
</where>
+ order by guid asc
</select>
<select id="selectIvrLibaTargetoptionByTargetoptionid" parameterType="Long" resultMap="IvrLibaTargetoptionResult">
@@ -155,8 +158,8 @@
</update>
<delete id="deleteIvrLibaTargetoptionByTargetoptionid" parameterType="Long">
- delete
- from ivr_liba_targetoption
+ update ivr_liba_targetoption
+ set del_flag = 1
where targetoptionid = #{targetoptionid}
</delete>
--
Gitblit v1.9.3