Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
govdna
Project
Project
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
开发共享交流平台
govdna
Commits
473b680f
Commit
473b680f
authored
Aug 07, 2018
by
Administrator
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改字段名称deptId改为did 陈骏寅
parent
33914b41
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
8 deletions
+9
-8
AbstractController.java
.../govmade/modules/basic/controller/AbstractController.java
+1
-1
UserController.java
...com/govmade/modules/system/controller/UserController.java
+1
-1
UserEntity.java
...in/java/com/govmade/modules/system/entity/UserEntity.java
+6
-5
UserTest.java
src/test/java/test/UserTest.java
+1
-1
No files found.
src/main/java/com/govmade/modules/basic/controller/AbstractController.java
View file @
473b680f
...
...
@@ -18,7 +18,7 @@ public abstract class AbstractController {
protected
UserEntity
getUser
()
{
//return (UserEntity) SecurityUtils.getSubject().getPrincipal();
UserEntity
ue
=
new
UserEntity
();
ue
.
setD
eptI
d
(
1L
);
ue
.
setD
i
d
(
1L
);
return
null
;
}
...
...
src/main/java/com/govmade/modules/system/controller/UserController.java
View file @
473b680f
...
...
@@ -58,7 +58,7 @@ public class UserController extends AbstractController {
if
(
getUserId
()
!=
Constant
.
SUPER_ADMIN
)
{
params
.
put
(
"createBy"
,
getUserId
());
}
else
{
params
.
put
(
"deptId"
,
getUser
().
getD
eptI
d
());
// 部门管理员,查看本部门用户列表
params
.
put
(
"deptId"
,
getUser
().
getD
i
d
());
// 部门管理员,查看本部门用户列表
}
PageUtils
page
=
userService
.
queryPage
(
params
);
...
...
src/main/java/com/govmade/modules/system/entity/UserEntity.java
View file @
473b680f
...
...
@@ -17,7 +17,7 @@ public class UserEntity extends BaseEntity<Long> {
private
static
final
long
serialVersionUID
=
1L
;
private
Long
d
eptI
d
;
// 部门ID
private
Long
d
i
d
;
// 部门ID
private
Long
roleId
;
// 角色ID
...
...
@@ -35,12 +35,13 @@ public class UserEntity extends BaseEntity<Long> {
private
Date
lastLoginTime
;
// 最后一次登录时间
public
Long
getDeptId
()
{
return
deptId
;
public
Long
getDid
()
{
return
did
;
}
public
void
setD
eptId
(
Long
deptI
d
)
{
this
.
d
eptId
=
deptI
d
;
public
void
setD
id
(
Long
di
d
)
{
this
.
d
id
=
di
d
;
}
public
Long
getRoleId
()
{
...
...
src/test/java/test/UserTest.java
View file @
473b680f
...
...
@@ -19,7 +19,7 @@ public class UserTest {
public
void
contextLoads
()
{
UserEntity
user
=
new
UserEntity
();
user
.
setEmail
(
"qqq@qq.com"
);
user
.
setD
eptI
d
(
1L
);
user
.
setD
i
d
(
1L
);
user
.
setRoleId
(
1L
);
System
.
out
.
println
(
user
);
...
...
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