|
@@ -131,6 +131,14 @@ public class ReportTableServiceImpl implements ReportTableService {
|
|
|
if (reportTableDao.updateTableTemplate(tableTemplate) <= 0) {
|
|
|
return Result.no(ResultEnum.SERVER_ERROR.getRespCode(), "修改报表模板失败");
|
|
|
}
|
|
|
+ if (Blank.isNotEmpty(reportTable)) {
|
|
|
+ Integer runState = reportTable.getRunState();
|
|
|
+ if (Blank.isNotEmpty(runState)) {
|
|
|
+ if (runState != ConstantStr.STOP_IT) {
|
|
|
+ throw new CustomException(ResultEnum.REQUEST_WRONGPARAMS.getRespCode(), "报表处于运行中,报表模板不允许被修改,请先停止运行报表");
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
if (templateType.equals(ConstantStr.MANUAL_REPORT)) {
|
|
|
reportTableTask.updateManualReport(tableTemplate, reportTable);
|
|
|
} else if (templateType.equals(ConstantStr.AUTOMATIC_REPORT)) {
|