解决预警广播查询报错

master
wany 2024-09-27 13:28:28 +08:00
parent 0fb2ca9293
commit fb86da6097
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ public interface BroadcastWarnMapper extends BaseMapper<BroadcastWarn> {
left join public.broadcast_station s on t.station_id = s.id left join public.broadcast_station s on t.station_id = s.id
<where> <where>
<if test="obj.warnContent != null and obj.warnContent != ''"> <if test="obj.warnContent != null and obj.warnContent != ''">
t.warn_content like concat('%', #{obj.warnContent}, '%') t.warn_content like concat('%', #{obj.warnContent}::text, '%')
</if> </if>
<if test="obj.timeRangeSo != null and obj.timeRangeSo.start != null"> <if test="obj.timeRangeSo != null and obj.timeRangeSo.start != null">
and t.create_time <![CDATA[>=]]> #{obj.timeRangeSo.start} and t.create_time <![CDATA[>=]]> #{obj.timeRangeSo.start}