IEquipmentSparepartSuppliesAdjustService.java
2.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
package com.skua.modules.supplies.service;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.skua.modules.equipment.dto.EquipmentAdjustQueryDTO;
import com.skua.modules.equipment.dto.SuppliesAndNumDTO;
import com.skua.modules.equipment.enums.DicSupliesStockInTypeEnums;
import com.skua.modules.equipment.enums.DicSupliesStockOutTypeEnums;
import com.skua.modules.equipment.vo.EquipmentAdjustQueryVO;
import com.skua.modules.supplies.dto.EquipmentAdjustAddDTO;
import com.skua.modules.supplies.entity.EquipmentSparepartSuppliesAdjust;
import com.baomidou.mybatisplus.extension.service.IService;
import com.skua.modules.supplies.vo.EquipmentAdjustDetailQueryVO;
import java.math.BigDecimal;
import java.util.List;
/**
* 库存调整
*/
public interface IEquipmentSparepartSuppliesAdjustService extends IService<EquipmentSparepartSuppliesAdjust> {
void add(EquipmentAdjustAddDTO dto) throws Exception;
void edit(EquipmentAdjustAddDTO dto) throws Exception;
IPage<EquipmentAdjustQueryVO> pageQuery(EquipmentAdjustQueryDTO dto, Integer pageNo, Integer pageSize);
List<EquipmentAdjustDetailQueryVO> queryChildDetailById(String id);
/**
* 增加库存
* @param suppliesAndNumList 物料id & 数量
* @param suppliesWarehouseId 仓库id
* @param inType 入库类型
* @param transactBy 经办人id
*/
void incrStock(String transactBy,String suppliesWarehouseId, DicSupliesStockInTypeEnums inType, List<SuppliesAndNumDTO> suppliesAndNumList) throws Exception;
/**
* 减小库存
* @param suppliesAndNumList suppliesAndNumList 物料id & 数量
* @param suppliesWarehouseId 仓库id
* @param outType 出库类型
* @param transactBy 经办人id
*/
void decrStock(String transactBy,String suppliesWarehouseId, DicSupliesStockOutTypeEnums outType, List<SuppliesAndNumDTO> suppliesAndNumList);
/**
* 设置库存
* @param suppliesAndNumList suppliesAndNumList 物料id & 数量
* @param suppliesWarehouseId 仓库id
* @param outType 出库类型
* @param inType 入库类型
* @param transactBy 经办人id
*/
void setStock(String transactBy,String suppliesWarehouseId, DicSupliesStockInTypeEnums inType, DicSupliesStockOutTypeEnums outType, List<SuppliesAndNumDTO> suppliesAndNumList) throws Exception;
}