add 新增首页查询抽成金额接口

This commit is contained in:
Lemon
2025-11-14 13:57:46 +08:00
parent 776c0279be
commit e30ffa19af
8 changed files with 134 additions and 116 deletions

View File

@@ -3451,4 +3451,27 @@
AND DATE_ADD(#{endTime,jdbcType=VARCHAR}, INTERVAL 1 DAY)
ORDER BY t1.create_time DESC
</select>
<select id="getPlatformProfit" resultType="com.jsowell.pile.vo.web.IndexPlatformProfitVO">
select
count(DISTINCT(`order_code` ) ) as chargeTimes,
trade_date as tradeDate,
-- station_name as '站点名称',
adapay_member_id as adapayMemberId,
sum(`electricity_amount` ) as electricityAmount,
sum(`service_amount` ) as serviceAmount,
sum(`settle_amount` ) as settleAmount,
sum(electricity_split_amount) as electricitySplitAmount,
sum(service_split_amount) as serviceSplitAmount,
sum(electricity_split_amount + service_split_amount) as totalSplitAmount
from
`order_split_record`
WHERE
`trade_date` BETWEEN #{startTime,jdbcType=VARCHAR} and #{endTime,jdbcType=VARCHAR}
and `adapay_member_id` = '0'
and `electricity_split_ratio` = '2'
and `del_flag` = '0'
group by
`trade_date`
</select>
</mapper>