Commit 473b680f authored by Administrator's avatar Administrator

修改字段名称deptId改为did 陈骏寅

parent 33914b41
...@@ -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.setDeptId(1L); ue.setDid(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().getDeptId()); // 部门管理员,查看本部门用户列表 params.put("deptId", getUser().getDid()); // 部门管理员,查看本部门用户列表
} }
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 deptId; // 部门ID private Long did; // 部门ID
private Long roleId; // 角色ID private Long roleId; // 角色ID
...@@ -35,12 +35,13 @@ public class UserEntity extends BaseEntity<Long> { ...@@ -35,12 +35,13 @@ public class UserEntity extends BaseEntity<Long> {
private Date lastLoginTime; // 最后一次登录时间 private Date lastLoginTime; // 最后一次登录时间
public Long getDeptId() {
return deptId; public Long getDid() {
return did;
} }
public void setDeptId(Long deptId) { public void setDid(Long did) {
this.deptId = deptId; this.did = did;
} }
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.setDeptId(1L); user.setDid(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