package space.anyi.mapper; import space.anyi.entity.User; import org.apache.ibatis.annotations.Param; import java.util.List; public interface UserMapper { List selectAll(); List selectByCondition(@Param("name") String name, @Param("gender") Integer gender, @Param("studentId") String studentId); User selectById(Long id); User selectByUsername(String username); int insert(User user); int update(User user); int updateAvatar(User user); int deleteById(Long id); int countActiveAssignmentsByUserId(Long userId); }