Commit 768f2554 by 陶光胜

报表中心

parent e70e3123
......@@ -82,6 +82,7 @@ public class DownloadReportApiServiceImpl implements DownloadReportApiService {
Object next = iterator.next();
long putTime = (long) map.get(next);
if((System.currentTimeMillis() - putTime) > 10*60*1000){
log.info("报告超时:{}", next);
//超过十分钟 如果报告还在生成中则设置为失败
TabDownloadReport report = downloadReportService.getById((Integer) next);
if(report != null && report.getStatus().equals(DownloadReportStatusEnum.BUILD.getCode())){
......@@ -257,5 +258,4 @@ public class DownloadReportApiServiceImpl implements DownloadReportApiService {
map.put(reportId, System.currentTimeMillis());
return ServiceResponse.success();
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment