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/InputInventoryRecordServiceImpl.java | 20 ++++++++++++-------- 1 files changed, 12 insertions(+), 8 deletions(-) diff --git a/main-business/src/main/java/com/ruoyi/business/service/impl/InputInventoryRecordServiceImpl.java b/main-business/src/main/java/com/ruoyi/business/service/impl/InputInventoryRecordServiceImpl.java index ac0a847..d2a2112 100644 --- a/main-business/src/main/java/com/ruoyi/business/service/impl/InputInventoryRecordServiceImpl.java +++ b/main-business/src/main/java/com/ruoyi/business/service/impl/InputInventoryRecordServiceImpl.java @@ -6,9 +6,7 @@ import com.ruoyi.business.entity.InputInventoryRecord; import com.ruoyi.business.mapper.InputInventoryRecordMapper; import com.ruoyi.business.service.InputInventoryRecordService; -import com.ruoyi.business.service.InventorySummaryService; 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 InputInventoryRecordServiceImpl extends ServiceImpl<InputInventoryRecordMapper, InputInventoryRecord> implements InputInventoryRecordService { - @Autowired - private InputInventoryRecordMapper inputInventoryRecordMapper; - @Autowired - private InventorySummaryService inventorySummaryService; + private final InputInventoryRecordMapper inputInventoryRecordMapper; @Override public int insertInputInventoryRecord(PendingInventoryDto pendingInventoryDto, OfficialInventoryDto officialInventoryDto, BigDecimal quantity) { @@ -48,9 +43,18 @@ } inputInventoryRecord.setQuantity(quantity); - inputInventoryRecordMapper.insert(inputInventoryRecord); + return inputInventoryRecordMapper.insert(inputInventoryRecord); // 鏇存柊搴撳瓨 - return inventorySummaryService.updateInventory(pendingInventoryDto, officialInventoryDto); +// inventorySummaryService.updateInventory(pendingInventoryDto, officialInventoryDto); + } + + @Override + public int deleteInputInventoryRecord(Long[] ids) { + + + + + return 0; } } -- Gitblit v1.9.3