From ca7809d5fcf86454118d41c88a3b9c238fe6b270 Mon Sep 17 00:00:00 2001
From: xiaoyong931011 <15274802129@163.com>
Date: Sat, 28 May 2022 10:58:49 +0800
Subject: [PATCH] Merge branch 'mall-amz' of http://120.27.238.55:7000/r/xc-mall into mall-amz
---
src/main/resources/mapper/modules/MallGoodsMapper.xml | 15 +++++++++++++++
1 files changed, 15 insertions(+), 0 deletions(-)
diff --git a/src/main/resources/mapper/modules/MallGoodsMapper.xml b/src/main/resources/mapper/modules/MallGoodsMapper.xml
index 2b0cbce..3b68816 100644
--- a/src/main/resources/mapper/modules/MallGoodsMapper.xml
+++ b/src/main/resources/mapper/modules/MallGoodsMapper.xml
@@ -66,6 +66,7 @@
a.thumb,
a.original_price,
a.present_price,
+ a.score,
a.is_hot,
min(b.present_price) price,
sum(b.sku_volume) saleVolume
@@ -128,6 +129,7 @@
a.present_price,
a.is_hot,
a.score,
+ a.is_normal,
b.name categaryName,
IFNULL(sum(c.sku_volume), a.volume) skuVolume,
IFNULL(sum(c.stock), a.stock) stock
@@ -192,4 +194,17 @@
a.goods_name goodsName
from mall_goods a
</select>
+
+ <select id="selectOrderGoodsList" resultType="cc.mrbird.febs.mall.entity.MallGoods">
+ select a.*,c.order_no from mall_goods a
+ inner join mall_order_item b on a.id=b.goods_id
+ inner join mall_order_info c on b.order_id=c.ID
+ where c.status=4
+ <if test="memberId != null">
+ and c.member_id=#{memberId}
+ </if>
+ <if test="date != null">
+ and date_format(c.receving_time, '%Y-%m-%d') = date_format(#{date}, '%Y-%m-%d')
+ </if>
+ </select>
</mapper>
\ No newline at end of file
--
Gitblit v1.9.1