From 5929b6021c56f523b0b960dac5caa765e6a14e7e Mon Sep 17 00:00:00 2001
From: Helius <wangdoubleone@gmail.com>
Date: Tue, 10 May 2022 19:14:37 +0800
Subject: [PATCH] add static profit

---
 src/main/resources/mapper/modules/MallGoodsMapper.xml |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/src/main/resources/mapper/modules/MallGoodsMapper.xml b/src/main/resources/mapper/modules/MallGoodsMapper.xml
index afd7b80..ac3fde8 100644
--- a/src/main/resources/mapper/modules/MallGoodsMapper.xml
+++ b/src/main/resources/mapper/modules/MallGoodsMapper.xml
@@ -193,4 +193,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