This commit is contained in:
YAS\29473
2025-05-23 16:26:54 +08:00
parent 4064a17c93
commit 08589536a0
9 changed files with 292 additions and 4 deletions

View File

@@ -55,6 +55,19 @@
from order_detail
where id = #{id,jdbcType=INTEGER}
</select>
<select id="selectByStationId" resultType="com.jsowell.pile.vo.lianlian.OrderTempVO">
SELECT
t1.order_code,
t2.transaction_code,
t1.total_used_electricity,
DATE_FORMAT(t2.create_time, '%Y-%m-%d %H:%i:%s') AS create_time,
DATE_FORMAT(t2.settlement_time, '%Y-%m-%d %H:%i:%s') AS settlement_time
FROM order_detail t1
JOIN order_basic_info t2
ON t1.order_code = t2.order_code
WHERE t2.station_id = #{stationId,jdbcType=INTEGER}
AND t1.del_flag = '0';
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
<!--@mbg.generated-->
delete from order_detail