新增 运营端小程序搜索枪口信息接口

This commit is contained in:
Lemon
2024-09-03 08:47:55 +08:00
parent f8f69e37e3
commit ed7ed05b68
8 changed files with 127 additions and 17 deletions

View File

@@ -257,4 +257,20 @@
#{pileConnectorCode,jdbcType=VARCHAR}
</foreach>
</select>
<select id="getConnectorInfoByParams" resultType="com.jsowell.pile.vo.web.PileConnectorInfoVO">
SELECT
t1.id AS stationId,
-- t2.sn AS pileSn,
t3.pile_connector_code AS pileConnectorCode,
t3.status
FROM
pile_station_info t1
JOIN pile_basic_info t2 ON t1.id = t2.station_id
JOIN pile_connector_info t3 ON t2.sn = t3.pile_sn
WHERE
t1.id = #{dto.stationId,jdbcType=VARCHAR}
AND
t3.pile_connector_code = #{dto.pileConnectorCode,jdbcType=VARCHAR}
</select>
</mapper>