mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/per-boe/java-servers.git
synced 2025-12-09 19:06:49 +08:00
在线管理资源完成情况修改
This commit is contained in:
@@ -212,7 +212,7 @@ public class StudyServiceImpl implements IStudyService{
|
|||||||
return pageList;
|
return pageList;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
String sql2 = "select bsc.id,bsc.course_id,bsc.course_name,bsc.aname,item.progress,item.status from boe_study_course bsc left join " +
|
String sql2 = "select * from (select bsc.id,bsc.course_id,bsc.course_name,bsc.aname,item.progress,item.status from boe_study_course bsc left join " +
|
||||||
"boe_study_course_item item on item.course_id = bsc.course_id and item.study_id = bsc.id " +
|
"boe_study_course_item item on item.course_id = bsc.course_id and item.study_id = bsc.id " +
|
||||||
"where bsc.`status` in (2,9) and bsc.course_id = '"+ courseId+"' " +
|
"where bsc.`status` in (2,9) and bsc.course_id = '"+ courseId+"' " +
|
||||||
"UNION ALL " +
|
"UNION ALL " +
|
||||||
@@ -222,7 +222,7 @@ public class StudyServiceImpl implements IStudyService{
|
|||||||
" select bsc.id from boe_study_course bsc " +
|
" select bsc.id from boe_study_course bsc " +
|
||||||
" left join boe_study_course_item item on item.course_id = bsc.course_id and item.study_id = bsc.id " +
|
" left join boe_study_course_item item on item.course_id = bsc.course_id and item.study_id = bsc.id " +
|
||||||
" where bsc.course_id = '" + courseId + "' and item.content_id = '"+ contentId+"'" +
|
" where bsc.course_id = '" + courseId + "' and item.content_id = '"+ contentId+"'" +
|
||||||
" )";
|
" )) a group by a.id";
|
||||||
List<Object[]> list = scDao.sqlFindList(sql2);
|
List<Object[]> list = scDao.sqlFindList(sql2);
|
||||||
List<StudyCourseItem> item = new ArrayList<>();
|
List<StudyCourseItem> item = new ArrayList<>();
|
||||||
for (Object[] objs : list) {
|
for (Object[] objs : list) {
|
||||||
|
|||||||
Reference in New Issue
Block a user