iailab-module-model/iailab-module-model-api/src/main/java/com/iailab/module/model/api/mcs/McsApi.java
@@ -36,6 +36,10 @@ @Operation(summary = "预测数据图表") PreDataItemChartRespVO getPreDataItemChart(@RequestBody PreDataItemChartReqVO reqVO); @PostMapping(PREFIX + "/predict-data/single-chart") @Operation(summary = "预测数据图表") PreDataItemChartRespVO getPreDataSingleChart(@RequestBody PreDataSingleChartReqVO reqVO); @PostMapping(PREFIX + "/alarm-message/create") @Operation(summary = "添加预警信息") Boolean createAlarmMessage(@RequestBody AlarmMessageRespDTO dto); iailab-module-model/iailab-module-model-api/src/main/java/com/iailab/module/model/api/mcs/dto/PreDataItemChartRespVO.java
@@ -8,7 +8,6 @@ import java.util.Date; import java.util.LinkedHashMap; import java.util.List; import java.util.Map; /** * @author PanZhibao @@ -19,9 +18,9 @@ public class PreDataItemChartRespVO implements Serializable { private static final long serialVersionUID = 1L; @Schema(description = "最后运行时间") @Schema(description = "预测时间") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") private Date lastTime; private Date predictTime; @Schema(description = "开始时间") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") iailab-module-model/iailab-module-model-api/src/main/java/com/iailab/module/model/api/mcs/dto/PreDataSingleChartReqVO.java
对比新文件 @@ -0,0 +1,25 @@ package com.iailab.module.model.api.mcs.dto; import com.fasterxml.jackson.annotation.JsonFormat; import io.swagger.v3.oas.annotations.media.Schema; import lombok.Data; import java.io.Serializable; import java.util.Date; /** * @author PanZhibao * @Description * @createTime 2024年11月18日 */ @Data public class PreDataSingleChartReqVO implements Serializable { private static final long serialVersionUID = 1L; @Schema(description = "图表code") private String chartCode; @Schema(description = "预测时间") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") private Date predictTime; } iailab-module-model/iailab-module-model-api/src/main/java/com/iailab/module/model/api/mcs/dto/PreDataViewRespDTO.java
@@ -52,10 +52,10 @@ private BigDecimal deadLineL; @Schema(description = "运行上限") private BigDecimal limtH; private BigDecimal limitH; @Schema(description = "运行下限") private BigDecimal limtL; private BigDecimal limitL; @Schema(description = "最大值") private BigDecimal maxValue; iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/api/McsApiImpl.java
@@ -206,7 +206,7 @@ if (predictItem.getLastTime() == null) { return result; } result.setLastTime(predictItem.getLastTime()); result.setPredictTime(predictItem.getLastTime()); Date startTime = reqVO.getStartTime(); if (startTime == null) { Calendar calendar = Calendar.getInstance(); @@ -250,6 +250,14 @@ return result; } @Override public PreDataItemChartRespVO getPreDataSingleChart(PreDataSingleChartReqVO reqVO) { PreDataItemChartRespVO result = new PreDataItemChartRespVO(); return result; } /** * 获取真实值 * iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/api/controller/admin/McsApiController.java
@@ -67,4 +67,14 @@ PreDataItemChartRespVO respVO = mcsApi.getPreDataItemChart(reqVO); return CommonResult.success(respVO); } @PermitAll @GetMapping("/predict-data/single-chart") @Operation(summary = "预测数据图表") public CommonResult<PreDataItemChartRespVO> getPreDataSingleChart(HttpServletResponse response, HttpServletRequest request, @RequestBody PreDataSingleChartReqVO reqVO) throws Exception { apiSecurityUtils.validate(request); PreDataItemChartRespVO respVO = mcsApi.getPreDataSingleChart(reqVO); return CommonResult.success(respVO); } }