mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/per-boe/java-servers.git
synced 2025-12-11 03:46:50 +08:00
新在线课逻辑优化2
This commit is contained in:
@@ -125,11 +125,11 @@ public class CourseManageApi extends ApiBaseController{
|
|||||||
|
|
||||||
List<String> orgIds = userOrgIds.getIds();
|
List<String> orgIds = userOrgIds.getIds();
|
||||||
|
|
||||||
// if(userOrgIds.getPermissions().containsKey(UserOrgIds.IsSystemAdminKey)){
|
if(userOrgIds.getPermissions().containsKey(UserOrgIds.IsSystemAdminKey)){
|
||||||
// dto.setIsSystemAdmin(userOrgIds.getPermissions().get(UserOrgIds.IsSystemAdminKey));
|
dto.setIsSystemAdmin(userOrgIds.getPermissions().get(UserOrgIds.IsSystemAdminKey));
|
||||||
// }else {
|
}else {
|
||||||
// dto.setIsSystemAdmin(false);
|
dto.setIsSystemAdmin(false);
|
||||||
// }
|
}
|
||||||
String ids="";
|
String ids="";
|
||||||
if(userOrgIds.getIds()!=null && !userOrgIds.getIds().isEmpty())
|
if(userOrgIds.getIds()!=null && !userOrgIds.getIds().isEmpty())
|
||||||
{
|
{
|
||||||
@@ -137,11 +137,7 @@ public class CourseManageApi extends ApiBaseController{
|
|||||||
}
|
}
|
||||||
//log.info("获取到的用户的组织机构权限ids",ids);
|
//log.info("获取到的用户的组织机构权限ids",ids);
|
||||||
String aid=getCurrent().getAccountId();
|
String aid=getCurrent().getAccountId();
|
||||||
if(Objects.equals(aid, "965342027497607168")||Objects.equals(aid, "1739115608332701697")){
|
// String aid="1706272694871445506";
|
||||||
dto.setIsSystemAdmin(true);
|
|
||||||
}else {
|
|
||||||
dto.setIsSystemAdmin(false);
|
|
||||||
}
|
|
||||||
//如果前端查询当前人的,这里去掉
|
//如果前端查询当前人的,这里去掉
|
||||||
if(StringUtils.isNotBlank(dto.getAid())) {
|
if(StringUtils.isNotBlank(dto.getAid())) {
|
||||||
dto.setAid(null);
|
dto.setAid(null);
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user