| 12345678910111213141516171819 |
- package space.anyi.mapper;
- import space.anyi.entity.User;
- import org.apache.ibatis.annotations.Param;
- import java.util.List;
- public interface UserMapper {
- List<User> selectAll();
- List<User> 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);
- }
|