<select id="findPage" parameterType="java.lang.String" resultType="cn.health.pojo.CheckItem">
SELECT * FROM t_checkitem
<where>
<if test="value != null and value.length > 0">
NAME LIKE CONCAT ('%',#{queryString},'%') OR code LIKE CONCAT('%',#{queryString},'%')
</if>
</where>
</select>
Mybatis模糊查询语法
最新推荐文章于 2024-05-14 07:49:39 发布