Merge branch 'feature/mall_product'

pull/17/head
tangqian 2023-06-13 14:49:27 +08:00
commit 0390415a48
1 changed files with 17 additions and 14 deletions

View File

@ -9,23 +9,27 @@
文档可见https://www.iocoder.cn/MyBatis/x-plugins/ 文档可见https://www.iocoder.cn/MyBatis/x-plugins/
--> -->
<select id="getRechargeOrderInfoListExcel" resultType="cn.iocoder.yudao.module.shop.controller.admin.recharge.vo.RechargeOrderInfoExcelVO"> <select id="getRechargeOrderInfoListExcel"
resultType="cn.iocoder.yudao.module.shop.controller.admin.recharge.vo.RechargeOrderInfoExcelVO">
select select
a.order_id as 'orderNo', a.order_id as 'orderNo',
e.name as tenantName, e.name as tenantName,
f.product_name as 'productName', f.product_name as 'productName',
f.price, f.price,
f.price as proTotalPrice, f.price as proTotalPrice,
f.price as payPrice, f.price as payPrice,
a.paid as afterStatus, a.paid as afterStatus,
f.price as refundPrice, CASE a.refund_status
WHEN 2 THEN f.price
ELSE 0
END AS refundPrice,
a.uid as 'vipAccount', a.uid as 'vipAccount',
a.real_name as vipName a.real_name as vipName
from cy_recharge_order_info f from cy_recharge_order_info f
left join cy_recharge_order a on a.id = f.recharge_order_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 member_user b on a.promoter_id = b.id
left join system_dept d on d.id = a.dept_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 system_tenant e on e.id = a.tenant_id
<where> <where>
<if test="ids!=null and ids.size>0"> <if test="ids!=null and ids.size>0">
f.recharge_order_id in f.recharge_order_id in
@ -37,5 +41,4 @@
</select> </select>
</mapper> </mapper>