From 9bf1a14ae6a7644c17d305c42dbfcd500b4e8ea5 Mon Sep 17 00:00:00 2001 From: tangqian Date: Tue, 13 Jun 2023 14:19:16 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=BF=AE=E6=94=B9=E5=85=85=E5=80=BC?= =?UTF-8?q?=E8=AE=A2=E5=8D=95=E5=AF=BC=E5=87=BA(=E6=9C=AA=E9=80=80?= =?UTF-8?q?=E6=AC=BE=E4=BD=86=E6=98=AF=E9=80=80=E6=AC=BE=E9=87=91=E9=A2=9D?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E6=9C=89=E9=87=91=E9=A2=9D)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../recharge/RechargeOrderInfoMapper.xml | 31 ++++++++++--------- 1 file changed, 17 insertions(+), 14 deletions(-) diff --git a/yudao-module-mall/yudao-module-shop-biz/src/main/resources/mapper/recharge/RechargeOrderInfoMapper.xml b/yudao-module-mall/yudao-module-shop-biz/src/main/resources/mapper/recharge/RechargeOrderInfoMapper.xml index 728284b85..1dc5be3a4 100644 --- a/yudao-module-mall/yudao-module-shop-biz/src/main/resources/mapper/recharge/RechargeOrderInfoMapper.xml +++ b/yudao-module-mall/yudao-module-shop-biz/src/main/resources/mapper/recharge/RechargeOrderInfoMapper.xml @@ -9,23 +9,27 @@ 文档可见:https://www.iocoder.cn/MyBatis/x-plugins/ --> - select - a.order_id as 'orderNo', - e.name as tenantName, - f.product_name as 'productName', - f.price, - f.price as proTotalPrice, - f.price as payPrice, - a.paid as afterStatus, - f.price as refundPrice, + a.order_id as 'orderNo', + e.name as tenantName, + f.product_name as 'productName', + f.price, + f.price as proTotalPrice, + f.price as payPrice, + a.paid as afterStatus, + CASE a.refund_status + WHEN 2 THEN f.price + ELSE 0 + END AS refundPrice, a.uid as 'vipAccount', a.real_name as vipName from cy_recharge_order_info f - left join cy_recharge_order a on a.id = f.recharge_order_id - left join member_user b on a.promoter_id = b.id - left join system_dept d on d.id = a.dept_id - left join system_tenant e on e.id = a.tenant_id + left join cy_recharge_order a on a.id = f.recharge_order_id + left join member_user b on a.promoter_id = b.id + left join system_dept d on d.id = a.dept_id + left join system_tenant e on e.id = a.tenant_id f.recharge_order_id in @@ -37,5 +41,4 @@ -