package com.ruzhoukj.sms.dao; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.ruzhoukj.sms.entity.ProjectEntity; import com.ruzhoukj.sms.entity.UserEntity; import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Param; import java.util.List; /** * @author sxx * @version 1.0 * @create 2024-08-27 10:00 */ @Mapper public interface UserDao extends BaseMapper { /** * 查询用户列表 * * @return UserEntity */ List getUserList(@Param("name") String name, @Param("page") Integer page, @Param("pageSize") Integer pageSize); UserEntity getUserByUsernameAndPassword(@Param("name") String name, @Param("password") String password); /** * 根据项目leader查询用户 * * @param projectLeader projectLeader * @return UserEntity */ UserEntity getUserByLeader(@Param("projectLeader") String projectLeader); /** * 根据用户id查询用户有权查看的项目 * * @param id id * @return List */ List listProjectByUserId(@Param("id") String id); }