| New file |
| | |
| | | package com.xiaopeng.map.repository; |
| | | |
| | | import com.xiaopeng.map.vo.XpGeoFencingPolygon; |
| | | import org.springframework.data.mongodb.repository.MongoRepository; |
| | | import org.springframework.stereotype.Repository; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * MongoDB Repository for XpGeoFencingPolygon |
| | | * @author zhibing.pu |
| | | * @date 2023/4/29 23:53 |
| | | */ |
| | | @Repository |
| | | public interface XpGeoFencingPolygonRepository extends MongoRepository<XpGeoFencingPolygon, String> { |
| | | |
| | | /** |
| | | * 根据围栏id查询 |
| | | * @param siteId 围栏id |
| | | * @return 围栏信息 |
| | | */ |
| | | XpGeoFencingPolygon findBySiteId(Integer siteId); |
| | | |
| | | /** |
| | | * 根据围栏名称查询 |
| | | * @param name 围栏名称 |
| | | * @return 围栏列表 |
| | | */ |
| | | List<XpGeoFencingPolygon> findByName(String name); |
| | | |
| | | } |