IUnionShareService.java 2.01 KB
package com.yoho.unions.server.service;

import com.yoho.service.model.union.bo.ShareOrderBo;
import com.yoho.service.model.union.bo.ShareSettlementBo;
import com.yoho.service.model.union.bo.ShareUserSettlementInfoBo;
import com.yoho.service.model.union.request.UnionShareOrderReqBO;
import com.yoho.service.model.union.request.UnionShareOrderSearchReqBO;
import com.yoho.service.model.union.response.PageUnionShareOrderRspBO;
import com.yoho.unions.dal.model.UnionShareOrders;
import com.yoho.unions.dal.model.UnionShareSettlement;
import com.yoho.unions.dal.model.UnionShareUser;

import java.math.BigDecimal;
import java.util.List;

/**
 * 联盟红人推广返利
 * Created by mingdan.ge on 2018/5/10.
 */
public interface IUnionShareService {

    /**
     * 订单插入或更新
     */
    void saveOrUpdateOrder(ShareOrderBo bo);

    PageUnionShareOrderRspBO queryUnionShareOrders(UnionShareOrderSearchReqBO reqBO);
    /**
     * 提现结算单状态变更
     * */
    void updateSettlementStatus(ShareSettlementBo bo);

    /**
     * 提现
     */
    BigDecimal addSettlement(Integer uid);

    /**
     * 获取用户可提现金额、已提现金额、是否可以提现
     * */
    ShareUserSettlementInfoBo getUserSettleMentInfo(Integer uid);

    /**
     * 用户登录时获取对应的渠道号
     * @param uid
     * @return
     */
    UnionShareUser queryUnionTypeByUid(int uid);

    /**
     * 用户前台获取个人推广近期订单(10个)
     * @param uid
     * @return
     */
    UnionShareOrders queryRecentlyOrderLimitTen(int uid);

    /**
     * 订单明细
     * @param orderCode
     * @return
     */
    ShareOrderBo queryOrderDetail(String orderCode);

    /**
     * 提现记录列表
     * @param uid
     * @return
     */
    List<UnionShareSettlement> querySettlementRecord(int uid, Integer start, Integer size);

    /**
     * 订单列表
     * @param unionShareOrderReqBO
     * @return
     */
    List<UnionShareOrders> queryOrderList(UnionShareOrderReqBO unionShareOrderReqBO);
}