package com.yeshi.fanli.service.inter.order.dividents;
|
|
import java.math.BigDecimal;
|
import java.util.Date;
|
import java.util.List;
|
|
import com.yeshi.fanli.entity.order.dividents.TeamDividentsSourceOrder;
|
import com.yeshi.fanli.exception.ParamsException;
|
import com.yeshi.fanli.exception.order.dividents.TeamDividentsSourceOrderException;
|
|
public interface TeamDividentsSourceOrderService {
|
|
/**
|
* 添加团队分红来源订单
|
* @Title: addTeamDividentsSourceOrder
|
* @Description:
|
* @param order
|
* void 返回类型
|
* @throws
|
*/
|
public TeamDividentsSourceOrder addTeamDividentsSourceOrder(TeamDividentsSourceOrder order)
|
throws TeamDividentsSourceOrderException, ParamsException;
|
|
/**
|
* 根据主键查询
|
* @Title: selectByPrimaryKeyForUpdate
|
* @Description:
|
* @param id
|
* @return
|
* TeamDividentsSourceOrder 返回类型
|
* @throws
|
*/
|
public TeamDividentsSourceOrder selectByPrimaryKeyForUpdate(Long id);
|
|
/**
|
* 使订单失效
|
* @Title: invalidOrder
|
* @Description:
|
* @param orderNo
|
* @param sourceType
|
* @param beiZhu
|
* void 返回类型
|
* @throws
|
*/
|
public void invalidOrder(String orderNo, int sourceType, String beiZhu);
|
|
/**
|
* 根据uid失效
|
* @Title: invalidOrderByUid
|
* @Description:
|
* @param uid
|
* @param beiZhu
|
* void 返回类型
|
* @throws
|
*/
|
public void invalidOrderByUid(Long uid, String beiZhu);
|
|
/**
|
* 发送
|
* @Title: send
|
* @Description:
|
* @param id
|
* void 返回类型
|
* @throws
|
*/
|
public void send(Long id);
|
|
/**
|
* 根据订单查询
|
* @Title: selectByOrderNoSourceType
|
* @Description:
|
* @param orderNo
|
* @param sourceType
|
* @return
|
* TeamDividentsSourceOrder 返回类型
|
* @throws
|
*/
|
public TeamDividentsSourceOrder selectByOrderNoSourceType(String orderNo, int sourceType);
|
|
|
/**
|
* 根据订单号查询
|
* @Title: listByOrderNoSourceType
|
* @Description:
|
* @param orderNo
|
* @return
|
* List<TeamDividentsSourceOrder> 返回类型
|
* @throws
|
*/
|
public List<TeamDividentsSourceOrder> listByOrderNoOrUid(String orderNo,Long uid);
|
|
/**
|
* 订单结算
|
* @Title: orderSettle
|
* @Description:
|
* @param orderNo
|
* @param sourceType
|
* @param income
|
* void 返回类型
|
* @throws
|
*/
|
public void orderSettle(String orderNo, int sourceType,Date preSendTime, BigDecimal income);
|
|
/**
|
* 更新资金
|
* @Title: updateMoney
|
* @Description:
|
* @param orderNo
|
* @param sourceType
|
* @param money
|
* void 返回类型
|
* @throws
|
*/
|
public void updateMoney(String orderNo, int sourceType, BigDecimal money);
|
|
}
|