| | |
| | | List<IndItemValueVO> list = indItemCollector.queryValue(itemNo); |
| | | List<ApiIndItemValueDTO> dtoList = new ArrayList<>(); |
| | | list.forEach(item -> { |
| | | ApiIndItemValueDTO dto = new ApiIndItemValueDTO(); |
| | | dto.setDataTime(item.getDataTime()); |
| | | dto.setDataValue(item.getDataValue().doubleValue()); |
| | | dtoList.add(dto); |
| | | if (item != null) { |
| | | ApiIndItemValueDTO dto = new ApiIndItemValueDTO(); |
| | | dto.setDataTime(item.getDataTime()); |
| | | dto.setDataValue(item.getDataValue().doubleValue()); |
| | | dtoList.add(dto); |
| | | } |
| | | }); |
| | | return success(dtoList); |
| | | } |
| | |
| | | } |
| | | |
| | | @PermitAll |
| | | @PostMapping("/query-points/info") |
| | | @PostMapping("/query-math-point/current-value") |
| | | @Operation(summary = "根据计算点编号查询测点集合") |
| | | public CommonResult<PageResult<ApiPointDTO>> queryPageByNo(@RequestBody ApiPointPageReqVO reqVO) { |
| | | PageResult<ApiPointDTO> data = dataPointApi.getPageByNo(reqVO); |
| | | public CommonResult<PageResult<ApiPointDTO>> queryMathPointCurrentValue(@RequestBody ApiPointPageReqVO reqVO) { |
| | | PageResult<ApiPointDTO> data = dataPointApi.queryMathPointCurrentValue(reqVO); |
| | | return success(data); |
| | | } |
| | | |