From c619972c50577bb699be6ee099b5e2741882fabb Mon Sep 17 00:00:00 2001
From: KKSU <15274802129@163.com>
Date: Wed, 27 Dec 2023 16:15:59 +0800
Subject: [PATCH] 直推奖励,冻结的用户,则直推奖励销毁,用户未冻结才能领取成功

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

diff --git a/src/main/resources/mapper/modules/MallOrderItemMapper.xml b/src/main/resources/mapper/modules/MallOrderItemMapper.xml
index 05805ae..cf798f2 100644
--- a/src/main/resources/mapper/modules/MallOrderItemMapper.xml
+++ b/src/main/resources/mapper/modules/MallOrderItemMapper.xml
@@ -19,5 +19,26 @@
         where order_id = #{orderId}
     </update>
 
+    <select id="selectListByOrderId" resultType="cc.mrbird.febs.mall.entity.MallOrderItem">
+        select a.* from mall_order_item a
+        where a.order_id=#{orderId}
+    </select>
+
+
+    <select id="getAppOrderItemByOrderId" resultType="cc.mrbird.febs.mall.vo.ApiGetOrderOrderItemVo">
+        select
+               a.goods_id,
+               a.goods_name,
+               a.sku_image,
+               a.price,
+               a.app_cnt,
+               a.amount,
+               b.unit
+        from mall_order_item a
+        left join mall_goods b on a.goods_id = b.id
+        where
+              a.order_id = #{orderId}
+    </select>
+
 
 </mapper>
\ No newline at end of file

--
Gitblit v1.9.1