鞍钢鲅鱼圈能源管控系统后端代码
dengzedong
2025-06-16 19bc07c579e19af8b5404b036adee0310912c43c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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);
    }
}