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.AlarmInfoDto;
|
import org.jeecg.modules.screen.dto.EquipmentStatusOverview;
|
import org.jeecg.modules.screen.service.MdcLargeScreenService;
|
import org.jeecg.modules.system.entity.MdcProduction;
|
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
|
* @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);
|
}
|
|
@ApiOperation(value = "大屏看板-周利用率趋势", notes = "大屏看板-周利用率趋势")
|
@GetMapping("/weekUtilizationTendency")
|
public Result<Map<String, Object>> weekUtilizationTendency(String productionId) {
|
Map<String, Object> result = mdcLargeScreenService.weekUtilizationTendency(productionId);
|
return Result.OK(result);
|
}
|
|
@ApiOperation(value = "大屏看板-日利用率趋势", notes = "大屏看板-日利用率趋势")
|
@GetMapping("/dayUtilizationTendency")
|
public Result<Map<String, Object>> dayUtilizationTendency(String productionId) {
|
Map<String, Object> result = mdcLargeScreenService.dayUtilizationTendency(productionId);
|
return Result.OK(result);
|
}
|
|
@ApiOperation(value = "大屏看板-设备报警信息", notes = "大屏看板-设备报警信息")
|
@GetMapping("/getAlarmInfo")
|
public Result<List<AlarmInfoDto>> getAlarmInfo(String productionId) {
|
List<AlarmInfoDto> result = mdcLargeScreenService.getAlarmInfo(productionId);
|
return Result.OK(result);
|
}
|
|
@ApiOperation(value = "大屏看板-工段列表", notes = "大屏看板-工段列表")
|
@GetMapping("/productionList")
|
public Result<List<MdcProduction>> productionList(String productionId) {
|
List<MdcProduction> result = mdcLargeScreenService.productionList(productionId);
|
return Result.OK(result);
|
}
|
|
}
|