mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/per-boe/java-servers.git
synced 2025-12-09 02:46:50 +08:00
提交修改
This commit is contained in:
@@ -135,7 +135,7 @@ public class OutSideDataServiceImpl implements IOutSideDataService {
|
||||
if(roleCode.equals("learning-admin")){
|
||||
user.setAdminType(1);//默认管理员
|
||||
}else if(roleCode.equals("non-default-admin")) {
|
||||
user.setAdminType(1);//非默认管理员
|
||||
user.setAdminType(2);//非默认管理员
|
||||
}
|
||||
if(roleCode.equals("teacher")){
|
||||
user.setTeacher(true);//是老师
|
||||
|
||||
@@ -67,11 +67,11 @@ public class PortalConsoleApi extends ApiBaseController{
|
||||
return error("账号错误,无此账号");
|
||||
}
|
||||
|
||||
UserData userData = outsideDataService.getUserInfoByUserId(null);
|
||||
if(userData==null) {
|
||||
log.error("通过api获取用用户信息错误【"+getCurrent().getAccountId()+"】对应的用户");
|
||||
return error("未能获取当前用户信息");
|
||||
}
|
||||
// UserData userData = outsideDataService.getUserInfoByUserId(null);
|
||||
// if(userData==null) {
|
||||
// log.error("通过api获取用用户信息错误【"+getCurrent().getAccountId()+"】对应的用户");
|
||||
// return error("未能获取当前用户信息");
|
||||
// }
|
||||
|
||||
User user = userService.get(getCurrent().getAccountId());
|
||||
Organization org = null;
|
||||
@@ -123,7 +123,8 @@ public class PortalConsoleApi extends ApiBaseController{
|
||||
|
||||
map.put("aid",account.getId());
|
||||
map.put("sysId",user.getSysId());
|
||||
map.put("adminType",userData.getAdminType());//管理员类型,1表默认管理员,2表非默认管理员,0表不是管理员
|
||||
//map.put("adminType",userData.getAdminType());//管理员类型,1表默认管理员,2表非默认管理员,0表不是管理员
|
||||
map.put("adminType",0);
|
||||
map.put("companyId",user.getCompanyId());
|
||||
map.put("name",user.getName());
|
||||
map.put("sex",user.getGender());
|
||||
|
||||
Reference in New Issue
Block a user