|
|
@@ -17,6 +17,7 @@ import com.template.model.vo.ClassListVo;
|
|
|
import com.template.model.vo.ClassScheduleExportVo;
|
|
|
import com.template.model.vo.ScheduleVo;
|
|
|
import com.template.services.ClassScheduleService;
|
|
|
+import com.template.services.OrganizationService;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.util.StringUtils;
|
|
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
|
@@ -104,7 +105,7 @@ public class ClassScheduleController implements ClassScheduleAPI {
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public void downloadSchedule(String stateTime, String endTime, String teacherName, HttpServletResponse response) {
|
|
|
+ public void downloadSchedule(String stateTime, String endTime, String teacherName,String jsgh, HttpServletResponse response) {
|
|
|
DateTimeFormatter dateTimeFormatter2 = DateTimeFormatter.ofPattern("yyyy-MM-dd");
|
|
|
|
|
|
if (ObjectUtils.isEmpty(stateTime) && ObjectUtils.isEmpty(endTime)) {
|
|
|
@@ -122,14 +123,7 @@ public class ClassScheduleController implements ClassScheduleAPI {
|
|
|
}
|
|
|
|
|
|
|
|
|
- LocalDate date = LocalDate.parse(stateTime, dateTimeFormatter2);
|
|
|
- LocalDate end = LocalDate.parse(endTime, dateTimeFormatter2);
|
|
|
- QueryWrapper<ClassSchedule> qw = new QueryWrapper<>();
|
|
|
- qw.between("date_time",stateTime,endTime);
|
|
|
- if(teacherName!=null){
|
|
|
- qw.like("jsxm",teacherName);
|
|
|
- }
|
|
|
- List<ClassSchedule> classSchedulesList= classScheduleService.list(qw);
|
|
|
+ List<ClassSchedule> classSchedulesList= classScheduleService.listByTime(stateTime,endTime,teacherName,jsgh);
|
|
|
List<ClassScheduleExportVo> exportVoList=new ArrayList<>();
|
|
|
for(ClassSchedule classSchedule:classSchedulesList){
|
|
|
ClassScheduleExportVo classScheduleExportVo=JSON.parseObject(JSON.toJSONString(classSchedule), ClassScheduleExportVo.class);
|