新增 批量查询枪口列表接口

This commit is contained in:
Lemon
2024-11-06 11:37:26 +08:00
parent 41b7efde3b
commit 9623d1b8be
5 changed files with 119 additions and 4 deletions

View File

@@ -285,4 +285,24 @@
AND
t3.pile_connector_code = #{dto.pileConnectorCode,jdbcType=VARCHAR}
</select>
<select id="batchSelectConnectorList" resultType="com.jsowell.pile.vo.base.ConnectorInfoVO">
SELECT
t1.pile_connector_code as pileConnectorCode,
t2.station_id as stationId,
t1.STATUS as connectorStatus,
t1.pile_sn as pileSn,
t2.model_id as modelId,
t3.speed_type as chargingType,
t3.rated_power as ratedPower
FROM
pile_connector_info t1
JOIN pile_basic_info t2 ON (t1.pile_sn = t2.sn AND t2.del_flag = '0')
JOIN pile_model_info t3 ON (t2.model_id = t3.id AND t3.del_flag = '0')
WHERE t1.del_flag = '0'
AND t2.station_id in
<foreach collection="stationIds" item="stationId" open="(" separator="," close=")">
#{stationId, jdbcType=VARCHAR}
</foreach>
</select>
</mapper>