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
d63c6f69
Commit
d63c6f69
authored
Dec 10, 2017
by
naan1993
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改dept表名为sys_dept
parent
f3ce1e2e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
3 deletions
+5
-3
guns-admin/src/main/java/com/stylefeng/guns/common/persistence/model/Dept.java
+2
-0
guns-admin/src/main/java/com/stylefeng/guns/modular/system/dao/mapping/DeptDao.xml
+2
-2
guns-admin/src/main/java/com/stylefeng/guns/modular/system/dao/mapping/UserMgrDao.xml
+1
-1
No files found.
guns-admin/src/main/java/com/stylefeng/guns/common/persistence/model/Dept.java
View file @
d63c6f69
...
...
@@ -2,6 +2,7 @@ package com.stylefeng.guns.common.persistence.model;
import
com.baomidou.mybatisplus.activerecord.Model
;
import
com.baomidou.mybatisplus.annotations.TableId
;
import
com.baomidou.mybatisplus.annotations.TableName
;
import
com.baomidou.mybatisplus.enums.IdType
;
import
java.io.Serializable
;
...
...
@@ -14,6 +15,7 @@ import java.io.Serializable;
* @author stylefeng
* @since 2017-07-11
*/
@TableName
(
"sys_dept"
)
public
class
Dept
extends
Model
<
Dept
>
{
private
static
final
long
serialVersionUID
=
1L
;
...
...
guns-admin/src/main/java/com/stylefeng/guns/modular/system/dao/mapping/DeptDao.xml
View file @
d63c6f69
...
...
@@ -11,11 +11,11 @@
ELSE
'false'
END
) as isOpen from dept
) as isOpen from
sys_
dept
</select>
<select
id=
"list"
resultType=
"map"
>
select * from dept
select * from
sys_
dept
<if
test=
"condition != null and condition != ''"
>
where simplename like CONCAT('%',#{condition},'%') or fullname like CONCAT('%',#{condition},'%')
</if>
...
...
guns-admin/src/main/java/com/stylefeng/guns/modular/system/dao/mapping/UserMgrDao.xml
View file @
d63c6f69
...
...
@@ -27,7 +27,7 @@
or name like CONCAT('%',#{name},'%'))
</if>
<if
test=
"deptid != null and deptid != 0"
>
and (deptid = #{deptid} or deptid in ( select id from dept where pids like CONCAT('%[', #{deptid}, ']%') ))
and (deptid = #{deptid} or deptid in ( select id from
sys_
dept where pids like CONCAT('%[', #{deptid}, ']%') ))
</if>
<if
test=
"beginTime != null and beginTime != '' and endTime != null and endTime != ''"
>
and (createTime 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