| | |
| | | package com.iailab.module.ansteel.api.controller.admin; |
| | | |
| | | import com.iailab.framework.common.pojo.CommonResult; |
| | | import com.iailab.module.ansteel.plant.service.PlantChartConfService; |
| | | import com.iailab.module.ansteel.plant.service.PlantConfService; |
| | | import com.iailab.module.ansteel.plant.service.PlantIndexConfService; |
| | | import com.iailab.module.ansteel.plant.vo.PlantChartDataVO; |
| | | import com.iailab.module.ansteel.plant.vo.PlantDataVO; |
| | | import com.iailab.module.ansteel.plant.vo.PlantIndexDataVO; |
| | | 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.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | |
| | | @Autowired |
| | | private PlantIndexConfService plantIndexConfService; |
| | | |
| | | @Autowired |
| | | private PlantChartConfService plantChartConfService; |
| | | |
| | | @GetMapping("/data") |
| | | @Operation(summary = "135机组数据") |
| | | public CommonResult<List<PlantDataVO>> getPlantData(@RequestParam("businessType") String businessType) { |
| | |
| | | List<PlantIndexDataVO> result = plantIndexConfService.getPlantIndexData(businessType); |
| | | return success(result); |
| | | } |
| | | |
| | | @PostMapping("/chart-data") |
| | | @Operation(summary = "135机组指标趋势数据") |
| | | public CommonResult<PlantChartDataVO> getPlantChartData(@RequestBody Map tMap) { |
| | | PlantChartDataVO result = plantChartConfService.getPlantChartData(tMap); |
| | | return success(result); |
| | | } |
| | | } |