支持模糊查询

This commit is contained in:
RuoYi
2018-05-16 21:44:27 +08:00
parent cc27d85b1a
commit a624ac009e
11 changed files with 11 additions and 11 deletions

View File

@ -20,7 +20,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
select * from sys_job_log
<where>
<if test="searchValue != null and searchValue != ''">
AND job_name = #{searchValue} OR method_name = #{searchValue}
AND job_name like concat(concat('%', #{searchValue}), '%') OR method_name like concat(concat('%', #{searchValue}), '%')
</if>
</where>
</select>