鞍钢鲅鱼圈能源管控系统后端代码
dengzedong
2025-06-16 19bc07c579e19af8b5404b036adee0310912c43c
ansteel-biz/src/main/java/com/iailab/module/ansteel/plant/controller/PlantConfController.java
@@ -1,9 +1,37 @@
package com.iailab.module.ansteel.plant.controller;
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月15日
 */
@Slf4j
@RestController
@RequestMapping("/ansteel/api/plant")
public class PlantConfController {
    @Autowired
    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);
    }
}