update空指针接口

This commit is contained in:
YAS\29473
2025-07-09 18:36:46 +08:00
parent b50178aad3
commit 35ce808ee7
5 changed files with 218 additions and 167 deletions

View File

@@ -3302,4 +3302,24 @@
</foreach>
and create_time between #{startTime,jdbcType=VARCHAR} and #{endTime,jdbcType=VARCHAR}
</select>
<select id="queryOrderListByStationIdAndTime" 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.create_time <![CDATA[ >= ]]> #{startTime,jdbcType=VARCHAR}
and t1.create_time <![CDATA[ <= ]]> #{endTime,jdbcType=VARCHAR}
order by t1.create_time DESC
</select>
</mapper>