package com.reyun.repository;

import com.reyun.model.AccountRestrict4Web;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.transaction.annotation.Transactional;

/**
 * Created by song on 2018/2/12.
 */
@Transactional
public interface AccountRestrict4WebRepository extends JpaRepository<AccountRestrict4Web, Long> {
    @Query(value = "select * from account_restrict4web where account_id=?1", nativeQuery = true)
    AccountRestrict4Web findByAccountId(Long account);
}
