package com.mindskip.xzs.repository; import com.mindskip.xzs.domain.other.KeyValue; import com.mindskip.xzs.domain.User; import com.mindskip.xzs.viewmodel.admin.user.UserPageRequestVM; import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Param; import java.util.List; import java.util.Map; /** * @version 2.2.0 * @description: 用户 * Copyright (C), 2020-2021, 武汉思维跳跃科技有限公司 * @date 2021 /9/7 9:45 */ @Mapper public interface UserMapper extends BaseMapper { int deleteByPrimaryKey(Integer id); int insert(User record); int insertSelective(User record); User selectByPrimaryKey(Integer id); int updateByPrimaryKeySelective(User record); int updateByPrimaryKey(User record); /** * 获取所有用户 * * @return List all user */ List getAllUser(); /** * 根据id获取用户 * * @param id id * @return User user by id */ User getUserById(Integer id); /** * 根据用户名获取用户 * * @param username username * @return User user by user name */ User getUserByUserName(String username); /** * 根据用户名、密码,获取用户 * * @param username username * @param pwd pwd * @return User user by user name pwd */ User getUserByUserNamePwd(@Param("username") String username, @Param("pwd") String pwd); /** * 根据uuid获取用户 * * @param uuid uuid * @return User user by uuid */ User getUserByUuid(String uuid); /** * 用户分页 * * @param map userPageList * @return List list */ List userPageList(Map map); /** * 用户数量 * * @param map map * @return Integer integer */ Integer userPageCount(Map map); /** * 用户分页 * * @param requestVM requestVM * @return List list */ List userPage(UserPageRequestVM requestVM); /** * 插入用户 * * @param user user */ void insertUser(User user); /** * 批量插入用户 * * @param users users */ void insertUsers(List users); /** * 更新用户 * * @param user user */ void updateUser(User user); /** * 更新用户年龄 * * @param map map */ void updateUsersAge(Map map); /** * 批量删除用户 * * @param ids ids */ void deleteUsersByIds(List ids); /** * 插入用户 * * @param user user */ void insertUserSql(User user); /** * 获取所有用户数量 * * @return the integer */ Integer selectAllCount(); /** * 根据用户名获取用户 * * @param userName the user name * @return the list */ List selectByUserName(String userName); /** * 根据id获取用户 * * @param ids the ids * @return the list */ List selectByIds(List ids); /** * 根据微信open获取用户 * * @param wxOpenId the wx open id * @return the user */ User selectByWxOpenId(@Param("wxOpenId") String wxOpenId); }