| | |
| | | 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; |
| | |
| | | @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) { |
| | |
| | | } |
| | | outputInventoryRecord.setQuantity(quantity); |
| | | |
| | | outputInventoryRecordMapper.insert(outputInventoryRecord); |
| | | return outputInventoryRecordMapper.insert(outputInventoryRecord); |
| | | |
| | | // 变更原库存信息 |
| | | return inventorySummaryService.updateInventory(pendingInventoryDto, officialInventoryDto); |
| | | // return inventorySummaryService.updateInventory(pendingInventoryDto, officialInventoryDto); |
| | | } |
| | | } |