deason 6 年之前
父节点
当前提交
2dd8f439aa

+ 3 - 1
examcloud-core-print-service/src/main/java/cn/com/qmth/examcloud/core/print/service/impl/CourseStatisticServiceImpl.java

@@ -150,8 +150,10 @@ public class CourseStatisticServiceImpl implements CourseStatisticService {
             throw e;//状态异常则直接抛出
         } catch (Exception e) {
             log.error(e.getMessage(), e);
+        } finally {
+            RefreshInfo.coursesRefreshing = false;
+            log.debug("refreshCourseStatistic finished...");
         }
-        RefreshInfo.coursesRefreshing = false;
     }
 
     @Override

+ 4 - 1
examcloud-core-print-service/src/main/java/cn/com/qmth/examcloud/core/print/service/impl/PrintingProjectStatisticServiceImpl.java

@@ -88,6 +88,7 @@ public class PrintingProjectStatisticServiceImpl implements PrintingProjectStati
         //目前限定仅一个刷新任务可执行
         RefreshInfo.projectRefreshing = true;
         try {
+            Check.isTrue(true, "AAA!");
             //刷新课程统计
             courseStatisticService.refreshCourseStatistic(new CourseStatisticRefreshReq(orgId, examId));
             //执行项目统计
@@ -96,8 +97,10 @@ public class PrintingProjectStatisticServiceImpl implements PrintingProjectStati
             throw e;//状态异常则直接抛出
         } catch (Exception e) {
             log.error(e.getMessage(), e);
+        } finally {
+            RefreshInfo.projectRefreshing = false;
+            log.debug("refreshPrintingProjectStatistic finished...");
         }
-        RefreshInfo.projectRefreshing = false;
     }
 
     @Override