From 3f01affe0c9b8d7c7956663883dde987845114c4 Mon Sep 17 00:00:00 2001
From: 陶杰 <1378534974@qq.com>
Date: 星期四, 05 九月 2024 16:55:23 +0800
Subject: [PATCH] 1.我的浏览历史-增加清空失效商品
---
src/main/resources/mapper/flower/FlowerMapper.xml | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/src/main/resources/mapper/flower/FlowerMapper.xml b/src/main/resources/mapper/flower/FlowerMapper.xml
index 0c499bd..5a0b0c1 100644
--- a/src/main/resources/mapper/flower/FlowerMapper.xml
+++ b/src/main/resources/mapper/flower/FlowerMapper.xml
@@ -373,4 +373,15 @@
</if>
ORDER BY fzp.rank asc
</select>
+ <select id="searchInvalidHistory" resultType="java.lang.Long">
+ SELECT c.id
+ FROM t_browse_his c left join t_flower f on c.flower_id = f.id
+ WHERE f.deleted = 0 and c.deleted = 0 and f.status != 'UP' and c.user_id = #{userId}
+ </select>
+
+ <update id="updateFlowerCategoryInfo">
+ update t_flower f, t_flower_category fc
+ set f.unit = fc.unit, f.color = fc.color
+ where f.category = fc.id and fc.id = #{category}
+ </update>
</mapper>
\ No newline at end of file
--
Gitblit v1.9.3