ソースを参照

教师课时统计调整

dzx 14 時間 前
コミット
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;
     }