| | |
| | | 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; |
| | |
| | | @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) { |
| | |
| | | } |
| | | 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; |
| | | } |
| | | } |