mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/per-boe/java-servers.git
synced 2025-12-06 17:36:47 +08:00
在线管理资源完成情况修改
This commit is contained in:
@@ -186,10 +186,12 @@ public class StudyServiceImpl implements IStudyService{
|
|||||||
}else if(status==2){
|
}else if(status==2){
|
||||||
query.addFilter(FieldFilters.eq("status",9));
|
query.addFilter(FieldFilters.eq("status",9));
|
||||||
}else if (status == 1) {
|
}else if (status == 1) {
|
||||||
String sql = "select bsc.* from boe_study_course bsc where bsc.course_id = '"+courseId+"' and bsc.id = " +
|
String sql = "select bsc.id,bsc.course_id,bsc.course_name,bsc.aname from boe_study_course bsc " +
|
||||||
" (select bsc.id from boe_study_course bsc " +
|
" where bsc.course_id = '"+courseId+"' and bsc.id != (" +
|
||||||
|
" 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+"'" +
|
||||||
|
" )";
|
||||||
List<Object[]> list = scDao.sqlFindList(sql);
|
List<Object[]> list = scDao.sqlFindList(sql);
|
||||||
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