|
|
@@ -81,9 +81,9 @@ public class TeacherStatisticsController {
|
|
|
public RT<PageOutput<TeacherStatisticsPageVo>> teacherDetails(@Valid TeacherDetailsDto dto){
|
|
|
DateTimeFormatter dtf = DateTimeFormatter.ofPattern("yyyy-MM-dd");
|
|
|
String today = LocalDate.now().format(dtf);
|
|
|
- if(!today.equals(dto.getDate())){
|
|
|
- Page<TeacherStatisticsPageVo> voIPage = attendanceRecordService.getPage(new Page<>(dto.getLimit(), dto.getSize()), dto);
|
|
|
- PageOutput<TeacherStatisticsPageVo> pageOutput = ConventPage.getPageOutput(voIPage, TeacherStatisticsPageVo.class);
|
|
|
+ Page<TeacherStatisticsPageVo> voIPage2 = attendanceRecordService.getPage(new Page<>(dto.getLimit(), dto.getSize()), dto);
|
|
|
+ if(!today.equals(dto.getDate()) && voIPage2.getRecords().isEmpty()){
|
|
|
+ PageOutput<TeacherStatisticsPageVo> pageOutput = ConventPage.getPageOutput(voIPage2, TeacherStatisticsPageVo.class);
|
|
|
return RT.ok(pageOutput);
|
|
|
}else{
|
|
|
MPJLambdaWrapper<User> queryUser = new MPJLambdaWrapper<>();
|