Bläddra i källkod

教师课时统计调整

dzx 3 dagar sedan
förälder
incheckning
d41f2eb15c

+ 6 - 1
src/main/java/com/xjrsoft/module/classtime/controller/ClassTimeStatisticsController.java

@@ -253,7 +253,12 @@ public class ClassTimeStatisticsController {
         queryWrapper
                 .select(ClassTimeStatisticsRecord::getId)
                 .selectAs(ClassTimeStatisticsRecord::getAllClassTime, ClassTimeStatistics::getAllClassTime)
-                .select(ClassTimeStatistics.class,x -> VoToColumnUtil.fieldsToColumns(ClassTimeStatisticsPageVo.class).contains(x.getProperty()))
+                .select(ClassTimeStatistics::getYear)
+                .select(ClassTimeStatistics::getMonth)
+                .select(ClassTimeStatistics::getStartDate)
+                .select(ClassTimeStatistics::getEndDate)
+                .select(ClassTimeStatistics::getModifyDate)
+                .select(ClassTimeStatistics::getStatus)
                 .innerJoin(ClassTimeStatisticsRecord.class, ClassTimeStatisticsRecord::getClassTimeStatisticsId, ClassTimeStatistics::getId)
                 .eq(dto.getYear() != null, ClassTimeStatistics::getYear, dto.getYear())
                 .eq(dto.getMonth() != null, ClassTimeStatistics::getMonth, dto.getMonth())