| | |
| | | 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.data.api.point.DataPointApi; |
| | | import com.iailab.module.data.api.point.dto.ApiPointValueWriteDTO; |
| | | 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; |
| | |
| | | @Autowired |
| | | private DataService dataService; |
| | | |
| | | @Autowired |
| | | private DataPointApi dataPointApi; |
| | | |
| | | @GetMapping("/power-run-state/list") |
| | | @Operation(summary = "发电厂机组运行情况") |
| | | public CommonResult<List<PowerRunStateDTO>> getPowerRunState(@RequestParam Map<String, Object> params) { |
| | |
| | | |
| | | @PostMapping("/predict-data/chartsByOutIds") |
| | | @Operation(summary = "根据outId查询预测数据") |
| | | public CommonResult<List<PreDataViewDTO>> getPreDataByOutIds(@RequestBody PreDataBarLineReqVO reqVO) { |
| | | List<PreDataViewDTO> respVO = dataService.getPreDataByOutIds(reqVO); |
| | | public CommonResult<List<PreDataViewSimpleDTO>> getPreDataByOutIds(@RequestBody PreDataBarLineReqVO reqVO) { |
| | | List<PreDataViewSimpleDTO> respVO = dataService.getPreDataByOutIds(reqVO); |
| | | return CommonResult.success(respVO); |
| | | } |
| | | |
| | |
| | | return success(dataService.getHistoryValue(params)); |
| | | } |
| | | |
| | | @PostMapping("/write-point-value") |
| | | @Operation(summary = "写入测点值") |
| | | public CommonResult writePointRealValue(@RequestBody ApiPointValueWriteDTO writeDTO) { |
| | | dataPointApi.writePointRealValue(writeDTO); |
| | | return success(); |
| | | } |
| | | |
| | | |
| | | } |