|
@ -68,6 +68,26 @@ public class SysService {
|
68
|
68
|
return null;
|
69
|
69
|
}
|
70
|
70
|
|
|
71
|
@Get
|
|
72
|
@Path("/refresh")
|
|
73
|
public SessionManager refresh(@JdbcConn Connection con,@LoginUser SessionManager user)throws SQLException {
|
|
74
|
Manager manager = userDao.managerQuery(con, user.getId());
|
|
75
|
user.setName(manager.getName());
|
|
76
|
user.setAccount(manager.getAccount());
|
|
77
|
user.setPhone(manager.getPhone());
|
|
78
|
user.setEmail(manager.getEmail());
|
|
79
|
user.setJob(manager.getJob());
|
|
80
|
user.setDep(manager.getDep());
|
|
81
|
user.setComp(manager.getComp());
|
|
82
|
user.setActived(manager.isActived());
|
|
83
|
user.setCreateTime(manager.getCreateTime());
|
|
84
|
user.setInvalidTime(manager.getInvalidTime());
|
|
85
|
List<String> rightList = userDao.right(con, user.getId());
|
|
86
|
user.setRightCode(rightList.toArray(new String[0]));
|
|
87
|
return user;
|
|
88
|
}
|
|
89
|
|
|
90
|
|
71
|
91
|
@LoginUser
|
72
|
92
|
@Get
|
73
|
93
|
@Path("/exists")
|