chenhj
2 天以前 60264687a654d2e7fc46dc9dc81e4fd663210b78
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);
    }
}