package com.reyun.repository;

import com.reyun.model.UserViewColumn;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

/**
 * Created by nolan on 28/12/2016.
 * description:
 */
public interface UserViewColumnRepository extends JpaRepository<UserViewColumn, Long> {

    @Query(value = "select a from UserViewColumn a where a.account = ?1")
    UserViewColumn findByAccount(Long accountid);
}
