From 6c0e67faa30ca17179a0dfeac26beba3f109d3c2 Mon Sep 17 00:00:00 2001
From: xiaoyong931011 <15274802129@163.com>
Date: Tue, 30 Aug 2022 17:32:35 +0800
Subject: [PATCH] 20220822

---
 src/main/resources/mapper/modules/MallRefundMapper.xml |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/src/main/resources/mapper/modules/MallRefundMapper.xml b/src/main/resources/mapper/modules/MallRefundMapper.xml
index 1cfb987..7c1ebc9 100644
--- a/src/main/resources/mapper/modules/MallRefundMapper.xml
+++ b/src/main/resources/mapper/modules/MallRefundMapper.xml
@@ -4,7 +4,11 @@
 
     <select id="selectByItemIdAndOrderIdAndState" resultType="cc.mrbird.febs.mall.entity.MallRefundEntity">
 
-        select a.* from mall_refund a
+        select a.*,
+        c.cnt
+        from mall_refund a
+        inner join mall_order_info b on a.order_id = b.id
+        inner join mall_order_item c on a.item_id = c.id
         <where>
             <if test="itemId != null and itemId != ''">
                 and a.item_id = #{itemId}

--
Gitblit v1.9.1