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

import com.lframework.starter.web.core.service.BaseMpService;
import com.yueqian.xingyun.sc.entity.PurchaseOrderDetail;
import java.math.BigDecimal;
import java.util.List;

public interface PurchaseOrderDetailService extends BaseMpService<PurchaseOrderDetail> {

  /**
   * 根据订单ID查询
   *
   * @param orderId
   * @return
   */
  List<PurchaseOrderDetail> getByOrderId(String orderId);

  /**
   * 增加收货数量
   *
   * @param id
   * @param num
   */
  void addReceiveNum(String id, BigDecimal num);

  /**
   * 减少收货数量
   *
   * @param id
   * @param num
   */
  void subReceiveNum(String id, BigDecimal num);
}
