在线可权限bug

This commit is contained in:
xiaozhequ
2024-06-24 16:00:23 +08:00
parent f950788e08
commit 625c41f466

View File

@@ -370,7 +370,7 @@ public class CourseServiceImpl implements ICourseService {
"AND s.type =2 \n" +
"AND s.student_id = ?1\n" +
"and c.org_id not in(?2)\n" +
"and c.sys_create_aid !=?3";
"and (c.sys_create_aid !=?3 or c.sys_create_aid is null)";
list = courseTeacherDao.sqlFindList(sql, dto.getOrgAid(),strings,dto.getOrgAid());
}
else {
@@ -388,7 +388,7 @@ public class CourseServiceImpl implements ICourseService {
"AND s.type =2 \n" +
"AND s.student_id = ?1\n" +
"and c.org_id !=?2\n" +
"and c.sys_create_aid !=?3";
"and (c.sys_create_aid !=?3 or c.sys_create_aid is null)";
list = courseTeacherDao.sqlFindList(sql, dto.getOrgAid(), dto.getOrgIds(),dto.getOrgAid());
}
}else {
@@ -405,7 +405,7 @@ public class CourseServiceImpl implements ICourseService {
"and c.deleted=0\n" +
"AND s.type =2 \n" +
"AND s.student_id = ?1\n" +
"and c.sys_create_aid !=?2";
"and (c.sys_create_aid !=?2 or c.sys_create_aid is null)";
list = courseTeacherDao.sqlFindList(sql, dto.getOrgAid(),dto.getOrgAid());
}
List<String>list1=new ArrayList<>();
@@ -435,7 +435,7 @@ public class CourseServiceImpl implements ICourseService {
"AND s.type =1 \n" +
"AND s.student_id = ?1\n" +
"and c.org_id not in(?2)\n" +
"and c.sys_create_aid !=?3";
"and (c.sys_create_aid !=?3 or c.sys_create_aid is null)";
list = courseTeacherDao.sqlFindList(sql, dto.getOrgAid(),strings,dto.getOrgAid());
}
else {
@@ -453,7 +453,7 @@ public class CourseServiceImpl implements ICourseService {
"AND s.type =1 \n" +
"AND s.student_id = ?1\n" +
"and c.org_id !=?2\n" +
"and c.sys_create_aid !=?3";
"and (c.sys_create_aid !=?3 or c.sys_create_aid is null)";
list = courseTeacherDao.sqlFindList(sql, dto.getOrgAid(), dto.getOrgIds(),dto.getOrgAid());
}
}else {
@@ -470,7 +470,7 @@ public class CourseServiceImpl implements ICourseService {
"and c.deleted=0\n" +
"AND s.type =1 \n" +
"AND s.student_id = ?1\n" +
"and c.sys_create_aid !=?2";
"and (c.sys_create_aid !=?2 or c.sys_create_aid is null)";
list = courseTeacherDao.sqlFindList(sql, dto.getOrgAid(),dto.getOrgAid());
}
List<String>list1=new ArrayList<>();