Browse Source

教师课时统计调整

dzx 9 hours ago
parent
commit
4c771cf728

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

@@ -264,7 +264,7 @@ public class ClassTimeStatisticsController {
                 .eq(dto.getMonth() != null, ClassTimeStatistics::getMonth, dto.getMonth())
                 .eq(ClassTimeStatistics::getCategory, 1)
                 .eq(ClassTimeStatisticsRecord::getUserId, StpUtil.getLoginIdAsLong())
-                .eq(ClassTimeStatistics::getStatus, 1)
+                .eq(ClassTimeStatistics::getStatus, 3)
                 .orderByDesc(ClassTimeStatistics::getId)
         ;
         IPage<ClassTimeStatistics> page = classTimeStatisticsService.page(ConventPage.getPage(dto), queryWrapper);

+ 1 - 5
src/main/java/com/xjrsoft/module/classtime/service/impl/ClassTimeStatisticsServiceImpl.java

@@ -132,11 +132,7 @@ public class ClassTimeStatisticsServiceImpl extends MPJBaseServiceImpl<ClassTime
         classTimeStatistics.setWeightSetJson(list.get(0).getJsonContent());
 
         this.save(classTimeStatistics);
-
-        CompletableFuture.runAsync(() -> {
-            refreshCourseRecord(classTimeStatistics);
-        });
-
+        refreshCourseRecord(classTimeStatistics);
         return true;
     }