mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-22 03:55:17 +08:00
新增 宁夏平台 推送充换电站实时功率接口
This commit is contained in:
@@ -2882,4 +2882,25 @@
|
||||
and order_status = '0'
|
||||
and order_basic_info.reserved_start_time <![CDATA[ <= ]]> #{dateTime,jdbcType=TIMESTAMP}
|
||||
</select>
|
||||
|
||||
<select id="queryOrderListByStationId" resultType="com.jsowell.pile.vo.SupStationStatsVO">
|
||||
SELECT
|
||||
t1.order_code as orderCode,
|
||||
t3.organization_code as organizationCode,
|
||||
t1.station_id AS stationId,
|
||||
t1.pile_sn AS pileSn,
|
||||
t1.pile_connector_code AS pileConnectorCode,
|
||||
t1.charge_start_time AS StartTime,
|
||||
t1.charge_end_time AS EndTime,
|
||||
t2.total_used_electricity AS totalPower
|
||||
FROM
|
||||
order_basic_info t1
|
||||
JOIN order_detail t2 ON t1.order_code = t2.order_code
|
||||
AND t1.del_flag = '0'
|
||||
JOIN pile_merchant_info t3 on t1.merchant_id = t3.id
|
||||
WHERE
|
||||
t1.station_id = #{stationId,jdbcType=VARCHAR}
|
||||
AND t1.charge_start_time <![CDATA[ >= ]]> DATE_SUB( CURDATE(), INTERVAL 1 DAY )
|
||||
AND t1.charge_start_time <![CDATA[ < ]]> CURDATE()
|
||||
</select>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user