package com.yueqian.xingyun.sc.mappers;

import com.lframework.starter.web.core.mapper.BaseMapper;
import com.yueqian.xingyun.sc.entity.ScTransferOrderDetail;
import java.math.BigDecimal;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 仓库调拨单明细 Mapper 接口
 * </p>
 *
 * @author zmj
 */
public interface ScTransferOrderDetailMapper extends BaseMapper<ScTransferOrderDetail> {

  /**
   * 收货
   *
   * @param productId
   * @param receiveNum
   * @return
   */
  int receive(@Param("orderId") String orderId, @Param("productId") String productId,
      @Param("receiveNum") BigDecimal receiveNum, @Param("receiveAmount") BigDecimal receiveAmount);

  /**
   * 统计未收货的商品
   *
   * @param orderId
   * @return
   */
  int countUnReceive(@Param("orderId") String orderId);
}
