|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import com.baomidou.mybatisplus.core.mapper.BaseMapper; | 
|---|
|  |  |  | import com.matrix.system.score.entity.ScoreVipDetail; | 
|---|
|  |  |  | import org.apache.ibatis.annotations.Param; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import java.util.List; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | * @param vipId | 
|---|
|  |  |  | * @return | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | int selectUserTotalScore(String openId, Long vipId); | 
|---|
|  |  |  | int selectUserTotalScore(@Param("vipId")Long vipId); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 查询用户有效的积分,按时间顺序排 | 
|---|
|  |  |  | * @param userId | 
|---|
|  |  |  | * @param | 
|---|
|  |  |  | * @return | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | List<ScoreVipDetail> selectEffectiveScore(String openId); | 
|---|
|  |  |  | List<ScoreVipDetail> selectEffectiveScore(@Param("vipId")Long vipId); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | List<ScoreVipDetail> selectInvalidaVipScore(); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | int invalidVipScore(); | 
|---|
|  |  |  | } | 
|---|