update 小程序首页查询站点列表接口

This commit is contained in:
Lemon
2025-03-26 16:47:20 +08:00
parent f136f66855
commit 1232418627
3 changed files with 59 additions and 36 deletions

View File

@@ -347,8 +347,16 @@
pile_station_info t1
left JOIN pile_basic_info t2 ON t1.id = t2.station_id and t2.del_flag = '0'
left JOIN pile_merchant_info t3 ON t3.id = t1.merchant_id and t3.del_flag = '0'
left join pile_model_info t4 on t2.model_id = t4.id and t2.del_flag = '0'
where
t1.del_flag = '0'
<if test="stationDTO.chargeMode != null and stationDTO.chargeMode != ''">
and t4.speed_type = #{stationDTO.chargeMode,jdbcType=VARCHAR}
</if>
<if test="stationDTO.startPower != null and stationDTO.startPower != '' and stationDTO.endPower != null and stationDTO.endPower != ''">
and t4.rated_power between #{stationDTO.startPower,jdbcType=VARCHAR} and #{stationDTO.endPower,jdbcType=VARCHAR}
</if>
<if test="stationDTO.stationName != null and stationDTO.stationName != ''">
and t1.station_name LIKE '%${stationDTO.stationName}%'
</if>