From fc9f26f399ad4d8c921867d720d6b7c97ba5d1e3 Mon Sep 17 00:00:00 2001 From: xuxueyang <xuxy@fengyuntec.com> Date: 星期一, 09 九月 2024 01:52:53 +0800 Subject: [PATCH] update --- src/main/resources/mapper/flower/FlowerMapper.xml | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/src/main/resources/mapper/flower/FlowerMapper.xml b/src/main/resources/mapper/flower/FlowerMapper.xml index 3f5857f..3cb549a 100644 --- a/src/main/resources/mapper/flower/FlowerMapper.xml +++ b/src/main/resources/mapper/flower/FlowerMapper.xml @@ -234,6 +234,10 @@ <select id="myCollect" resultType="com.mzl.flower.dto.response.flower.FlowerShowListDTO"> SELECT f.*, s.name supplierName, st.name supplierType, fc.name categoryStr + , (select sum(num) from t_cart ccc + where ccc.flower_id = f.id + and ccc.create_by = #{condition.userId} + ) shopnum FROM t_collect_flower c left join t_flower f on c.flower_id = f.id left join t_supplier_info s on s.id = f.supplier_id @@ -275,6 +279,10 @@ <select id="myBrowseHistory" resultType="com.mzl.flower.dto.response.flower.FlowerShowListDTO"> SELECT f.*, s.name supplierName, st.name supplierType, fc.name categoryStr + , (select sum(num) from t_cart ccc + where ccc.flower_id = f.id + and ccc.create_by = #{condition.userId} + ) shopnum FROM t_browse_his c left join t_flower f on c.flower_id = f.id left join t_supplier_info s on s.id = f.supplier_id -- Gitblit v1.9.3