查询充电桩列表,可以模糊匹配桩号

This commit is contained in:
2024-03-11 16:38:02 +08:00
parent 0cec8f18ce
commit 1cb73ffa59

View File

@@ -171,7 +171,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
LEFT join pile_model_info t6 on t6.id = t1.model_id
where t1.del_flag = '0'
<if test="dto.pileSn != null and dto.pileSn != ''">
and t1.sn = #{dto.pileSn,jdbcType=VARCHAR}
and (t1.sn = #{dto.pileSn,jdbcType=VARCHAR} or t1.sn like concat('%', #{dto.pileSn,jdbcType=VARCHAR}, '%'))
</if>
<if test="dto.stationId != null and dto.stationId != ''">
and t1.station_Id = #{dto.stationId,jdbcType=VARCHAR}