新在线课逻辑优化2

This commit is contained in:
xiaozhequ
2024-07-03 16:30:19 +08:00
parent f2be349301
commit 7eb578127d
2 changed files with 1720 additions and 1646 deletions

View File

@@ -125,11 +125,11 @@ public class CourseManageApi extends ApiBaseController{
List<String> orgIds = userOrgIds.getIds();
// if(userOrgIds.getPermissions().containsKey(UserOrgIds.IsSystemAdminKey)){
// dto.setIsSystemAdmin(userOrgIds.getPermissions().get(UserOrgIds.IsSystemAdminKey));
// }else {
// dto.setIsSystemAdmin(false);
// }
if(userOrgIds.getPermissions().containsKey(UserOrgIds.IsSystemAdminKey)){
dto.setIsSystemAdmin(userOrgIds.getPermissions().get(UserOrgIds.IsSystemAdminKey));
}else {
dto.setIsSystemAdmin(false);
}
String ids="";
if(userOrgIds.getIds()!=null && !userOrgIds.getIds().isEmpty())
{
@@ -137,11 +137,7 @@ public class CourseManageApi extends ApiBaseController{
}
//log.info("获取到的用户的组织机构权限ids",ids);
String aid=getCurrent().getAccountId();
if(Objects.equals(aid, "965342027497607168")||Objects.equals(aid, "1739115608332701697")){
dto.setIsSystemAdmin(true);
}else {
dto.setIsSystemAdmin(false);
}
// String aid="1706272694871445506";
//如果前端查询当前人的,这里去掉
if(StringUtils.isNotBlank(dto.getAid())) {
dto.setAid(null);