admin
2021-06-05 10ceb8fd7972048310188cc4d4646ab86cd69cb9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
package com.ks.vip.service;
 
 
import com.ks.vip.exception.VipGradePotenceException;
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 long count(VipGradePotence t);
 
   public List<VipGradePotence> listByPage(int page, int pageSize, VipGradePotence t);
 
   public void insertSelective(VipGradePotence t);
 
   public void updateByPrimaryKeySelective(VipGradePotence t);
 
   public VipGradePotence selectByPrimaryKey(Long id);
 
   public void delete(Long id);
 
   /**
    * 查询权限: 根据时间筛选
    * @param gradeId
    * @param time
    * @return
    */
   public VipGradePotence getByGradeIdAndTime(Long gradeId, Date time);
 
 
   /**
    * 查询当前等级权利
    * @param gradeId
    * @return
    */
   public VipGradePotence getCurrentByGradeId(Long gradeId);
 
 
   /**
    * 获取默认权益
    * @return
    */
   public VipGradePotence getDefaultGradePotence();
 
 
   /**
    * 根据枚举类型查询权益
    * @param vipEnum
    * @return
    */
   public VipGradePotence getPotenceByVipEnum(VIPEnum vipEnum);
 
   /**
    * 根据会员类型查询权益-以及时间查询
    * @param vipEnum
    * @param time
    * @return
    */
   public VipGradePotence getPotenceByVipEnum(VIPEnum vipEnum, Date time);
 
   /**
    * 保存
    * @param t
    * @throws VipGradePotenceException
    */
   public void add(VipGradePotence t) throws VipGradePotenceException;
}