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

import com.lframework.starter.web.service.BaseMpService;
import com.lframework.xingyun.sc.entity.PurchaseOrderDetail;
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, Integer num);

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