| | |
| | | package com.yeshi.fanli.service.inter.user.vip;
|
| | |
|
| | | import java.util.Date;
|
| | |
|
| | | import com.yeshi.fanli.entity.bus.user.vip.UserVIPPreInfo;
|
| | | import com.yeshi.fanli.exception.user.vip.UserVIPInfoException;
|
| | | import com.yeshi.fanli.exception.user.vip.UserVIPPreInfoException;
|
| | |
|
| | | /**
|
| | | * 阶段VIP用户服务
|
| | | * |
| | | * @author Administrator
|
| | | *
|
| | | */
|
| | | public interface UserVIPPreInfoService {
|
| | |
|
| | | /**
|
| | | * 添加用户VIP阶段信息
|
| | | * |
| | | * @param info
|
| | | * @throws UserVIPInfoException
|
| | | */
|
| | | public void addUserVIPPreInfo(UserVIPPreInfo info) throws UserVIPPreInfoException;
|
| | |
|
| | | /**
|
| | | * 获取最新的进度
|
| | | * |
| | | * @param uid
|
| | | * @return
|
| | | */
|
| | | public UserVIPPreInfo getLatestProcessInfo(Long uid);
|
| | | |
| | | /**
|
| | | * 获取某个时间的进度
|
| | | * |
| | | * @param uid
|
| | | * @return
|
| | | */
|
| | | public UserVIPPreInfo getProcessInfo(Long uid,Date time);
|
| | |
|
| | | |
| | | /**
|
| | | * 根据用户ID与步骤查询
|
| | | * @Title: selectByUidAndProcess
|
| | | * @Description: |
| | | * @param uid
|
| | | * @param process
|
| | | * @return |
| | | * UserVIPPreInfo 返回类型
|
| | | * @throws
|
| | | */
|
| | | |
| | | public UserVIPPreInfo selectByUidAndProcess(Long uid,int process);
|
| | |
|
| | | |
| | | /**
|
| | | * 查询进度根据不同阶段
|
| | | * @param uid
|
| | | * @param process
|
| | | * @return
|
| | | * @throws UserVIPPreInfoException
|
| | | */
|
| | | public UserVIPPreInfo getVipByProcess(Long uid, int process);
|
| | |
|
| | | |
| | |
|
| | | /**
|
| | | * 自购+ 分享订单到账 满足升级验证
|
| | | * @param uid
|
| | | */
|
| | | public void upgradeVipByMyOrder(Long uid);
|
| | |
|
| | |
|
| | | /**
|
| | | * 验证自身是否满足vip条件
|
| | | * @param uid |
| | | */
|
| | | public void upgradeVipByTeamNum(Long uid);
|
| | | |
| | | |
| | | /**
|
| | | * 粉丝完成收货-验证直接-间接粉丝
|
| | | * @param uid 粉丝id
|
| | | */
|
| | | public void upgradeBossVipByTeamNum(Long uid);
|
| | | |
| | | |
| | | |
| | | |
| | | /**
|
| | | * 根据主键删除
|
| | | * @Title: deleteByPrimaryKey
|
| | | * @Description: |
| | | * @param id |
| | | * void 返回类型
|
| | | * @throws
|
| | | */
|
| | | public void deleteByPrimaryKey(Long id);
|
| | |
|
| | | }
|
| | | package com.yeshi.fanli.service.inter.user.vip; |
| | | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | import com.yeshi.fanli.entity.bus.user.vip.UserVIPPreInfo; |
| | | import com.yeshi.fanli.exception.user.vip.UserVIPInfoException; |
| | | import com.yeshi.fanli.exception.user.vip.UserVIPPreInfoException; |
| | | import com.yeshi.fanli.exception.user.vip.UserVIPUpgradeException; |
| | | |
| | | /** |
| | | * 阶段VIP用户服务 |
| | | * |
| | | * @author Administrator |
| | | * |
| | | */ |
| | | public interface UserVIPPreInfoService { |
| | | |
| | | /** |
| | | * 添加用户VIP阶段信息 |
| | | * |
| | | * @param info |
| | | * @throws UserVIPInfoException |
| | | */ |
| | | public void addUserVIPPreInfo(UserVIPPreInfo info) throws UserVIPPreInfoException; |
| | | |
| | | /** |
| | | * 获取最新的进度 |
| | | * |
| | | * @param uid |
| | | * @return |
| | | */ |
| | | public UserVIPPreInfo getLatestProcessInfo(Long uid); |
| | | |
| | | /** |
| | | * 获取某个时间的进度 |
| | | * |
| | | * @param uid |
| | | * @return |
| | | */ |
| | | public UserVIPPreInfo getProcessInfo(Long uid, Date time); |
| | | |
| | | /** |
| | | * 根据用户ID与步骤查询 |
| | | * @Title: selectByUidAndProcess |
| | | * @Description: |
| | | * @param uid |
| | | * @param process |
| | | * @return |
| | | * UserVIPPreInfo 返回类型 |
| | | * @throws |
| | | */ |
| | | |
| | | public UserVIPPreInfo selectByUidAndProcess(Long uid, int process); |
| | | |
| | | /** |
| | | * 查询进度根据不同阶段 |
| | | * @param uid |
| | | * @param process |
| | | * @return |
| | | * @throws UserVIPPreInfoException |
| | | */ |
| | | public UserVIPPreInfo getVipByProcess(Long uid, int process); |
| | | |
| | | /** |
| | | * 自购+ 分享订单到账 满足升级验证 |
| | | * @param uid |
| | | */ |
| | | public void upgradeVipByMyOrder(Long uid) throws UserVIPUpgradeException; |
| | | |
| | | /** |
| | | * 验证自身是否满足vip条件 |
| | | * @param uid |
| | | */ |
| | | public void upgradeVipByTeamNum(Long uid) throws UserVIPUpgradeException; |
| | | |
| | | /** |
| | | * 粉丝完成收货-验证直接-间接粉丝 |
| | | * @param uid 粉丝id |
| | | */ |
| | | public void upgradeBossVipByTeamNum(Long uid) throws UserVIPUpgradeException; |
| | | |
| | | /** |
| | | * 根据主键删除 |
| | | * @Title: deleteByPrimaryKey |
| | | * @Description: |
| | | * @param id |
| | | * void 返回类型 |
| | | * @throws |
| | | */ |
| | | public void deleteByPrimaryKey(Long id); |
| | | |
| | | /** |
| | | * 根据时间与过程查询 |
| | | * @Title: listByProcess |
| | | * @Description: |
| | | * @param process |
| | | * @param minTime |
| | | * @param maxTime |
| | | * @param page |
| | | * @param pageSize |
| | | * @return |
| | | * List<UserVIPPreInfo> 返回类型 |
| | | * @throws |
| | | */ |
| | | public List<UserVIPPreInfo> listByProcess(int process, Date minTime, Date maxTime, int page, int pageSize); |
| | | |
| | | public long countByProcess(int process, Date minTime, Date maxTime); |
| | | |
| | | } |