| | |
| | | package com.yeshi.fanli.dao.mybatis.user; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.dao.BaseMapper; |
| | | import com.yeshi.fanli.entity.bus.user.UserCustomSettings; |
| | | |
| | | public interface UserCustomSettingsMapper extends BaseMapper<UserCustomSettings> { |
| | | |
| | | /** |
| | | * 获取我的所有自定义设置 |
| | | * |
| | | * @param uid |
| | | * @return |
| | | */ |
| | | List<UserCustomSettings> getSettingsByUid(Long uid); |
| | | |
| | | /** |
| | | * 获取设置信息 |
| | | * |
| | | * @param uid |
| | | * 用户id |
| | | * @param type |
| | | * 类型 |
| | | * @return |
| | | */ |
| | | UserCustomSettings getSettingsByUidAndType(@Param("uid") Long uid, @Param("type") String type); |
| | | |
| | | List<Long> getUserID(@Param("type") String type); |
| | | |
| | | /** |
| | | * 通过用户ID,类型,状态检索 |
| | | * |
| | | * @param uidList |
| | | * @param type |
| | | * @param state |
| | | * @return |
| | | */ |
| | | List<UserCustomSettings> listByUidListAndTypeAndState(@Param("uidList") List<Long> uidList, |
| | | @Param("type") String type, @Param("state") Integer state); |
| | | |
| | | package com.yeshi.fanli.dao.mybatis.user;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import org.apache.ibatis.annotations.Param;
|
| | |
|
| | | import com.yeshi.fanli.dao.BaseMapper;
|
| | | import com.yeshi.fanli.entity.bus.user.UserCustomSettings;
|
| | |
|
| | | public interface UserCustomSettingsMapper extends BaseMapper<UserCustomSettings> {
|
| | |
|
| | | /**
|
| | | * 获取我的所有自定义设置
|
| | | * |
| | | * @param uid
|
| | | * @return
|
| | | */
|
| | | List<UserCustomSettings> getSettingsByUid(Long uid);
|
| | |
|
| | | /**
|
| | | * 获取设置信息
|
| | | * |
| | | * @param uid
|
| | | * 用户id
|
| | | * @param type
|
| | | * 类型
|
| | | * @return
|
| | | */
|
| | | UserCustomSettings getSettingsByUidAndType(@Param("uid") Long uid, @Param("type") String type);
|
| | |
|
| | | List<Long> getUserID(@Param("type") String type);
|
| | |
|
| | | /**
|
| | | * 通过用户ID,类型,状态检索
|
| | | * |
| | | * @param uidList
|
| | | * @param type
|
| | | * @param state
|
| | | * @return
|
| | | */
|
| | | List<UserCustomSettings> listByUidListAndTypeAndState(@Param("uidList") List<Long> uidList,
|
| | | @Param("type") String type, @Param("state") Integer state);
|
| | |
|
| | | } |