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

import com.lframework.starter.web.core.service.BaseMpService;
import com.yueqian.xingyun.sc.dto.sale.out.SaleOutSheetDetailLotDto;
import com.yueqian.xingyun.sc.entity.SaleOutSheetDetailLot;
import java.math.BigDecimal;

public interface SaleOutSheetDetailLotService extends BaseMpService<SaleOutSheetDetailLot> {

  /**
   * 根据ID查询
   *
   * @param id
   * @return
   */
  SaleOutSheetDetailLotDto findById(String id);

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

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