mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-21 19:45:09 +08:00
add 新增首页查询抽成金额接口
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user