Lius
2024-08-22 f59452ac384766a21500857e89928a8abc0e75b5
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
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.*;
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.List;
import java.util.Map;
 
/**
 * @author Lius
 * @date 2024/8/16 10:44
 */
@Slf4j
@Api(tags = "总控看板")
@RestController
@RequestMapping("/mdc/largeScreen")
public class MdcLargeScreenController {
 
    @Resource
    private MdcLargeScreenService mdcLargeScreenService;
 
 
    @ApiOperation(value = "总控看板-今日生产进度", notes = "总控看板-今日生产进度")
    @GetMapping("/todayProductionSchedule")
    public Result<?> todayProductionSchedule() {
        List<TodayProductionDto> result =  mdcLargeScreenService.todayProductionSchedule();
        return Result.ok(result);
    }
 
    @ApiOperation(value = "总控看板-今日产品合格率", notes = "总控看板-今日产品合格率")
    @GetMapping("/todayProductionPassRate")
    public Result<?> todayProductionPassRate() {
        List<TodayProductionPassRateDto> result = mdcLargeScreenService.todayProductionPassRate();
        return Result.ok(result);
    }
 
    @ApiOperation(value = "总控看板-今日班组完成量", notes = "总控看板-今日班组完成量")
    @GetMapping("/todayClazzCompletionCount")
    public Result<?> todayClazzCompletionCount() {
        List<ClazzCompletionCountDto> result = mdcLargeScreenService.todayClazzCompletionCount();
        return Result.ok(result);
    }
 
    @ApiOperation(value = "总控看板-昨日概况", notes = "总控看板-昨日概况")
    @GetMapping("/yesterdayOverview")
    public Result<?> yesterdayOverview() {
        YesterdayOverviewDto yesterdayOverview = mdcLargeScreenService.yesterdayOverview();
        return Result.ok(yesterdayOverview);
    }
 
    /**
     * 开机率利用率
     * @return
     */
    @ApiOperation(value = "总控看板-今日设备工作效率", notes = "总控看板-今日设备工作效率")
    @GetMapping("/todayEquipmentRate")
    public Result<?> todayEquipmentRate() {
        List<EquipmentRateDto> result = mdcLargeScreenService.todayEquipmentRate();
        return Result.ok(result);
    }
 
    @ApiOperation(value = "总控看板-月设备利用率", notes = "总控看板-月设备利用率")
    @GetMapping("/monthEquipmentUtilizationRate")
    public Result<?> monthEquipmentUtilizationRate() {
 
        return Result.ok();
    }
 
}