From ef4ee2df5de41f2eb76dad34825a81efb227a6d3 Mon Sep 17 00:00:00 2001
From: xiaoyong931011 <15274802129@163.com>
Date: Thu, 01 Sep 2022 11:58:29 +0800
Subject: [PATCH] 20220822
---
src/main/resources/mapper/modules/MallRefundMapper.xml | 26 ++++++++++++++++++++++++--
1 files changed, 24 insertions(+), 2 deletions(-)
diff --git a/src/main/resources/mapper/modules/MallRefundMapper.xml b/src/main/resources/mapper/modules/MallRefundMapper.xml
index fe05001..7af7708 100644
--- a/src/main/resources/mapper/modules/MallRefundMapper.xml
+++ b/src/main/resources/mapper/modules/MallRefundMapper.xml
@@ -4,8 +4,11 @@
<select id="selectByItemIdAndOrderIdAndState" resultType="cc.mrbird.febs.mall.entity.MallRefundEntity">
- select a.* from mall_refund a
- where item_id=#{itemId} and order_id=#{orderId} and state=#{state}
+ 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}
@@ -20,5 +23,24 @@
</select>
+ <select id="getOrderRefundListInPage" resultType="cc.mrbird.febs.mall.entity.MallRefundEntity">
+ select a.*,
+ b.order_no orderNo,
+ b.status,
+ c.goods_name goodsName,
+ 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="record != null" >
+ <if test="record.state!=null and record.state!=''">
+ and a.state = #{record.state}
+ </if>
+ </if>
+ </where>
+ order by a.CREATED_TIME desc
+ </select>
+
</mapper>
\ No newline at end of file
--
Gitblit v1.9.1