package com.product.server.report.quartz;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.stereotype.Component;
|
|
import com.product.core.controller.support.AbstractBaseController;
|
import com.product.core.exception.BaseException;
|
import com.product.server.report.config.SystemCode;
|
import com.product.server.report.service.idel.IChartPropertyConfigService;
|
import com.product.server.report.service.idel.IViewDataConvertService;
|
|
/**
|
* 报表数据处理定时任务接口
|
*
|
*/
|
@Component
|
public class ReportDataProcessQuartz extends AbstractBaseController {
|
|
@Autowired
|
ViewDataConvertService viewDataConvertService;
|
public void dataProcess() throws BaseException {
|
try {
|
IViewDataConvertService service=(IViewDataConvertService)getProxyInstance(viewDataConvertService);
|
service.reportDataProcessTask();
|
}
|
catch(BaseException e) {
|
throw e;
|
}
|
catch(Exception e) {
|
throw new BaseException(SystemCode.SYTEM_REPORT_DATA_PROCESS_ERROR.getValue(),SystemCode.SYTEM_REPORT_DATA_PROCESS_ERROR.getText()+":"+e.getMessage());
|
}
|
}
|
}
|