| | |
| | | package com.yeshi.fanli.dao.mybatis.activity; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.dao.BaseMapper; |
| | | import com.yeshi.fanli.entity.bus.activity.ActivityRuleUser; |
| | | |
| | | public interface ActivityRuleUserMapper extends BaseMapper<ActivityRuleUser> { |
| | | |
| | | /** |
| | | * 根据用户ID与规则码查询 |
| | | * |
| | | * @param userId |
| | | * @param ruleCode |
| | | * @return |
| | | */ |
| | | ActivityRuleUser selectByUserIdAndRuleCode(@Param("userId") Long userId, @Param("ruleCode") int ruleCode); |
| | | |
| | | /** |
| | | * 根据角色获取列表 |
| | | * |
| | | * @param ruleCode |
| | | * @param start |
| | | * @param count |
| | | * @return |
| | | */ |
| | | List<ActivityRuleUser> listByRuleCode(@Param("ruleCode")Integer ruleCode,@Param("start") int start,@Param("count") int count); |
| | | |
| | | /** |
| | | * 根据 |
| | | * @param ruleCode |
| | | * @return |
| | | */ |
| | | long countByRuleCode(Integer ruleCode); |
| | | |
| | | package com.yeshi.fanli.dao.mybatis.activity;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import org.apache.ibatis.annotations.Param;
|
| | |
|
| | | import com.yeshi.fanli.dao.BaseMapper;
|
| | | import com.yeshi.fanli.entity.bus.activity.ActivityRuleUser;
|
| | |
|
| | | public interface ActivityRuleUserMapper extends BaseMapper<ActivityRuleUser> {
|
| | |
|
| | | /**
|
| | | * 根据用户ID与规则码查询
|
| | | * |
| | | * @param userId
|
| | | * @param ruleCode
|
| | | * @return
|
| | | */
|
| | | ActivityRuleUser selectByUserIdAndRuleCode(@Param("userId") Long userId, @Param("ruleCode") int ruleCode);
|
| | |
|
| | | /**
|
| | | * 根据角色获取列表
|
| | | * |
| | | * @param ruleCode
|
| | | * @param start
|
| | | * @param count
|
| | | * @return
|
| | | */
|
| | | List<ActivityRuleUser> listByRuleCode(@Param("ruleCode")Integer ruleCode,@Param("start") int start,@Param("count") int count);
|
| | |
|
| | | /**
|
| | | * 根据
|
| | | * @param ruleCode
|
| | | * @return
|
| | | */
|
| | | long countByRuleCode(Integer ruleCode);
|
| | |
|
| | | } |