Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
fgqyxxlr
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
yaru
fgqyxxlr
Commits
a624ac00
Commit
a624ac00
authored
May 16, 2018
by
RuoYi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
支持模糊查询
parent
cc27d85b
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
11 additions
and
11 deletions
+11
-11
src/main/resources/mybatis/monitor/JobLogMapper.xml
+1
-1
src/main/resources/mybatis/monitor/JobMapper.xml
+1
-1
src/main/resources/mybatis/monitor/LogininforMapper.xml
+1
-1
src/main/resources/mybatis/monitor/OnlineMapper.xml
+1
-1
src/main/resources/mybatis/monitor/OperLogMapper.xml
+1
-1
src/main/resources/mybatis/system/DictDataMapper.xml
+1
-1
src/main/resources/mybatis/system/DictTypeMapper.xml
+1
-1
src/main/resources/mybatis/system/PostMapper.xml
+1
-1
src/main/resources/mybatis/system/RoleMapper.xml
+1
-1
src/main/resources/mybatis/system/UserMapper.xml
+1
-1
src/main/resources/mybatis/tool/GenMapper.xml
+1
-1
No files found.
src/main/resources/mybatis/monitor/JobLogMapper.xml
View file @
a624ac00
...
...
@@ -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>
...
...
src/main/resources/mybatis/monitor/JobMapper.xml
View file @
a624ac00
...
...
@@ -23,7 +23,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
select job_id, job_name, job_group, method_name, params, cron_expression, status, create_by, create_time remark from sys_job
<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>
...
...
src/main/resources/mybatis/monitor/LogininforMapper.xml
View file @
a624ac00
...
...
@@ -24,7 +24,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
select * from sys_logininfor
<where>
<if
test=
"searchValue != null and searchValue != ''"
>
AND login_name
= #{searchValue}
AND login_name
like concat(concat('%', #{searchValue}), '%')
</if>
</where>
</select>
...
...
src/main/resources/mybatis/monitor/OnlineMapper.xml
View file @
a624ac00
...
...
@@ -44,7 +44,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
select * from sys_user_online
<where>
<if
test=
"searchValue != null and searchValue != ''"
>
AND login_name
= #{searchValue}
AND login_name
like concat(concat('%', #{searchValue}), '%')
</if>
</where>
</select>
...
...
src/main/resources/mybatis/monitor/OperLogMapper.xml
View file @
a624ac00
...
...
@@ -29,7 +29,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
select * from sys_oper_log
<where>
<if
test=
"searchValue != null and searchValue != ''"
>
AND login_name
= #{searchValue}
AND login_name
like concat(concat('%', #{searchValue}), '%')
</if>
</where>
</select>
...
...
src/main/resources/mybatis/system/DictDataMapper.xml
View file @
a624ac00
...
...
@@ -21,7 +21,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
select dict_code, dict_sort, dict_label, dict_value, dict_type, status, create_by, create_time, remark from sys_dict_data
<where>
<if
test=
"searchValue != null and searchValue != ''"
>
AND dict_label
= #{searchValue}
AND dict_label
like concat(concat('%', #{searchValue}), '%')
</if>
<if
test=
"dictType != null and dictType != ''"
>
AND dict_type = #{dictType}
...
...
src/main/resources/mybatis/system/DictTypeMapper.xml
View file @
a624ac00
...
...
@@ -20,7 +20,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
select dict_id, dict_name, dict_type, status, create_by, create_time, remark from sys_dict_type
<where>
<if
test=
"searchValue != null and searchValue != ''"
>
AND dict_name
= #{searchValue} OR dict_type = #{searchValue}
AND dict_name
like concat(concat('%', #{searchValue}), '%') OR dict_type like concat(concat('%', #{searchValue}), '%')
</if>
</where>
</select>
...
...
src/main/resources/mybatis/system/PostMapper.xml
View file @
a624ac00
...
...
@@ -21,7 +21,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
select post_id, post_code, post_name, post_sort, status, create_by, create_time, remark from sys_post
<where>
<if
test=
"searchValue != null and searchValue != ''"
>
AND post_code
= #{searchValue} OR post_name = #{searchValue}
AND post_code
like concat(concat('%', #{searchValue}), '%') OR post_name like concat(concat('%', #{searchValue}), '%')
</if>
</where>
</select>
...
...
src/main/resources/mybatis/system/RoleMapper.xml
View file @
a624ac00
...
...
@@ -21,7 +21,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
select role_id, role_name, role_key, role_sort, status, create_time, remark from sys_role
<where>
<if
test=
"searchValue != null and searchValue != ''"
>
AND role_name
= #{searchValue} OR role_key = #{searchValue}
AND role_name
like concat(concat('%', #{searchValue}), '%') OR role_key like concat(concat('%', #{searchValue}), '%')
</if>
</where>
</select>
...
...
src/main/resources/mybatis/system/UserMapper.xml
View file @
a624ac00
...
...
@@ -37,7 +37,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
select user_id, dept_id, login_name, user_name, email, phonenumber, password, sex, avatar, salt, user_type, status, refuse_des, create_by, create_time from sys_user
<where>
<if
test=
"searchValue != null and searchValue != ''"
>
AND login_name
= #{searchValue}
AND login_name
like concat(concat('%', #{searchValue}), '%')
</if>
<if
test=
"deptId != null and parentId != null and parentId != 0"
>
AND dept_id IN (SELECT dept_id FROM sys_dept WHERE dept_id = #{deptId} OR parent_id = #{deptId})
...
...
src/main/resources/mybatis/tool/GenMapper.xml
View file @
a624ac00
...
...
@@ -22,7 +22,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
from information_schema.tables
where table_comment
<![CDATA[ <> ]]>
'' and table_schema = (select database())
<if
test=
"searchValue != null and searchValue != ''"
>
AND table_name
= #{searchValue}
AND table_name
like concat(concat('%', #{searchValue}), '%');
</if>
</select>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment