| | |
| | | package com.iailab.module.ansteel.api.controller.admin; |
| | | |
| | | import com.iailab.framework.common.pojo.CommonResult; |
| | | import com.iailab.module.ansteel.plant.service.PlantConfService; |
| | | 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 java.math.BigDecimal; |
| | | import java.util.Map; |
| | | |
| | | import static com.iailab.framework.common.pojo.CommonResult.success; |
| | | |
| | | /** |
| | | * @author PanZhibao |
| | | * @Description |
| | | * @createTime 2025年06月16日 |
| | | */ |
| | | @Slf4j |
| | | @RestController |
| | | @RequestMapping("/ansteel/api/plant") |
| | | public class PlantConfController { |
| | | |
| | | @Autowired |
| | | private PlantConfService plantConfService; |
| | | |
| | | @GetMapping("/data") |
| | | @Operation(summary = "135机组数据") |
| | | public CommonResult<Map<String, BigDecimal>> getPlantData(@RequestParam("businessType") String businessType) { |
| | | Map<String, BigDecimal> result = plantConfService.getPlantData(businessType); |
| | | return success(result); |
| | | } |
| | | } |