|
@ -1,6 +1,7 @@
|
|
|
package com.yihu.wlyy.repository.address;
|
|
|
|
|
|
import com.yihu.wlyy.entity.address.Country;
|
|
|
import org.springframework.data.jpa.repository.Query;
|
|
|
import org.springframework.data.repository.PagingAndSortingRepository;
|
|
|
|
|
|
import java.util.List;
|
|
@ -9,7 +10,7 @@ import java.util.List;
|
|
|
* Created by Trick on 2017/7/20.
|
|
|
*/
|
|
|
public interface CountryDao extends PagingAndSortingRepository<Country, Long> {
|
|
|
|
|
|
@Query("from Country c where c.street=?1 AND (c.jwCode IS NOT NULL OR c.jwCode <> '')")
|
|
|
List<Country> findByStreet(String street);
|
|
|
|
|
|
Country findByCode(String code);
|