Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
guns-vip
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
chenjunxiong
guns-vip
Commits
faa9e71c
Commit
faa9e71c
authored
Apr 04, 2019
by
fengshuonan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
适配like的$
parent
ec4d2565
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
src/main/java/cn/stylefeng/guns/modular/system/mapper/mapping/DeptMapper.xml
+1
-1
src/main/java/cn/stylefeng/guns/modular/system/mapper/mapping/MenuMapper.xml
+1
-1
src/main/java/cn/stylefeng/guns/modular/system/mapper/mapping/UserMapper.xml
+1
-1
No files found.
src/main/java/cn/stylefeng/guns/modular/system/mapper/mapping/DeptMapper.xml
View file @
faa9e71c
...
@@ -55,7 +55,7 @@
...
@@ -55,7 +55,7 @@
and simple_name like CONCAT('%',#{condition},'%') or full_name like CONCAT('%',#{condition},'%')
and simple_name like CONCAT('%',#{condition},'%') or full_name like CONCAT('%',#{condition},'%')
</if>
</if>
<if
test=
"deptId != null and deptId != ''"
>
<if
test=
"deptId != null and deptId != ''"
>
and (dept_id = #{deptId} or dept_id in ( select dept_id from sys_dept where pids like CONCAT('%
[', #{deptId}, ']%')
))
and (dept_id = #{deptId} or dept_id in ( select dept_id from sys_dept where pids like CONCAT('%
$[', #{deptId}, '$]%') escape '$'
))
</if>
</if>
order by sort ASC
order by sort ASC
</select>
</select>
...
...
src/main/java/cn/stylefeng/guns/modular/system/mapper/mapping/MenuMapper.xml
View file @
faa9e71c
...
@@ -41,7 +41,7 @@
...
@@ -41,7 +41,7 @@
and levels = #{level}
and levels = #{level}
</if>
</if>
<if
test=
"menuId != null and menuId != 0"
>
<if
test=
"menuId != null and menuId != 0"
>
and (menu_id = #{menuId} or menu_id in ( select menu_id from sys_menu where pcodes like CONCAT('%
[', #{code}, ']%')
))
and (menu_id = #{menuId} or menu_id in ( select menu_id from sys_menu where pcodes like CONCAT('%
$[', #{code}, '$]%') escape '$'
))
</if>
</if>
</select>
</select>
...
...
src/main/java/cn/stylefeng/guns/modular/system/mapper/mapping/UserMapper.xml
View file @
faa9e71c
...
@@ -44,7 +44,7 @@
...
@@ -44,7 +44,7 @@
or name like CONCAT('%',#{name},'%'))
or name like CONCAT('%',#{name},'%'))
</if>
</if>
<if
test=
"deptId != null and deptId != 0"
>
<if
test=
"deptId != null and deptId != 0"
>
and (dept_id = #{deptId} or dept_id in ( select dept_id from sys_dept where pids like CONCAT('%
[', #{deptId}, ']%')
))
and (dept_id = #{deptId} or dept_id in ( select dept_id from sys_dept where pids like CONCAT('%
$[', #{deptId}, '$]%') escape '$'
))
</if>
</if>
<if
test=
"beginTime != null and beginTime != '' and endTime != null and endTime != ''"
>
<if
test=
"beginTime != null and beginTime != '' and endTime != null and endTime != ''"
>
and (create_time between CONCAT(#{beginTime},' 00:00:00') and CONCAT(#{endTime},' 23:59:59'))
and (create_time between CONCAT(#{beginTime},' 00:00:00') and CONCAT(#{endTime},' 23:59:59'))
...
...
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