package com.yueqian.xingyun.sc.service.stock;

import com.lframework.starter.web.core.components.resp.PageResult;
import com.lframework.starter.web.core.service.BaseMpService;
import com.yueqian.xingyun.sc.entity.ProductStockLog;
import com.yueqian.xingyun.sc.vo.stock.log.AddLogWithAddStockVo;
import com.yueqian.xingyun.sc.vo.stock.log.AddLogWithSubStockVo;
import com.yueqian.xingyun.sc.vo.stock.log.QueryProductStockLogVo;
import java.util.List;

public interface ProductStockLogService extends BaseMpService<ProductStockLog> {

  /**
   * 查询列表
   *
   * @param pageIndex
   * @param pageSize
   * @param vo
   * @return
   */
  PageResult<ProductStockLog> query(Integer pageIndex, Integer pageSize, QueryProductStockLogVo vo);

  /**
   * 查询列表
   *
   * @param vo
   * @return
   */
  List<ProductStockLog> query(QueryProductStockLogVo vo);

  /**
   * 添加入库记录
   */
  void addLogWithAddStock(AddLogWithAddStockVo vo);

  /**
   * 添加出库记录
   */
  void addLogWithSubStock(AddLogWithSubStockVo vo);
}
