| | |
| | | package com.yeshi.fanli.service.inter.hongbao;
|
| | |
|
| | | import java.math.BigDecimal;
|
| | | import java.util.Date;
|
| | | import java.util.List;
|
| | |
|
| | | import org.apache.ibatis.annotations.Param;
|
| | |
|
| | | import com.yeshi.fanli.dto.HongBaoDTO;
|
| | | import com.yeshi.fanli.entity.bus.user.HongBao;
|
| | | import com.yeshi.fanli.entity.bus.user.HongBaoV2;
|
| | | import com.yeshi.fanli.entity.order.CommonOrder;
|
| | | import com.yeshi.fanli.exception.HongBaoException;
|
| | |
|
| | | public interface HongBaoV2Service {
|
| | |
|
| | |
| | | public HongBaoV2 selectByPrimaryKey(Long id);
|
| | |
|
| | | /**
|
| | | * 将老版本的红包对象转为新版本的对象
|
| | | * 添加红包
|
| | | *
|
| | | * @param hb
|
| | | * @param commonOrder
|
| | | * 订单对象
|
| | | * @param type
|
| | | * 类型
|
| | | * @throws HongBaoException
|
| | | */
|
| | | public void convert(HongBao hb);
|
| | | public void addHongBao(List<CommonOrder> commonOrder, int type) throws HongBaoException;
|
| | |
|
| | |
|
| | | /**
|
| | | * 奖金列表(1.4.9之前的版本)
|
| | | * |
| | | * @param uid
|
| | | * @param page
|
| | | * @param pageSize
|
| | | * @return
|
| | | */
|
| | | public List<HongBaoDTO> listJiangJinByUid(Long uid, int page, int pageSize);
|
| | |
|
| | | /**
|
| | | * 奖金数量(1.4.9之前的版本)
|
| | | * |
| | | * @param uid
|
| | | * @return
|
| | | */
|
| | | public long countJiangJinByUid(Long uid);
|
| | |
|
| | | /**
|
| | | * 总共的提成金额
|
| | | * |
| | | * @param uid
|
| | | * @return
|
| | | */
|
| | |
|
| | | BigDecimal getTotalTiChengMoney(Long uid);
|
| | |
|
| | | /**
|
| | | * 获取总的提成笔数
|
| | | * |
| | | * @param uid
|
| | | * @return
|
| | | */
|
| | | int getTotalTiChengCount(Long uid);
|
| | |
|
| | | /**
|
| | | * 获取还未到账的提成金额
|
| | | * |
| | | * @param uid
|
| | | * @return
|
| | | */
|
| | | BigDecimal getUnGetTiChengMoney(Long uid);
|
| | |
|
| | | /**
|
| | | * 获取总共返利金额
|
| | | * |
| | | * @param uid
|
| | | * @return
|
| | | */
|
| | | BigDecimal getTotalFanLiMoney(Long uid);
|
| | |
|
| | | /**
|
| | | * 获取还未到账的金额
|
| | | * |
| | | * @param uid
|
| | | * @return
|
| | | */
|
| | | BigDecimal getUnRecievedFanLiMoney(Long uid);
|
| | |
|
| | | /**
|
| | | * 尚未到账的金额(根据创建时间)
|
| | | * |
| | | * @param uid
|
| | | * @param minDate
|
| | | * @param maxDate
|
| | | * @return
|
| | | */
|
| | | BigDecimal getUnRecievedMoneyWithCreateTime(Long uid, Date minDate, Date maxDate);
|
| | |
|
| | | /**
|
| | | * 尚未到账的金额(根据预计领取时间)
|
| | | * |
| | | * @param uid
|
| | | * @param minDate
|
| | | * @param maxDate
|
| | | * @return
|
| | | */
|
| | | BigDecimal getUnRecievedMoneyWithPreGetTime(Long uid, Date minDate, Date maxDate);
|
| | |
|
| | | }
|