新增 根据汇付会员id查询分账汇总数据接口

This commit is contained in:
YAS\29473
2025-04-14 17:02:09 +08:00
parent bc7fa82f71
commit 247185202e
8 changed files with 192 additions and 4 deletions

View File

@@ -836,4 +836,23 @@
station_id = #{dto.stationId,jdbcType=VARCHAR}
AND trade_date BETWEEN #{dto.startTime,jdbcType=VARCHAR} AND #{dto.endTime,jdbcType=VARCHAR}
</select>
<select id="queryStationAggregateData" resultType="com.jsowell.pile.vo.web.SplitConfigStationVO">
SELECT
t2.station_id AS stationId,
t3.station_name AS stationName,
t1.electricity_amount AS electricityAmount,
t1.service_amount AS serviceAmount,
t1.fee_amount AS feeAmount,
t1.trade_date AS tradeDate
FROM
order_split_record t1
JOIN order_basic_info t2 ON t1.order_code = t2.order_code
JOIN pile_station_info t3 ON t1.station_id = t3.id
WHERE
t1.adapay_member_id = #{adapayMemberId}
AND t1.del_flag = '0'
AND t1.trade_date BETWEEN #{startTime,jdbcType=VARCHAR} AND #{endTime,jdbcType=VARCHAR};
</select>
</mapper>