|
@@ -547,10 +547,10 @@ public class SysUserServiceImpl extends ServiceImpl<SysUserMapper, SysUser> impl
|
|
|
if (Objects.isNull(basicCourse)) {
|
|
|
throw ExceptionResultEnum.ERROR.exception("课程数据为空");
|
|
|
}
|
|
|
- if (Objects.isNull(basicCourse.getOrgId())) {
|
|
|
+ if (Objects.isNull(basicCourse.getTeachingRoomId())) {
|
|
|
throw ExceptionResultEnum.ERROR.exception("课程机构为空");
|
|
|
}
|
|
|
- List<SysOrg> sysOrgList = sysOrgService.findByConnectByRootOrgId(basicCourse.getOrgId());
|
|
|
+ List<SysOrg> sysOrgList = sysOrgService.findByConnectByRootOrgId(basicCourse.getTeachingRoomId());
|
|
|
Set<Long> orgIds = sysOrgList.stream().map(s -> s.getId()).collect(Collectors.toSet());
|
|
|
return sysUserService.filterFlowPrivilege(schoolId, orgIds, true);
|
|
|
}
|