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