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/service/impl/MdcLargeScreenServiceImpl.java |   22 ++++++++++++++++++++++
 1 files changed, 22 insertions(+), 0 deletions(-)

diff --git a/lxzn-module-mdc/src/main/java/org/jeecg/modules/screen/service/impl/MdcLargeScreenServiceImpl.java b/lxzn-module-mdc/src/main/java/org/jeecg/modules/screen/service/impl/MdcLargeScreenServiceImpl.java
index 0930b96..6f34ebc 100644
--- a/lxzn-module-mdc/src/main/java/org/jeecg/modules/screen/service/impl/MdcLargeScreenServiceImpl.java
+++ b/lxzn-module-mdc/src/main/java/org/jeecg/modules/screen/service/impl/MdcLargeScreenServiceImpl.java
@@ -3,8 +3,10 @@
 import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
 import org.jeecg.common.constant.CommonConstant;
 import org.jeecg.common.system.vo.DictModel;
+import org.jeecg.modules.mdc.entity.MdcEquipmentDaySummary;
 import org.jeecg.modules.mdc.entity.MdcEquipmentMonitor;
 import org.jeecg.modules.mdc.service.IEquipmentAlarmService;
+import org.jeecg.modules.mdc.service.IMdcEquipmentDaySummaryService;
 import org.jeecg.modules.mdc.service.IMdcEquipmentService;
 import org.jeecg.modules.mdc.service.IMdcEquipmentStatisticalInfoService;
 import org.jeecg.modules.mdc.util.DateUtils;
@@ -44,6 +46,9 @@
     @Resource
     private IEquipmentAlarmService equipmentAlarmService;
 
+    @Resource
+    private IMdcEquipmentDaySummaryService mdcEquipmentDaySummaryService;
+
     /**
      * 璁惧鐘舵�佹儏鍐�
      *
@@ -53,6 +58,7 @@
     @Override
     public EquipmentStatusOverview equipmentStatusOverview(String productionId) {
         EquipmentStatusOverview equipmentStatusOverview = new EquipmentStatusOverview();
+        // 璁惧鐘舵��
         List<MdcEquipmentMonitor> equipmentMonitorList = mdcEquipmentService.getEquipmentMonitorList(productionId);
         if (equipmentMonitorList != null && !equipmentMonitorList.isEmpty()) {
             equipmentStatusOverview.setEquipmentCount(equipmentMonitorList.size());
@@ -87,6 +93,12 @@
                     }
                 }
             }
+        }
+        // mes浜ч噺
+        MdcEquipmentDaySummary mdcEquipmentDaySummary = mdcEquipmentDaySummaryService.statisticsQty(productionId);
+        if (mdcEquipmentDaySummary != null) {
+            equipmentStatusOverview.setQualifiedQty(mdcEquipmentDaySummary.getQualifiedQty());
+            equipmentStatusOverview.setPlanQty(mdcEquipmentDaySummary.getPlanQty());
         }
         return equipmentStatusOverview;
     }
@@ -227,6 +239,16 @@
     }
 
     /**
+     * 宸ユ鍒楄〃
+     * @param productionId
+     * @return
+     */
+    @Override
+    public List<MdcProduction> productionList(String productionId) {
+        return mdcProductionService.list(new LambdaQueryWrapper<MdcProduction>().eq(MdcProduction::getParentId, productionId).eq(MdcProduction::getDelFlag, CommonConstant.DEL_FLAG_0));
+    }
+
+    /**
      * 鍒涘缓瀛愮敓浜х殑鏈堝害鍒╃敤鐜� DTO
      */
     private UtilizationRateDto createUtilizationMonthDto(MdcProduction mdcProduction, List<String[]> dateLists) {

--
Gitblit v1.9.3