添加了城市dao层的信息,和有关的sql语句
This commit is contained in:
parent
cd1888041a
commit
5de2d50145
@ -1,6 +1,6 @@
|
|||||||
package com.xkrs.dao;
|
package com.xkrs.dao;
|
||||||
|
|
||||||
import com.xkrs.entity.City;
|
import com.xkrs.model.entity.CityEntity;
|
||||||
import org.springframework.data.jpa.repository.JpaRepository;
|
import org.springframework.data.jpa.repository.JpaRepository;
|
||||||
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
|
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
|
||||||
import org.springframework.data.jpa.repository.Query;
|
import org.springframework.data.jpa.repository.Query;
|
||||||
@ -12,7 +12,7 @@ import java.util.List;
|
|||||||
* @author xkrs
|
* @author xkrs
|
||||||
*/
|
*/
|
||||||
@Component
|
@Component
|
||||||
public interface CityDao extends JpaRepository<City,Long>, JpaSpecificationExecutor<City> {
|
public interface CityDao extends JpaRepository<CityEntity,Long>, JpaSpecificationExecutor<CityEntity> {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 根据省编码查询城市有关信息
|
* 根据省编码查询城市有关信息
|
||||||
|
Loading…
Reference in New Issue
Block a user