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.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;
|
|
/**
|
* @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() {
|
List<MonthEquipmentUtilizationRateDto> result = mdcLargeScreenService.monthEquipmentUtilizationRate();
|
return Result.ok(result);
|
}
|
|
@ApiOperation(value = "总控看板-产线列表", notes = "总控看板-产线列表")
|
@GetMapping("/productionList")
|
public Result<?> productionList() {
|
List<MdcProduction> result = mdcLargeScreenService.productionList();
|
return Result.ok(result);
|
}
|
}
|