This commit is contained in:
daihh
2022-11-01 00:47:33 +08:00
parent fd1fb20c68
commit 91f78cb59e

View File

@@ -397,9 +397,9 @@ public class StudyCourseServiceImpl implements IStudyCourseService{
StringBuilder str=new StringBuilder();
if(!studyCourseQuery.getIds().isEmpty()){
for (String id:studyCourseQuery.getAids()){
str.append("'");
//str.append("'");
str.append(id);
str.append("'");
//str.append("'");
str.append(",");
}
@@ -411,9 +411,9 @@ public class StudyCourseServiceImpl implements IStudyCourseService{
StringBuilder str1=new StringBuilder();
if(!studyCourseQuery.getAids().isEmpty()){
for (String id:studyCourseQuery.getIds()){
str1.append("'");
//str1.append("'");
str1.append(id);
str1.append("'");
//str1.append("'");
str1.append(",");
}
@@ -422,8 +422,6 @@ public class StudyCourseServiceImpl implements IStudyCourseService{
str1.deleteCharAt(str1.length()-1);
}
String sql="select sc.id,sc.course_id,sc.course_type,sc.course_name,sc.aid,sc.aname,sc.source,sc.add_time,sc.start_time,sc.finish_time,sc.progress," +
"sc.total_duration,sc.last_score,sc.status,sc.status_time,sc.last_time," +
"c.score,c.cover_img from boe_course as c left join boe_study_course as sc on sc.course_id=c.id where " +