增加字段

This commit is contained in:
YAS\29473
2025-04-08 08:44:34 +08:00
parent 931ecd42c5
commit 5bc268c922
8 changed files with 82 additions and 0 deletions

View File

@@ -3119,4 +3119,16 @@
</where>
</select>
<select id="queryOrderCreateTimeByStationId" resultType="java.time.LocalDateTime">
SELECT
create_time
FROM
order_basic_info
WHERE
station_id = #{stationId}
ORDER BY
create_time DESC
LIMIT 1;
</select>
</mapper>

View File

@@ -305,4 +305,16 @@
#{stationId, jdbcType=VARCHAR}
</foreach>
</select>
<select id="queryAbnormalDeviceCount" resultType="java.lang.String">
SELECT
t1.pile_sn
FROM
pile_connector_info t1
LEFT JOIN pile_basic_info t2 ON t1.pile_sn = t2.sn
WHERE
t1.status = '255'
AND
t2.station_id = #{stationId,jdbcType=VARCHAR}
</select>
</mapper>