Browse Source

mariadb不支持innodb全文索引,暂时用like代替

master
wangxianzhang 3 years ago
parent
commit
694201b84f
  1. 2
      epmet-module/epmet-heart/epmet-heart-server/src/main/resources/mapper/IcUserDemandRecDao.xml

2
epmet-module/epmet-heart/epmet-heart-server/src/main/resources/mapper/IcUserDemandRecDao.xml

@ -328,7 +328,7 @@
<if test="null != keyword and keyword != ''"> <if test="null != keyword and keyword != ''">
AND ( AND (
r.DEMAND_USER_NAME = #{keyword} r.DEMAND_USER_NAME = #{keyword}
OR match(r.CONTENT) against (#{keyword} in boolean mode ) OR r.CONTENT like CONCAT('%',#{keyword},'%')
OR s.SERVER_NAME like CONCAT('%',#{keyword},'%') OR s.SERVER_NAME like CONCAT('%',#{keyword},'%')
) )
</if> </if>

Loading…
Cancel
Save