Browse Source

优化兼容oracle模糊查询写法

test
smallchill 5 years ago
parent
commit
771a735b01
  1. 2
      blade-service/blade-demo/src/main/java/com/example/demo/mapper/NoticeMapper.xml

2
blade-service/blade-demo/src/main/java/com/example/demo/mapper/NoticeMapper.xml

@ -33,7 +33,7 @@
</select> </select>
<select id="selectNoticePage" resultMap="noticeResultMap"> <select id="selectNoticePage" resultMap="noticeResultMap">
select * from blade_notice where title like concat('%', #{notice.title}, '%') and is_deleted = 0 select * from blade_notice where title like concat(concat('%', #{notice.title}), '%') and is_deleted = 0
</select> </select>
</mapper> </mapper>

Loading…
Cancel
Save