@ -85,6 +85,9 @@ public class CourseLabelController{
if (coreUser.isUniAdmin()) {
param.setSeeSelf(true);
}
if (!coreUser.isAdmin()){
param.setOrgIdPlural("1,"+coreUser.getOrgId());
List<CourseLabel>list = courseLabelService.getValuesByQueryNotWithPermission(param);
return JsonResult.success(list);
@ -131,6 +131,7 @@ public class TeacherOpenCourseNoticeController{
if (coreUser.isStudent()) {
Student student = getStudent();
condition.setSchoolClassIds(student.getClassId().toString());
condition.setOrgId(coreUser.getOrgId());
teacherOpenCourseNoticeService.queryByConditionQuery(page, coreUser);
return JsonResult.success(page);
@ -103,6 +103,6 @@ getValuesByQueryNotWithPermission
@if(!isEmpty(seeSelf) && seeSelf && !isEmpty(userId)){
and (t.add_type = 'ADMIN_ADD' or t.user_id = #userId#)
@}
@if(!isEmpty(seeSelf)){
@if(!isEmpty(orgIdPlural)){
and FIND_IN_SET(t.org_id,#orgIdPlural#)