IEquipmentSparepartSuppliesAdjustService.java 2.3 KB
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;
}