模糊查询

mysql版本

  1. <if test="name != null and name != ''">
  2. and t.name like CONCAT('%',#{name},'%')
  3. </if>

oracle版本

  1. <if test="deviceFactoryName != null and deviceFactoryName != ''">
  2. AND DEVICE_FACTORY_NAME LIKE concat('%',#{deviceFactoryName},'%')
  3. </if>