From 29a8eeb43120d2019032f303bc9262308abb611b Mon Sep 17 00:00:00 2001
From: xiaoyong931011 <15274802129@163.com>
Date: Wed, 07 Sep 2022 14:39:41 +0800
Subject: [PATCH] 20220902
---
src/main/resources/mapper/modules/MallRefundMapper.xml | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/src/main/resources/mapper/modules/MallRefundMapper.xml b/src/main/resources/mapper/modules/MallRefundMapper.xml
index 1cfb987..97551cf 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}
@@ -16,7 +20,7 @@
and a.state = #{state}
</if>
</where>
-
+ order by a.CREATED_TIME desc
</select>
<select id="getOrderRefundListInPage" resultType="cc.mrbird.febs.mall.entity.MallRefundEntity">
@@ -24,7 +28,7 @@
b.order_no orderNo,
b.status,
c.goods_name goodsName,
- c.cnt,
+ 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
--
Gitblit v1.9.1