Lius
2024-10-09 33aea4a7532fcaddbd4262e51900b5102c0aa07c
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
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.mdc.entity.EquipmentAlarm;
import org.jeecg.modules.mdc.entity.MdcEquipmentMonitor;
import org.jeecg.modules.screen.dto.MdcProductDayscheduleDto;
import org.jeecg.modules.screen.dto.ToolLifeDto;
import org.jeecg.modules.screen.service.MdcSubLargeScreenService;
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;
 
/**
 * @author Lius
 * @date 2024/8/26 14:57
 */
@Slf4j
@Api(tags = "分控看板")
@RestController
@RequestMapping("/mdc/subLargeScreen")
public class MdcSubLargeScreenController {
 
    @Resource
    private MdcSubLargeScreenService mdcSubLargeScreenService;
 
    @ApiOperation(value = "分控看板-当日生产进度", notes = "分控看板-当日生产进度")
    @GetMapping("/todayProductionProgress")
    public Result<?> todayProductionProgress(String productionId) {
        List<MdcProductDayscheduleDto> result = mdcSubLargeScreenService.todayProductionProgress(productionId);
        return Result.ok(result);
    }
 
    @ApiOperation(value = "分控看板-设备实时状态", notes = "分控看板-设备实时状态")
    @GetMapping("/equipmentStatus")
    public Result<?> equipmentStatus(String productionId) {
        List<MdcEquipmentMonitor> result = mdcSubLargeScreenService.equipmentStatus(productionId);
        return Result.ok(result);
    }
 
    @ApiOperation(value = "分控看板-设备报警", notes = "分控看板-设备报警")
    @GetMapping("/equipmentAlarm")
    public Result<?> equipmentAlarm(String productionId) {
        List<EquipmentAlarm> result = mdcSubLargeScreenService.equipmentAlarm(productionId);
        return Result.ok(result);
    }
 
    @ApiOperation(value = "分控看板-刀具寿命列表", notes = "分控看板-刀具寿命列表")
    @GetMapping("/toolLifeList")
    public Result<?> toolLifeList(String productionId) {
        List<ToolLifeDto> result = mdcSubLargeScreenService.toolLifeList(productionId);
        return Result.ok(result);
    }
 
 
}