| | |
| | | import com.iailab.module.data.api.ind.IndItemApi; |
| | | import com.iailab.module.data.api.ind.dto.ApiIndItemQueryDTO; |
| | | import com.iailab.module.data.api.ind.dto.ApiIndItemValueDTO; |
| | | import com.iailab.module.data.api.ind.dto.ApiIndItemValuePageReqVO; |
| | | import com.iailab.module.data.api.plan.PlanItemApi; |
| | | import com.iailab.module.data.api.plan.dto.ApiPlanDataDTO; |
| | | import com.iailab.module.data.api.point.DataPointApi; |
| | |
| | | if (!PointDataTypeEnum.BOOLEAN.getCode().equals(dataType)) { |
| | | BigDecimal decValue = new BigDecimal(value.toString()); |
| | | if (PointDataTypeEnum.FLOAT.getCode().equals(dataType)) { |
| | | return decValue.setScale(2, BigDecimal.ROUND_HALF_UP); |
| | | // return decValue.setScale(2, BigDecimal.ROUND_HALF_UP); |
| | | return value; |
| | | } else if (PointDataTypeEnum.INT.getCode().equals(dataType)) { |
| | | decValue = decValue.setScale(0, BigDecimal.ROUND_HALF_UP); |
| | | } |
| | |
| | | return success(data); |
| | | } |
| | | |
| | | @PermitAll |
| | | @PostMapping("/query-ind-value/page") |
| | | @Operation(summary = "查询指标数据值分页") |
| | | public CommonResult<PageResult<ApiIndItemValueDTO>> queryIndItemValuePage(@RequestBody ApiIndItemValuePageReqVO dto) { |
| | | return success(indItemApi.queryIndItemValuePage(dto)); |
| | | } |
| | | |
| | | } |