update 贵州省平台Service

This commit is contained in:
Lemon
2024-12-20 09:11:48 +08:00
parent d96060da9a
commit 5869e8d5f3
10 changed files with 170 additions and 38 deletions

View File

@@ -1015,6 +1015,7 @@
<if test="dto.occupyCode != null and dto.occupyCode != ''"> and t1.occupy_code = #{dto.occupyCode}</if>
<if test="dto.memberId != null and dto.memberId != ''"> and t1.member_id = #{dto.memberId}</if>
<if test="dto.stationId != null and dto.stationId != ''"> and t1.station_id = #{dto.stationId}</if>
<if test="dto.stationName != null and dto.stationName != ''"> and t2.station_name = #{dto.stationName}</if>
<if test="dto.plateNumber != null and dto.plateNumber != ''"> and t1.plate_number = #{dto.plateNumber}</if>
<if test="dto.status != null and dto.status != ''"> and t1.status = #{dto.status}</if>
<if test="dto.payStatus != null and dto.payStatus != ''"> and t1.pay_status = #{dto.payStatus}</if>

View File

@@ -456,4 +456,22 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
t1.del_flag = '0'
and t1.sn = #{pileSn,jdbcType=VARCHAR}
</select>
<select id="getPileDetailInfoList" resultType="com.jsowell.pile.thirdparty.PileDetailInfoVO">
SELECT
t1.sn AS pileSn,
t1.model_id AS modelId,
t2.model_name AS modelName,
t2.rated_power AS ratedPower,
t2.rated_voltage as ratedVoltage,
t2.rated_current as ratedCurrent,
t2.connector_num as connectorNum,
t2.speed_type AS speedType,
t1.create_time AS createTime
FROM
pile_basic_info t1
JOIN pile_model_info t2 ON t1.model_id = t2.id
WHERE
t1.station_id = #{stationId,jdbcType=VARCHAR}
</select>
</mapper>