解决抢险队伍和抢险物料分页查询报错

master
wany 2024-08-20 10:06:09 +08:00
parent 17898f5677
commit 169ef5ddc3
2 changed files with 2 additions and 2 deletions

View File

@ -21,7 +21,7 @@ public interface RescueGoodsMapper extends BaseMapper<RescueGoodsB> {
from public.rescue_goods_b t
<where>
<if test="obj.goodsName != null and obj.goodsName !=''">
t.goods_name LIKE concat('%',#{obj.goodsName},'%')
t.goods_name LIKE concat('%',#{obj.goodsName}::text,'%')
</if>
</where>
<if test="obj.sortField != null and obj.sortField !=''">

View File

@ -22,7 +22,7 @@ public interface RescueTeamBMapper extends BaseMapper<RescueTeamB> {
select distinct t2.* from public.rescue_team_b t2
<where>
<if test="obj.teamName != null and obj.teamName !=''">
and t2.team_name LIKE concat('%',#{obj.teamName},'%')
t2.team_name LIKE concat('%',#{obj.teamName}::text,'%')
</if>
<if test="obj.dateSo != null and obj.dateSo.start != null">
and t2.valid_end_date <![CDATA[>=]]> #{obj.dateSo.start}