Commit 94514f69 authored by neo's avatar neo

[Bugfix] set error status

parent 0021438b
...@@ -585,7 +585,7 @@ public class ReportGeneratorImpl { ...@@ -585,7 +585,7 @@ public class ReportGeneratorImpl {
return workbook; return workbook;
} catch (Exception e) { } catch (Exception e) {
logger.error("createWorkBookByPeriodTemplate error.", e); logger.error("createWorkBookByPeriodTemplate error.", e);
periodJob.setStatus(WrapPeriodJobDto.STATUS_ERROR); setStatus(periodJob, STATUS_ERROR);
periodJob.setErrorMsg("error for gen excel , redo it later!!1"); periodJob.setErrorMsg("error for gen excel , redo it later!!1");
periodJobMapper.updateByPrimaryKey(periodJob); periodJobMapper.updateByPrimaryKey(periodJob);
throw Exceptions.SERVER_ERROR_EXCEPTION; throw Exceptions.SERVER_ERROR_EXCEPTION;
......
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