| | |
| | | import com.iailab.framework.common.pojo.CommonResult; |
| | | import com.iailab.module.ansteel.api.dto.*; |
| | | import com.iailab.module.ansteel.api.service.DataService; |
| | | import com.iailab.module.model.api.mcs.dto.PreDataBarLineReqVO; |
| | | import com.iailab.module.model.api.mcs.dto.PreDataSingleChartReqVO; |
| | | import com.iailab.module.model.api.mcs.dto.StAlarmAndSuggestReqVO; |
| | | import io.swagger.v3.oas.annotations.Operation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.*; |
| | | |
| | | import static com.iailab.framework.common.pojo.CommonResult.success; |
| | |
| | | return CommonResult.success(respVO); |
| | | } |
| | | |
| | | @PostMapping("/predict-data/chartsByOutIds") |
| | | @Operation(summary = "根据outId查询预测数据") |
| | | public CommonResult<List<PreDataViewDTO>> getPreDataByOutIds(@RequestBody PreDataBarLineReqVO reqVO) { |
| | | List<PreDataViewDTO> respVO = dataService.getPreDataByOutIds(reqVO); |
| | | return CommonResult.success(respVO); |
| | | } |
| | | |
| | | @PostMapping("/plan-data/charts") |
| | | @Operation(summary = "计划数据图表") |
| | | public CommonResult<Map<String, Object>> getPlanDataChart(@RequestBody PlanDataChartReqVO reqVO) { |
| | |
| | | return success(dataService.useSuggest(ReqVO)); |
| | | } |
| | | |
| | | @PostMapping("/schedule-suggest/ignore-suggest") |
| | | @Operation(summary = "忽略建议") |
| | | public CommonResult<Boolean> ignoreSuggest(@RequestBody StAlarmAndSuggestReqVO ReqVO) { |
| | | return success(dataService.ignoreSuggest(ReqVO)); |
| | | } |
| | | |
| | | @GetMapping("/data/history-value") |
| | | @Operation(summary = "指标/测点历史数据") |
| | | public CommonResult<List<Object[]>> getHistoryValue(@RequestParam Map<String, Object> params) { |
| | | return success(dataService.getHistoryValue(params)); |
| | | } |
| | | |
| | | |
| | | } |