Lius
2025-03-03 75d26035001d85c12dc3ca93455b0fee477c3f77
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
38
39
40
41
42
43
44
45
46
package org.jeecg.modules.screen.controller;
 
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.jeecg.common.api.vo.Result;
import org.jeecg.modules.screen.dto.EquipmentStatusOverview;
import org.jeecg.modules.screen.service.MdcLargeScreenService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
 
import javax.annotation.Resource;
import java.util.Map;
 
/**
 * @Author: Lius
 * @CreateTime: 2025-02-28
 * @Description:
 */
@Slf4j
@Api(tags = "大屏看板")
@RestController
@RequestMapping("/mdc/largeScreen")
public class MdcLargeScreenController {
 
    @Resource
    private MdcLargeScreenService mdcLargeScreenService;
 
    @ApiOperation(value = "大屏看板-设备情况", notes = "大屏看板-设备情况")
    @GetMapping("/equipmentStatusOverview")
    public Result<EquipmentStatusOverview> equipmentStatusOverview(String productionId) {
        EquipmentStatusOverview equipmentStatusOverview = mdcLargeScreenService.equipmentStatusOverview(productionId);
        return Result.OK(equipmentStatusOverview);
    }
 
    @ApiOperation(value = "大屏看板-月利用率趋势", notes = "大屏看板-月利用率趋势")
    @GetMapping("/monthUtilizationTendency")
    public Result<Map<String, Object>> monthUtilizationTendency(String productionId) {
        Map<String, Object> result = mdcLargeScreenService.monthUtilizationTendency(productionId);
        return Result.OK(result);
    }
 
//    public Result<?> monthUtilizationTendency(String)
 
}