标签:
数据库使用MySQL,Mapper.xml文件中涉及模糊查询的语句可以写成:
<if test="location !=null and location != ‘‘"> and gb.location LIKE CONCAT(CONCAT(‘%‘, #{location}), ‘%‘) </if>
MyBatis模糊查询
原文地址:http://www.cnblogs.com/winner-0715/p/5792735.html