Commit d30db6af authored by Administrator's avatar Administrator

did 改回deptId

parent 473b680f
...@@ -18,7 +18,7 @@ public abstract class AbstractController { ...@@ -18,7 +18,7 @@ public abstract class AbstractController {
protected UserEntity getUser() { protected UserEntity getUser() {
//return (UserEntity) SecurityUtils.getSubject().getPrincipal(); //return (UserEntity) SecurityUtils.getSubject().getPrincipal();
UserEntity ue = new UserEntity(); UserEntity ue = new UserEntity();
ue.setDid(1L); ue.setDeptId(1L);
return null; return null;
} }
......
...@@ -58,7 +58,7 @@ public class UserController extends AbstractController { ...@@ -58,7 +58,7 @@ public class UserController extends AbstractController {
if (getUserId() != Constant.SUPER_ADMIN) { if (getUserId() != Constant.SUPER_ADMIN) {
params.put("createBy", getUserId()); params.put("createBy", getUserId());
} else { } else {
params.put("deptId", getUser().getDid()); // 部门管理员,查看本部门用户列表 params.put("deptId", getUser().getDeptId()); // 部门管理员,查看本部门用户列表
} }
PageUtils page = userService.queryPage(params); PageUtils page = userService.queryPage(params);
......
...@@ -17,7 +17,7 @@ public class UserEntity extends BaseEntity<Long> { ...@@ -17,7 +17,7 @@ public class UserEntity extends BaseEntity<Long> {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
private Long did; // 部门ID private Long deptId; // 部门ID
private Long roleId; // 角色ID private Long roleId; // 角色ID
...@@ -35,13 +35,12 @@ public class UserEntity extends BaseEntity<Long> { ...@@ -35,13 +35,12 @@ public class UserEntity extends BaseEntity<Long> {
private Date lastLoginTime; // 最后一次登录时间 private Date lastLoginTime; // 最后一次登录时间
public Long getDeptId() {
public Long getDid() { return deptId;
return did;
} }
public void setDid(Long did) { public void setDeptId(Long deptId) {
this.did = did; this.deptId = deptId;
} }
public Long getRoleId() { public Long getRoleId() {
......
...@@ -19,7 +19,7 @@ public class UserTest { ...@@ -19,7 +19,7 @@ public class UserTest {
public void contextLoads() { public void contextLoads() {
UserEntity user = new UserEntity(); UserEntity user = new UserEntity();
user.setEmail("qqq@qq.com"); user.setEmail("qqq@qq.com");
user.setDid(1L); user.setDeptId(1L);
user.setRoleId(1L); user.setRoleId(1L);
System.out.println(user); System.out.println(user);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment