This commit is contained in:
Lemon
2025-04-11 13:57:22 +08:00
parent 002e169b9c
commit 7a0ec7e4e3
11 changed files with 148 additions and 4 deletions

View File

@@ -799,4 +799,25 @@
#{item}
</foreach>
</select>
<select id="queryOrderSplitData" resultType="com.jsowell.pile.vo.web.OrderSplitRecordVO">
SELECT
t1.order_code AS orderCode,
t1.station_id AS stationId,
t2.order_amount AS orderAmount,
t1.settle_amount AS settleAmount,
t1.adapay_member_id AS adapayMemberId,
t1.electricity_split_ratio AS electricitySplitRatio,
t1.electricity_split_amount AS electricitySplitAmount,
t1.service_split_ratio AS serviceSplitRatio,
t1.service_split_amount AS serviceSplitAmount,
t1.fee_amount AS feeAmount
FROM
order_split_record t1
JOIN order_basic_info t2 ON t1.order_code = t2.order_code
AND t1.del_flag = '0'
WHERE
t1.station_id = #{dto.stationId,jdbcType=VARCHAR}
AND t1.trade_date BETWEEN #{dto.startTime,jdbcType=VARCHAR} AND #{dto.endTime,jdbcType=VARCHAR}
</select>
</mapper>