|
|
@@ -82,7 +82,7 @@ public class TeacherStatisticsController {
|
|
|
DateTimeFormatter dtf = DateTimeFormatter.ofPattern("yyyy-MM-dd");
|
|
|
String today = LocalDate.now().format(dtf);
|
|
|
Page<TeacherStatisticsPageVo> voIPage2 = attendanceRecordService.getPage(new Page<>(dto.getLimit(), dto.getSize()), dto);
|
|
|
- if(!today.equals(dto.getDate()) && voIPage2.getRecords().isEmpty()){
|
|
|
+ if(!today.equals(dto.getDate()) && !voIPage2.getRecords().isEmpty()){
|
|
|
PageOutput<TeacherStatisticsPageVo> pageOutput = ConventPage.getPageOutput(voIPage2, TeacherStatisticsPageVo.class);
|
|
|
return RT.ok(pageOutput);
|
|
|
}else{
|
|
|
@@ -190,6 +190,8 @@ public class TeacherStatisticsController {
|
|
|
outInDto.setEndTime(endTime);
|
|
|
outInDto.setStatus(OutInStatusEnum.enter.getCode());
|
|
|
outInDto.setUserId(record.getUserId());
|
|
|
+ outInDto.setTimePeriod(dto.getTimePeriod());
|
|
|
+ outInDto.setAmEndTime(amEndTime);
|
|
|
List<TeacherOutInRecord> outInRecords = teacherOutInRecordService.getListByParam(outInDto);
|
|
|
//查询该教师是否通过车辆进入
|
|
|
List<CarOutInRecord> list = carOutInRecordService.list(
|