This commit is contained in:
zhaohengkun 2024-10-08 11:40:50 +08:00
parent 2fc94aad3d
commit 11a2fe0512

View File

@ -723,11 +723,12 @@
<select id="getPaymentChannelData" resultType="com.fuint.business.order.vo.AllOrderInfoVo"> <select id="getPaymentChannelData" resultType="com.fuint.business.order.vo.AllOrderInfoVo">
SELECT SELECT
sum(CASE WHEN payment_channel = '富友' THEN pay_money ELSE 0 END) fuYouAmount, sum( CASE WHEN payment_channel = '富友' THEN pay_money ELSE 0 END ) fuYouAmount,
sum(CASE WHEN payment_channel = '拉卡拉' THEN pay_money ELSE 0 END) laKaLaAmount, sum( CASE WHEN payment_channel = '拉卡拉' THEN pay_money ELSE 0 END ) laKaLaAmount,
count(CASE WHEN payment_channel = '富友' THEN 1 ELSE 0 END) AS fuYouCount, COUNT(CASE WHEN payment_channel = '富友' THEN 1 END) AS fuYouCount,
count(CASE WHEN payment_channel = '拉卡拉' THEN 1 ELSE 0 END) AS laKaLaCount COUNT(CASE WHEN payment_channel = '拉卡拉' THEN 1 END) AS laKaLaCount
from all_order_info FROM
all_order_info
where where
store_id = #{order.storeId} store_id = #{order.storeId}
<if test="order.beginTime != null and order.beginTime != ''"><!-- 开始时间检索 --> <if test="order.beginTime != null and order.beginTime != ''"><!-- 开始时间检索 -->