puzhibing
2026-02-04 85bafa86f44fbe6646019fd8ecbab79f552ccd0a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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);
 
}