|
|
|
|
@ -85,6 +85,9 @@ public class LoginController {
|
|
|
|
|
map.put("roleId", String.valueOf(user.getRole()));
|
|
|
|
|
map.put("schoolId", user.getSchoolId());
|
|
|
|
|
map.put("classId", user.getSchoolClassId());
|
|
|
|
|
if(user.getRole()==4){
|
|
|
|
|
map.put("className",schoolClassMapper.selectByPrimaryKey(user.getSchoolClassId()).getClassName());
|
|
|
|
|
}
|
|
|
|
|
map.put("userId", user.getUserId());
|
|
|
|
|
map.put("token", token);
|
|
|
|
|
return new ResultEntity(HttpStatus.OK, map);
|
|
|
|
|
@ -110,4 +113,5 @@ public class LoginController {
|
|
|
|
|
}
|
|
|
|
|
return map;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|