From 5eec9b5a9d8bf9e49663d5a51cab7490fef5b204 Mon Sep 17 00:00:00 2001
From: maven <2163098428@qq.com>
Date: 星期二, 26 八月 2025 15:22:03 +0800
Subject: [PATCH] yys  生产管控(完成基本功能)

---
 main-business/src/main/java/com/ruoyi/business/service/impl/OutputInventoryRecordServiceImpl.java |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/main-business/src/main/java/com/ruoyi/business/service/impl/OutputInventoryRecordServiceImpl.java b/main-business/src/main/java/com/ruoyi/business/service/impl/OutputInventoryRecordServiceImpl.java
index 87888d3..a2544f1 100644
--- a/main-business/src/main/java/com/ruoyi/business/service/impl/OutputInventoryRecordServiceImpl.java
+++ b/main-business/src/main/java/com/ruoyi/business/service/impl/OutputInventoryRecordServiceImpl.java
@@ -5,6 +5,7 @@
 import com.ruoyi.business.dto.PendingInventoryDto;
 import com.ruoyi.business.entity.OutputInventoryRecord;
 import com.ruoyi.business.mapper.OutputInventoryRecordMapper;
+import com.ruoyi.business.service.InventorySummaryService;
 import com.ruoyi.business.service.OutputInventoryRecordService;
 import lombok.RequiredArgsConstructor;
 import org.springframework.stereotype.Service;
@@ -27,6 +28,8 @@
 public class OutputInventoryRecordServiceImpl extends ServiceImpl<OutputInventoryRecordMapper, OutputInventoryRecord> implements OutputInventoryRecordService {
     private final OutputInventoryRecordMapper outputInventoryRecordMapper;
 
+    private final InventorySummaryService inventorySummaryService;
+
     @Override
     public int insertOutputInventoryRecord(PendingInventoryDto pendingInventoryDto, OfficialInventoryDto officialInventoryDto, BigDecimal quantity) {
         if ((pendingInventoryDto != null && officialInventoryDto != null) || (pendingInventoryDto == null && officialInventoryDto == null)) {
@@ -43,9 +46,9 @@
         }
         outputInventoryRecord.setQuantity(quantity);
 
-        return outputInventoryRecordMapper.insert(outputInventoryRecord);
+        outputInventoryRecordMapper.insert(outputInventoryRecord);
 
         // 鍙樻洿鍘熷簱瀛樹俊鎭�
-//        return inventorySummaryService.updateInventory(pendingInventoryDto, officialInventoryDto);
+        return inventorySummaryService.updateInventory(pendingInventoryDto, officialInventoryDto);
     }
 }

--
Gitblit v1.9.3