package zy.cloud.wms.manager.service;
|
|
import com.baomidou.mybatisplus.plugins.Page;
|
import com.baomidou.mybatisplus.service.IService;
|
import zy.cloud.wms.common.model.MatnrDto;
|
import zy.cloud.wms.manager.entity.LocDetl;
|
import zy.cloud.wms.manager.entity.param.StockTransferParam;
|
|
import java.util.List;
|
|
public interface LocDetlService extends IService<LocDetl> {
|
|
Page<LocDetl> getPage(Page<LocDetl> page);
|
|
LocDetl getLocDetl(Long nodeId, String matnr);
|
|
/**
|
* 查看当前物料在库存中的库存明细(推荐货位在前)
|
* @param matnr
|
* @return
|
*/
|
List<LocDetl> findOfSort(String matnr);
|
|
/**
|
* 查看当前订单号的物料在库存中是否充足
|
* @param dtos
|
*/
|
void checkLocDetlCount(List<MatnrDto> dtos);
|
|
List<StockTransferParam> checkLocDetlCountOfRes(List<MatnrDto> dtos);
|
|
/**
|
* 减少库存
|
*/
|
Boolean reduceStock(Long nodeId, String matnr, Double anfme);
|
|
/**
|
* 增加库存
|
*/
|
Boolean incrementStock(Long nodeId, String matnr, Double anfme);
|
|
/**
|
* 删除库存
|
* @param nodeId
|
* @param matnr
|
* @return
|
*/
|
Boolean removeStock(Long nodeId, String matnr);
|
|
/**
|
* 是否属于推荐库位
|
* @param nodeId
|
* @param matnr
|
* @return
|
*/
|
Boolean isPrior(Long nodeId, String matnr);
|
|
/**
|
* 库存明细统计
|
* @return
|
*/
|
List<LocDetl> getLocDetlStatis();
|
|
/**
|
* 数量 sum函数
|
* @param matnr
|
* @return
|
*/
|
Double selectCountByMatnr(String matnr);
|
|
/**
|
* 根据货位uuid查找货位明细
|
* @param uuid
|
* @return
|
*/
|
List<LocDetl> findByNodeUuid(String uuid);
|
|
/**
|
* 库存统计报表分页
|
* @param page
|
* @return
|
*/
|
Page<LocDetl> getStockStatis(Page<LocDetl> page);
|
|
/**
|
* 库存统计报表Excel
|
* @return
|
*/
|
List<LocDetl> getStockStatisExcel();
|
|
/**
|
* 获取当前物料的采购单数量
|
* @return
|
*/
|
Double getStockByDocType34(String matnr);
|
|
}
|