package cn.quantgroup.xyqb.repository;

import cn.quantgroup.user.enums.OccupationEnum;
import cn.quantgroup.xyqb.entity.UserExtInfo;
import org.springframework.data.jpa.repository.JpaRepository;

import java.sql.Timestamp;
import java.util.List;

import static cn.quantgroup.user.enums.OccupationEnum.STUDENT;

/**
 * Created by 11 on 2016/12/30.
 */
public interface IUserExtInfoRepository extends JpaRepository<UserExtInfo, Long> {
    UserExtInfo findByUserId(Long userId);


    List<UserExtInfo> findByCreatedAtAfterAndCreatedAtBeforeAndOccupationEnum(Timestamp start, Timestamp end,OccupationEnum student );
}
