mybaties实体的 Mapper.xml文件中自定义sql时模糊查询的写法

<select  id=selectByNameLike" parameterType="string" resultMap="BaseResultMap">

  SELECT
      *
  FROM
      a
  LEFT JOIN b ON a.bid = b.id
  WHERE
      a.NAME LIKE concat ("%", #{name},"%")

<select>

原文地址:https://www.cnblogs.com/libin6505/p/10036530.html