From 60264687a654d2e7fc46dc9dc81e4fd663210b78 Mon Sep 17 00:00:00 2001
From: chenhj <1263187585@qq.com>
Date: 星期六, 14 六月 2025 16:27:59 +0800
Subject: [PATCH] 库存明细,以及库存数量更新方法,库存节点存储

---
 main-business/src/main/java/com/ruoyi/business/service/impl/OutputInventoryRecordServiceImpl.java |   11 +++--------
 1 files changed, 3 insertions(+), 8 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 79f120f..87888d3 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,10 +5,8 @@
 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.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Service;
 
 import java.math.BigDecimal;
@@ -27,10 +25,7 @@
 @Service
 @RequiredArgsConstructor
 public class OutputInventoryRecordServiceImpl extends ServiceImpl<OutputInventoryRecordMapper, OutputInventoryRecord> implements OutputInventoryRecordService {
-    @Autowired
-    private OutputInventoryRecordMapper outputInventoryRecordMapper;
-    @Autowired
-    private InventorySummaryService inventorySummaryService;
+    private final OutputInventoryRecordMapper outputInventoryRecordMapper;
 
     @Override
     public int insertOutputInventoryRecord(PendingInventoryDto pendingInventoryDto, OfficialInventoryDto officialInventoryDto, BigDecimal quantity) {
@@ -48,9 +43,9 @@
         }
         outputInventoryRecord.setQuantity(quantity);
 
-        outputInventoryRecordMapper.insert(outputInventoryRecord);
+        return outputInventoryRecordMapper.insert(outputInventoryRecord);
 
         // 鍙樻洿鍘熷簱瀛樹俊鎭�
-        return inventorySummaryService.updateInventory(pendingInventoryDto, officialInventoryDto);
+//        return inventorySummaryService.updateInventory(pendingInventoryDto, officialInventoryDto);
     }
 }

--
Gitblit v1.9.3