| | |
| | | import com.ks.vip.pojo.DO.VipGradePotence; |
| | | import com.ks.vip.pojo.Enums.VIPEnum; |
| | | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | public interface VipGradePotenceService { |
| | |
| | | public void delete(Long id); |
| | | |
| | | /** |
| | | * 根据等级Id查询权益 |
| | | * 查询权限: 根据时间筛选 |
| | | * @param gradeId |
| | | * @param time |
| | | * @return |
| | | */ |
| | | public VipGradePotence getByGradeIdAndTime(Long gradeId, Date time); |
| | | |
| | | |
| | | /** |
| | | * 查询当前等级权利 |
| | | * @param gradeId |
| | | * @return |
| | | */ |
| | | public VipGradePotence getPotenceByGradeId(Long gradeId); |
| | | public VipGradePotence getCurrentByGradeId(Long gradeId); |
| | | |
| | | |
| | | /** |
| | |
| | | public VipGradePotence getPotenceByVipEnum(VIPEnum vipEnum); |
| | | |
| | | /** |
| | | * 根据会员类型查询权益-以及时间查询 |
| | | * @param vipEnum |
| | | * @param time |
| | | * @return |
| | | */ |
| | | public VipGradePotence getPotenceByVipEnum(VIPEnum vipEnum, Date time); |
| | | |
| | | /** |
| | | * 保存 |
| | | * @param t |
| | | * @throws VipGradePotenceException |
| | | */ |
| | | public void save(VipGradePotence t) throws VipGradePotenceException; |
| | | public void add(VipGradePotence t) throws VipGradePotenceException; |
| | | } |