From 388d87d5534a056268777cd37d877075bc79929c Mon Sep 17 00:00:00 2001
From: Lius <Lius2225@163.com>
Date: 星期四, 15 五月 2025 10:54:28 +0800
Subject: [PATCH] 产量列表

---
 lxzn-module-mdc/src/main/java/org/jeecg/modules/screen/controller/MdcLargeScreenController.java |   48 ++++++++++++++++++++++++++++++++++++++++--------
 1 files changed, 40 insertions(+), 8 deletions(-)

diff --git a/lxzn-module-mdc/src/main/java/org/jeecg/modules/screen/controller/MdcLargeScreenController.java b/lxzn-module-mdc/src/main/java/org/jeecg/modules/screen/controller/MdcLargeScreenController.java
index 31b0207..affc0d5 100644
--- a/lxzn-module-mdc/src/main/java/org/jeecg/modules/screen/controller/MdcLargeScreenController.java
+++ b/lxzn-module-mdc/src/main/java/org/jeecg/modules/screen/controller/MdcLargeScreenController.java
@@ -4,13 +4,17 @@
 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
@@ -28,16 +32,44 @@
 
     @ApiOperation(value = "澶у睆鐪嬫澘-璁惧鎯呭喌", notes = "澶у睆鐪嬫澘-璁惧鎯呭喌")
     @GetMapping("/equipmentStatusOverview")
-    public Result<EquipmentStatusOverview> equipmentStatusOverview(String workshopId) {
-        EquipmentStatusOverview equipmentStatusOverview = mdcLargeScreenService.equipmentStatusOverview(workshopId);
+    public Result<EquipmentStatusOverview> equipmentStatusOverview(String productionId) {
+        EquipmentStatusOverview equipmentStatusOverview = mdcLargeScreenService.equipmentStatusOverview(productionId);
         return Result.OK(equipmentStatusOverview);
     }
 
-//    @ApiOperation(value = "澶у睆鐪嬫澘-鏈堝埄鐢ㄧ巼瓒嬪娍", notes = "澶у睆鐪嬫澘-鏈堝埄鐢ㄧ巼瓒嬪娍")
-//    @GetMapping("/monthUtilizationTendency")
-//    public Result<EquipmentStatusOverview> monthUtilizationTendency(String workshopId) {
-//
-//        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);
+    }
 
 }

--
Gitblit v1.9.3