From 40e4ce58f634598fafd205dfe54cb90e8b63b6f2 Mon Sep 17 00:00:00 2001 From: liding <756868258@qq.com> Date: 星期五, 20 六月 2025 17:30:15 +0800 Subject: [PATCH] 生产加工 --- main-business/src/main/java/com/ruoyi/business/service/impl/InventorySummaryServiceImpl.java | 27 +++++++++------------------ 1 files changed, 9 insertions(+), 18 deletions(-) diff --git a/main-business/src/main/java/com/ruoyi/business/service/impl/InventorySummaryServiceImpl.java b/main-business/src/main/java/com/ruoyi/business/service/impl/InventorySummaryServiceImpl.java index b24f537..9892611 100644 --- a/main-business/src/main/java/com/ruoyi/business/service/impl/InventorySummaryServiceImpl.java +++ b/main-business/src/main/java/com/ruoyi/business/service/impl/InventorySummaryServiceImpl.java @@ -5,14 +5,9 @@ import com.ruoyi.business.dto.OfficialInventoryDto; import com.ruoyi.business.dto.PendingInventoryDto; import com.ruoyi.business.entity.*; -import com.ruoyi.business.mapper.InventorySummaryMapper; -import com.ruoyi.business.mapper.OfficialInventoryMapper; -import com.ruoyi.business.mapper.PendingInventoryMapper; -import com.ruoyi.business.service.InputInventoryRecordService; +import com.ruoyi.business.mapper.*; 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; @@ -32,16 +27,12 @@ @Service @RequiredArgsConstructor public class InventorySummaryServiceImpl extends ServiceImpl<InventorySummaryMapper, InventorySummary> implements InventorySummaryService { - @Autowired - private InventorySummaryMapper inventorySummaryMapper; - @Autowired - private InputInventoryRecordService inputInventoryRecordService; - @Autowired - private OutputInventoryRecordService outputInventoryRecordService; - @Autowired - private PendingInventoryMapper pendingInventoryMapper; - @Autowired - private OfficialInventoryMapper officialInventoryMapper; + private final InventorySummaryMapper inventorySummaryMapper; + private final InputInventoryRecordMapper inputInventoryRecordMapper; + private final OutputInventoryRecordMapper outputInventoryRecordMapper; + + private final PendingInventoryMapper pendingInventoryMapper; + private final OfficialInventoryMapper officialInventoryMapper; @Override public int updateInventory(PendingInventoryDto pendingInventoryDto, OfficialInventoryDto officialInventoryDto) { @@ -62,12 +53,12 @@ outputEndRecordId = inventorySummary.getOutputEndRecordId(); } // 鏌ヨ鑺傜偣浠ュ悗鎵�鏈夊叆搴撹褰� - List<InputInventoryRecord> inputInventoryRecords = inputInventoryRecordService.list(new LambdaQueryWrapper<InputInventoryRecord>() + List<InputInventoryRecord> inputInventoryRecords = inputInventoryRecordMapper.selectList(new LambdaQueryWrapper<InputInventoryRecord>() .eq(InputInventoryRecord::getInventoryId, inventoryId) .eq(InputInventoryRecord::getInventoryType, inventoryType) .gt(InputInventoryRecord::getId, inputEndRecordId)); // 鏌ヨ鑺傜偣浠ュ悗鎵�鏈夊嚭搴撹褰� - List<OutputInventoryRecord> outputInventoryRecords = outputInventoryRecordService.list(new LambdaQueryWrapper<OutputInventoryRecord>() + List<OutputInventoryRecord> outputInventoryRecords = outputInventoryRecordMapper.selectList(new LambdaQueryWrapper<OutputInventoryRecord>() .eq(OutputInventoryRecord::getInventoryId, inventoryId) .eq(OutputInventoryRecord::getInventoryType, inventoryType) .gt(OutputInventoryRecord::getId, outputEndRecordId)); -- Gitblit v1.9.3