|
@@ -44,7 +44,7 @@ public class DeviceMaReportTableValidate extends DeviceReportTableValidate {
|
|
|
//待完成。。。
|
|
|
return reportTable.setReportTableData(resolveAutoTableData(reportTable.getReportTableData(), LocalDateTime.now(), itemScaleList, defaultScale));
|
|
|
}
|
|
|
- //解析自动报表结构
|
|
|
+ //解析设备报表结构
|
|
|
JSONObject reportTableData = JSONObject.parseObject(reportTable.getReportTableData());
|
|
|
//得到sheet数据
|
|
|
JSONObject sheet = reportTableData.getJSONObject("sheet");
|
|
@@ -70,7 +70,7 @@ public class DeviceMaReportTableValidate extends DeviceReportTableValidate {
|
|
|
reportTableDao.runAutoTableById(id, runState);
|
|
|
if (runState.equals(ConstantStr.START_UP)) {
|
|
|
if (oldRunState.equals(ConstantStr.START_UP)) {
|
|
|
- return Result.no(ResultEnum.REQUEST_WRONGPARAMS.getRespCode(), "此自动报表已经处于启动状态");
|
|
|
+ return Result.no(ResultEnum.REQUEST_WRONGPARAMS.getRespCode(), "此设备报表已经处于启动状态");
|
|
|
}
|
|
|
//新增定时器任务
|
|
|
Map<String, Object> map = new HashMap<>();
|
|
@@ -86,7 +86,7 @@ public class DeviceMaReportTableValidate extends DeviceReportTableValidate {
|
|
|
return Result.ok("启动成功");
|
|
|
} else if (runState.equals(ConstantStr.STOP_IT)) {
|
|
|
if (oldRunState.equals(ConstantStr.STOP_IT)) {
|
|
|
- return Result.no(ResultEnum.REQUEST_WRONGPARAMS.getRespCode(), "此自动报表已经处于停止状态");
|
|
|
+ return Result.no(ResultEnum.REQUEST_WRONGPARAMS.getRespCode(), "此设备报表已经处于停止状态");
|
|
|
}
|
|
|
Integer type = reportTable.getType();
|
|
|
if (type.equals(0)) {
|
|
@@ -98,7 +98,7 @@ public class DeviceMaReportTableValidate extends DeviceReportTableValidate {
|
|
|
}
|
|
|
return Result.ok("停止成功");
|
|
|
} else {
|
|
|
- throw new CustomException(ResultEnum.REQUEST_WRONGPARAMS.getRespCode(), "自动报表的状态只有启动或停止");
|
|
|
+ throw new CustomException(ResultEnum.REQUEST_WRONGPARAMS.getRespCode(), "设备报表的状态只有启动或停止");
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -106,7 +106,7 @@ public class DeviceMaReportTableValidate extends DeviceReportTableValidate {
|
|
|
public Result setAutoTableTime(ReportTable reportTable, HttpServletRequest request) {
|
|
|
ReportTable oldReportTable = reportTableDao.getReportTableNoDataById(reportTable.getId());
|
|
|
if (oldReportTable.getRunState().equals(ConstantStr.START_UP)) {
|
|
|
- return Result.no(ResultEnum.REQUEST_WRONGPARAMS.getRespCode(), "自动报表现在处于启动状态,不允许修改定时时间");
|
|
|
+ return Result.no(ResultEnum.REQUEST_WRONGPARAMS.getRespCode(), "设备报表现在处于启动状态,不允许修改定时时间");
|
|
|
}
|
|
|
if (reportTable.getIsRunPrint().equals(ConstantStr.START_UP)) {
|
|
|
if (Blank.isEmpty(reportTable.getPrintConfigId())) {
|