ADISaleMapRepository.java 595 Bytes
Newer Older
manxiaoqiang committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
package office.repository;

import office.model.ADISaleMap;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;


/**
 * Created by nolan on 06/06/2017.
 * description:
 */
public interface ADISaleMapRepository
    extends JpaRepository<ADISaleMap, Long>
{
    @Query(value = "select * from adisale_map where account=?1", nativeQuery = true)
    ADISaleMap findByAccountId(Long account);

    @Query(value = "select * from adisale_map where account_email=?1", nativeQuery = true)
    ADISaleMap findByAccountEmail(String email);
}