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

import com.lframework.starter.web.core.service.BaseMpService;
import com.yueqian.xingyun.sc.dto.retail.out.RetailOutSheetDetailLotDto;
import com.yueqian.xingyun.sc.entity.RetailOutSheetDetailLot;
import java.math.BigDecimal;

public interface RetailOutSheetDetailLotService extends BaseMpService<RetailOutSheetDetailLot> {

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

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

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