| | |
| | | package com.yeshi.fanli.service.inter.tlj;
|
| | |
|
| | | import java.math.BigDecimal;
|
| | | import java.util.Date;
|
| | | import java.util.List;
|
| | |
|
| | | import com.yeshi.fanli.entity.bus.tlj.UserTaoLiJinRecord;
|
| | | import com.yeshi.goods.facade.entity.taobao.TaoBaoGoodsBrief;
|
| | | import com.yeshi.fanli.exception.tlj.UserTaoLiJinRecordException;
|
| | | import com.yeshi.fanli.vo.user.UserTaoLiJinRecordVO;
|
| | |
|
| | | public interface UserTaoLiJinRecordService {
|
| | |
|
| | | /**
|
| | | * 创建淘礼金
|
| | | * @param origin 用户使用类型: 1 自购 、 2 分享 |
| | | * @param uid
|
| | | * @param auctionId
|
| | | * @param totalNum
|
| | | * @param perface
|
| | | * @throws UserTaoLiJinRecordException
|
| | | */
|
| | | public UserTaoLiJinRecord createUserTaoLiJin(int origin, Long uid, Long auctionId, BigDecimal perface, int totalNum, String name, Date sendStartTime,
|
| | | Date sendEndTime, Date useStartTime, Date useEndTime,String pid) throws UserTaoLiJinRecordException;
|
| | |
|
| | | |
| | | /**
|
| | | * 查询用户分享淘礼金记录
|
| | | * @param start
|
| | | * @param count
|
| | | * @param uid
|
| | | * @return
|
| | | * @throws UserTaoLiJinRecordException
|
| | | */
|
| | | public List<UserTaoLiJinRecordVO> getRecordByUid(long start, int count, Long uid);
|
| | |
|
| | | /**
|
| | | * 统计创建记录条数
|
| | | * @param uid
|
| | | * @return
|
| | | */
|
| | | public long countShareRecordByUid(Long uid);
|
| | | |
| | |
|
| | | /**
|
| | | * 统计创建次数
|
| | | * @param uid
|
| | | * @return
|
| | | */
|
| | | public long countRecordByUid(Long uid);
|
| | |
|
| | | /**
|
| | | * 今日创建分享红包个数
|
| | | * @param uid
|
| | | * @return
|
| | | */
|
| | | public long countTodayNum(Long uid);
|
| | |
|
| | | /**
|
| | | * 查询推广红包
|
| | | * @param uid
|
| | | * @param goodsId
|
| | | * @return
|
| | | */
|
| | | public BigDecimal getShareHongBaoByUidAndGoodsId(Long uid, Long goodsId);
|
| | |
|
| | |
|
| | | /**
|
| | | * 根据红包id 查询
|
| | | * @param rightsId
|
| | | * @return
|
| | | */
|
| | | public UserTaoLiJinRecord getByRightsId(String rightsId);
|
| | |
|
| | |
|
| | | public UserTaoLiJinRecord selectByPrimaryKey(Long id);
|
| | |
|
| | | /**
|
| | | * 自购创建红包
|
| | | * @param uid
|
| | | * @param totalNum
|
| | | * @param goods
|
| | | * @return
|
| | | * @throws UserTaoLiJinRecordException
|
| | | */
|
| | | public UserTaoLiJinRecord createSelfBuyTaoLiJin(Long uid, BigDecimal couplePrice, TaoBaoGoodsBrief goods)
|
| | | throws UserTaoLiJinRecordException;
|
| | |
|
| | | /**
|
| | | * 分享创建红包
|
| | | * @param uid
|
| | | * @param totalNum
|
| | | * @param goods
|
| | | * @return
|
| | | * @throws UserTaoLiJinRecordException
|
| | | */
|
| | | public UserTaoLiJinRecord createShareTaoLiJin(Long uid, int totalNum, TaoBaoGoodsBrief goods)
|
| | | throws UserTaoLiJinRecordException;
|
| | |
|
| | |
|
| | | /**
|
| | | * 赠送推广红包
|
| | | * @param uid
|
| | | * @param amount
|
| | | * @return
|
| | | * @throws UserTaoLiJinRecordException
|
| | | */
|
| | | public String giveTaolijin(Long uid, BigDecimal amount) throws UserTaoLiJinRecordException;
|
| | | |
| | | |
| | | }
|
| | |
|
| | | package com.yeshi.fanli.service.inter.tlj; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | import com.yeshi.fanli.entity.bus.tlj.UserTaoLiJinRecord; |
| | | import com.yeshi.goods.facade.entity.taobao.TaoBaoGoodsBrief; |
| | | import com.yeshi.fanli.exception.tlj.UserTaoLiJinRecordException; |
| | | import com.yeshi.fanli.vo.user.UserTaoLiJinRecordVO; |
| | | |
| | | public interface UserTaoLiJinRecordService { |
| | | |
| | | /** |
| | | * 创建淘礼金 |
| | | * @param origin 用户使用类型: 1 自购 、 2 分享 |
| | | * @param uid |
| | | * @param auctionId |
| | | * @param totalNum |
| | | * @param perface |
| | | * @throws UserTaoLiJinRecordException |
| | | */ |
| | | public UserTaoLiJinRecord createUserTaoLiJin(int origin, Long uid, String auctionId, BigDecimal perface, int totalNum, String name, Date sendStartTime, |
| | | Date sendEndTime, Date useStartTime, Date useEndTime,String pid) throws UserTaoLiJinRecordException; |
| | | |
| | | |
| | | /** |
| | | * 查询用户分享淘礼金记录 |
| | | * @param start |
| | | * @param count |
| | | * @param uid |
| | | * @return |
| | | * @throws UserTaoLiJinRecordException |
| | | */ |
| | | public List<UserTaoLiJinRecordVO> getRecordByUid(long start, int count, Long uid); |
| | | |
| | | /** |
| | | * 统计创建记录条数 |
| | | * @param uid |
| | | * @return |
| | | */ |
| | | public long countShareRecordByUid(Long uid); |
| | | |
| | | |
| | | /** |
| | | * 统计创建次数 |
| | | * @param uid |
| | | * @return |
| | | */ |
| | | public long countRecordByUid(Long uid); |
| | | |
| | | /** |
| | | * 今日创建分享红包个数 |
| | | * @param uid |
| | | * @return |
| | | */ |
| | | public long countTodayNum(Long uid); |
| | | |
| | | /** |
| | | * 查询推广红包 |
| | | * @param uid |
| | | * @param goodsId |
| | | * @return |
| | | */ |
| | | public BigDecimal getShareHongBaoByUidAndGoodsId(Long uid, Long goodsId); |
| | | |
| | | |
| | | /** |
| | | * 根据红包id 查询 |
| | | * @param rightsId |
| | | * @return |
| | | */ |
| | | public UserTaoLiJinRecord getByRightsId(String rightsId); |
| | | |
| | | |
| | | public UserTaoLiJinRecord selectByPrimaryKey(Long id); |
| | | |
| | | /** |
| | | * 自购创建红包 |
| | | * @param uid |
| | | * @param totalNum |
| | | * @param goods |
| | | * @return |
| | | * @throws UserTaoLiJinRecordException |
| | | */ |
| | | public UserTaoLiJinRecord createSelfBuyTaoLiJin(Long uid, BigDecimal couplePrice, TaoBaoGoodsBrief goods) |
| | | throws UserTaoLiJinRecordException; |
| | | |
| | | /** |
| | | * 分享创建红包 |
| | | * @param uid |
| | | * @param totalNum |
| | | * @param goods |
| | | * @return |
| | | * @throws UserTaoLiJinRecordException |
| | | */ |
| | | public UserTaoLiJinRecord createShareTaoLiJin(Long uid, int totalNum, TaoBaoGoodsBrief goods) |
| | | throws UserTaoLiJinRecordException; |
| | | |
| | | |
| | | /** |
| | | * 赠送推广红包 |
| | | * @param uid |
| | | * @param amount |
| | | * @return |
| | | * @throws UserTaoLiJinRecordException |
| | | */ |
| | | public String giveTaolijin(Long uid, BigDecimal amount) throws UserTaoLiJinRecordException; |
| | | |
| | | |
| | | } |
| | | |