package com.yeshi.fanli.service.inter.order;
|
|
import java.math.BigDecimal;
|
|
import com.yeshi.fanli.entity.order.InviteOrderSubsidy;
|
import com.yeshi.fanli.exception.order.InviteOrderSubsidyException;
|
|
public interface InviteOrderSubsidyService {
|
|
/**
|
* 查询补贴
|
*
|
* @param uid
|
* @param orderNo
|
* @param type
|
* @return
|
*/
|
public InviteOrderSubsidy getByOrderNoAndType(Long uid, String orderNo, Integer type);
|
|
/**
|
* 查询补贴(加锁)
|
* @param uid
|
* @param orderNo
|
* @param type
|
* @return
|
*/
|
public InviteOrderSubsidy getByOrderNoAndTypeForUpdate(Long uid, String orderNo, Integer type);
|
|
|
|
/**
|
* 添加订单补贴
|
*
|
* @param orderSubsidy
|
* @throws OrderSubsidyException
|
*/
|
public void addOrderSubsidy(InviteOrderSubsidy orderSubsidy) throws InviteOrderSubsidyException;
|
|
/**
|
* 添加或修改(按照订单号与来源)
|
*
|
* @param orderId
|
* @param sourceType
|
*/
|
public void addOrUpdateByOrder(String orderId, int sourceType) throws InviteOrderSubsidyException;
|
|
/**
|
* 根据订单号与来源查询
|
*
|
* @param orderId
|
* @param sourceType
|
* @return
|
*/
|
public long countByOrderIdAndSourceType(String orderId, int sourceType);
|
|
/**
|
* 使订单号对应的数据失效
|
*
|
* @param orderId
|
* @param sourceType
|
*/
|
public void invalidByOrderIdAndSourceType(String orderId, int sourceType);
|
|
|
/**
|
* 使订单号对应的数据有效
|
* @param orderId
|
* @param sourceType
|
*/
|
public void validByOrderIdAndSourceType(String orderId, int sourceType);
|
|
|
/**
|
* 结算金额
|
* @param id
|
* @param money
|
*/
|
public void settleById(Long id,BigDecimal money);
|
}
|