mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/per-boe/java-servers.git
synced 2025-12-07 01:46:47 +08:00
新在线课逻辑删除库名
This commit is contained in:
@@ -481,7 +481,7 @@ public class CourseServiceImpl implements ICourseService {
|
||||
String sql = "SELECT DISTINCT\n" +
|
||||
"rt.course_id\n" +
|
||||
"FROM\n" +
|
||||
"boe_new.student s INNER JOIN boe_new.router_task rt on s.pid=rt.router_id inner join boe_base.boe_course c on c.id=rt.course_id\n" +
|
||||
"boe_new.student s INNER JOIN boe_new.router_task rt on s.pid=rt.router_id inner join boe_course c on c.id=rt.course_id\n" +
|
||||
"\n" +
|
||||
"WHERE\n" +
|
||||
"\n" +
|
||||
@@ -504,7 +504,7 @@ public class CourseServiceImpl implements ICourseService {
|
||||
String sql = "SELECT DISTINCT\n" +
|
||||
"pt.course_id\n" +
|
||||
"FROM\n" +
|
||||
"boe_new.student s INNER JOIN boe_new.project_task pt on s.pid=pt.project_id inner join boe_base.boe_course c on c.id=pt.course_id\n" +
|
||||
"boe_new.student s INNER JOIN boe_new.project_task pt on s.pid=pt.project_id inner join boe_course c on c.id=pt.course_id\n" +
|
||||
"\n" +
|
||||
"WHERE\n" +
|
||||
"\n" +
|
||||
@@ -527,8 +527,8 @@ public class CourseServiceImpl implements ICourseService {
|
||||
String sql = "SELECT DISTINCT\n" +
|
||||
"\tcc.course_id \n" +
|
||||
"FROM\n" +
|
||||
"\t`boe_base.boe_course_crowd` cc\n" +
|
||||
"\tINNER JOIN boe_base.boe_course c ON cc.course_id = c.id \n" +
|
||||
"\t`boe_course_crowd` cc\n" +
|
||||
"\tINNER JOIN boe_course c ON cc.course_id = c.id \n" +
|
||||
"WHERE\n" +
|
||||
"\tcc.group_id IN (?1) \n" +
|
||||
"\tAND c.deleted =0 ";
|
||||
@@ -545,9 +545,9 @@ public class CourseServiceImpl implements ICourseService {
|
||||
String sql = "SELECT\n" +
|
||||
"\tc.id \n" +
|
||||
"FROM\n" +
|
||||
"\tboe_base.boe_course c \n" +
|
||||
"\tboe_course c \n" +
|
||||
"WHERE\n" +
|
||||
"\t NOT EXISTS ( SELECT 1 FROM boe_base.boe_course_crowd cc where cc.course_id = c.id ) \n" +
|
||||
"\t NOT EXISTS ( SELECT 1 FROM boe_course_crowd cc where cc.course_id = c.id ) \n" +
|
||||
"\tAND c.deleted =0 \n";
|
||||
List<Course> list = courseDao.sqlFindList(sql);
|
||||
List<String> list1 = new ArrayList<>();
|
||||
@@ -563,7 +563,7 @@ public class CourseServiceImpl implements ICourseService {
|
||||
"FROM\n" +
|
||||
"\tboe_new.student s\n" +
|
||||
"\tINNER JOIN boe_new.grow_task gt ON s.pid = gt.grow_id\n" +
|
||||
"\tINNER JOIN boe_base.boe_course c ON gt.course_id = c.id \n" +
|
||||
"\tINNER JOIN boe_course c ON gt.course_id = c.id \n" +
|
||||
"WHERE\n" +
|
||||
"\ts.type = 14 \n" +
|
||||
"\tAND gt.type = 1 \n" +
|
||||
@@ -583,8 +583,8 @@ public class CourseServiceImpl implements ICourseService {
|
||||
String sql = "SELECT DISTINCT\n" +
|
||||
"\tsc.course_id \n" +
|
||||
"FROM\n" +
|
||||
"\tboe_base.boe_study_course sc\n" +
|
||||
"\tINNER JOIN boe_base.boe_course c ON sc.course_id = c.id \n" +
|
||||
"\tboe_study_course sc\n" +
|
||||
"\tINNER JOIN boe_course c ON sc.course_id = c.id \n" +
|
||||
"WHERE\n" +
|
||||
"\tsc.aid = ?1 \n" +
|
||||
"\tAND c.deleted =0";
|
||||
|
||||
Reference in New Issue
Block a user