From 901aded0c3281c5f43e9f866127027b92b1b6075 Mon Sep 17 00:00:00 2001 From: zhaolongfei <2651195677@qq.com> Date: Fri, 26 Jul 2024 17:30:03 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9C=A8=E7=BA=BF=E7=AE=A1=E7=90=86=E8=B5=84?= =?UTF-8?q?=E6=BA=90=E5=AE=8C=E6=88=90=E6=83=85=E5=86=B5=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../xboe/school/study/service/impl/StudyServiceImpl.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/servers/boe-server-all/src/main/java/com/xboe/school/study/service/impl/StudyServiceImpl.java b/servers/boe-server-all/src/main/java/com/xboe/school/study/service/impl/StudyServiceImpl.java index 4e642137..4454ffe5 100644 --- a/servers/boe-server-all/src/main/java/com/xboe/school/study/service/impl/StudyServiceImpl.java +++ b/servers/boe-server-all/src/main/java/com/xboe/school/study/service/impl/StudyServiceImpl.java @@ -195,7 +195,9 @@ public class StudyServiceImpl implements IStudyService{ " 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+"'" + " )"; + log.info("资源完成情况未开始sql"+sql); List list = scDao.sqlFindList(sql); + log.info("资源完成情况未开始人数"+list); List item = new ArrayList<>(); for (Object[] objs : list) { String sql2 = "select id, course_id, content_name, aname from boe_study_course_item where `status` !=2 and `status` !=9 and course_id = '" + courseId + "' and content_id = '"+contentId +"'"; @@ -208,6 +210,7 @@ public class StudyServiceImpl implements IStudyService{ item.add(sc); } } + log.info("资源完成情况未开始人员"+item); PageList pageList = new PageList<>(item); return pageList; } @@ -223,7 +226,9 @@ public class StudyServiceImpl implements IStudyService{ " 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+"'" + " )) a group by a.id"; + log.info("资源完成情况全部sql"+sql2); List list = scDao.sqlFindList(sql2); + log.info("资源完成情况人数"+list); List item = new ArrayList<>(); for (Object[] objs : list) { StudyCourseItem sc = new StudyCourseItem(); @@ -232,6 +237,7 @@ public class StudyServiceImpl implements IStudyService{ sc.setAname(objs[3].toString()); item.add(sc); } + log.info("资源完成情况人员"+item); PageList pageList = new PageList<>(item); return pageList;