|
@@ -3,6 +3,7 @@ package cn.com.qmth.examcloud.task.service.consumer;
|
|
|
import org.slf4j.Logger;
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
|
|
|
+import cn.com.qmth.examcloud.commons.exception.StatusException;
|
|
|
import cn.com.qmth.examcloud.task.base.multithread.Consumer;
|
|
|
import cn.com.qmth.examcloud.task.dao.entity.ReportsComputeEntity;
|
|
|
import cn.com.qmth.examcloud.task.service.ReportsComputeService;
|
|
@@ -27,6 +28,10 @@ public class ReportsComputeConsumer extends Consumer<ReportsComputeEntity> {
|
|
|
} catch (ReportsComputeStopException e) {
|
|
|
// 计算终止
|
|
|
reportsComputeService.updateToStop(et);
|
|
|
+ } catch (StatusException e) {
|
|
|
+ // 计算出错
|
|
|
+ reportsComputeService.updateToFail(et, e.getDesc());
|
|
|
+ logger.error("***************************报表计算出错,projectId:" + et.getProjectId(), e);
|
|
|
} catch (Exception e) {
|
|
|
// 计算出错
|
|
|
reportsComputeService.updateToFail(et, "系统错误");
|