|
@@ -6,6 +6,7 @@ import com.ym.mec.biz.dal.dao.*;
|
|
import com.ym.mec.biz.dal.dto.*;
|
|
import com.ym.mec.biz.dal.dto.*;
|
|
import com.ym.mec.biz.dal.entity.*;
|
|
import com.ym.mec.biz.dal.entity.*;
|
|
import com.ym.mec.biz.dal.enums.*;
|
|
import com.ym.mec.biz.dal.enums.*;
|
|
|
|
+import com.ym.mec.biz.dal.page.GroupCourseScheduleQueryInfo;
|
|
import com.ym.mec.biz.service.*;
|
|
import com.ym.mec.biz.service.*;
|
|
import com.ym.mec.common.constant.CommonConstants;
|
|
import com.ym.mec.common.constant.CommonConstants;
|
|
import com.ym.mec.common.controller.BaseController;
|
|
import com.ym.mec.common.controller.BaseController;
|
|
@@ -15,7 +16,6 @@ import com.ym.mec.common.entity.ImGroupMember;
|
|
import com.ym.mec.common.entity.ImGroupModel;
|
|
import com.ym.mec.common.entity.ImGroupModel;
|
|
import com.ym.mec.common.exception.BizException;
|
|
import com.ym.mec.common.exception.BizException;
|
|
import com.ym.mec.common.page.PageInfo;
|
|
import com.ym.mec.common.page.PageInfo;
|
|
-import com.ym.mec.common.page.QueryInfo;
|
|
|
|
import com.ym.mec.common.service.IdGeneratorService;
|
|
import com.ym.mec.common.service.IdGeneratorService;
|
|
import com.ym.mec.common.service.impl.BaseServiceImpl;
|
|
import com.ym.mec.common.service.impl.BaseServiceImpl;
|
|
import com.ym.mec.im.ImFeignService;
|
|
import com.ym.mec.im.ImFeignService;
|
|
@@ -221,7 +221,7 @@ public class CoursesGroupServiceImpl extends BaseServiceImpl<Long, CoursesGroup>
|
|
}
|
|
}
|
|
|
|
|
|
@Override
|
|
@Override
|
|
- public PageInfo findTeacherCourseGroups(Integer teacherId, QueryInfo queryInfo) {
|
|
|
|
|
|
+ public PageInfo findTeacherCourseGroups(Integer teacherId, GroupCourseScheduleQueryInfo queryInfo) {
|
|
if(Objects.isNull(teacherId)){
|
|
if(Objects.isNull(teacherId)){
|
|
throw new BizException("请指定老师");
|
|
throw new BizException("请指定老师");
|
|
}
|
|
}
|
|
@@ -261,11 +261,14 @@ public class CoursesGroupServiceImpl extends BaseServiceImpl<Long, CoursesGroup>
|
|
groupCard.setName(teacherCourseGroup.getName());
|
|
groupCard.setName(teacherCourseGroup.getName());
|
|
groupCard.setSingleClassMinutes(teacherCourseGroup.getSingleClassMinutes());
|
|
groupCard.setSingleClassMinutes(teacherCourseGroup.getSingleClassMinutes());
|
|
groupCard.setSubjectId(teacherCourseGroup.getSubjectId());
|
|
groupCard.setSubjectId(teacherCourseGroup.getSubjectId());
|
|
|
|
+ groupCard.setGroupStatus(teacherCourseGroup.getStatus());
|
|
groupCard.setSubjectName(idSubjectMap.get(teacherCourseGroup.getSubjectId()).getName());
|
|
groupCard.setSubjectName(idSubjectMap.get(teacherCourseGroup.getSubjectId()).getName());
|
|
GroupCourseTimesDto groupCourseTimesInfo = groupCourseTimesInfoMap.get(String.valueOf(teacherCourseGroup.getId()));
|
|
GroupCourseTimesDto groupCourseTimesInfo = groupCourseTimesInfoMap.get(String.valueOf(teacherCourseGroup.getId()));
|
|
GroupValidDateDto groupValidDate = groupValidateMap.get(String.valueOf(teacherCourseGroup.getId()));
|
|
GroupValidDateDto groupValidDate = groupValidateMap.get(String.valueOf(teacherCourseGroup.getId()));
|
|
- groupCard.setCoursesStartDate(groupValidDate.getStartDate());
|
|
|
|
- groupCard.setCoursesEndDate(groupValidDate.getEndDate());
|
|
|
|
|
|
+ if(Objects.nonNull(groupValidDate)){
|
|
|
|
+ groupCard.setCoursesStartDate(groupValidDate.getStartDate());
|
|
|
|
+ groupCard.setCoursesEndDate(groupValidDate.getEndDate());
|
|
|
|
+ }
|
|
groupCard.setClassGroupId(groupCourseTimesInfo.getClassGroupId());
|
|
groupCard.setClassGroupId(groupCourseTimesInfo.getClassGroupId());
|
|
groupCard.setTotalCourseTimes(groupCourseTimesInfo.getTotalCourseTimes());
|
|
groupCard.setTotalCourseTimes(groupCourseTimesInfo.getTotalCourseTimes());
|
|
groupCard.setSurplusClassTimes(groupCourseTimesInfo.getSurplusClassTimes());
|
|
groupCard.setSurplusClassTimes(groupCourseTimesInfo.getSurplusClassTimes());
|