|
@@ -16,6 +16,7 @@ import com.ym.mec.education.resp.HomeWrokDetailResp;
|
|
|
import com.ym.mec.education.resp.HomeWrokResp;
|
|
|
import com.ym.mec.education.resp.HomeworkReplyResp;
|
|
|
import com.ym.mec.education.service.*;
|
|
|
+import com.ym.mec.education.utils.DateUtil;
|
|
|
import org.springframework.beans.BeanUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
@@ -162,6 +163,11 @@ public class StudentCourseHomeworkServiceImpl extends ServiceImpl<StudentCourseH
|
|
|
PageResponse response = new PageResponse();
|
|
|
IPage ipage = new Page(req.getPageNo() == null ? 1: req.getPageNo(),req.getPageSize() == null ? 10:req.getPageSize());
|
|
|
QueryWrapper<CourseHomework> queryWrapper = new QueryWrapper<>();
|
|
|
+ if(req != null && req.getWorkDate() != null){
|
|
|
+ String strDateStr = req.getWorkDate() + " 00:00:00";
|
|
|
+ String endDateStr = req.getWorkDate() + " 23:59:59";
|
|
|
+ queryWrapper.between("create_time_",strDateStr,endDateStr);
|
|
|
+ }
|
|
|
IPage<CourseHomework> courseScheduleIPage = courseHomeworkService.page(ipage,queryWrapper);
|
|
|
|
|
|
List<CourseHomework> courseSchedules = courseScheduleIPage.getRecords();
|