MyBatis接口UserMapper

public interface UserMapper {
    int add(User user);
    int update(User user);
    int delete(int id);
    List findAll();
    User findById(int id);
    List page(@Param("offset")int offset,@Param("size")int size);
    User find(int id);

    User findByIdWithTag(int userId);
    int batchSaveUser(@Param("userList") List userList);
}

你可能感兴趣的:(MyBatis接口UserMapper)