liusuyi
2026-04-22 04a270ff2b5919127524913ffc45c59c6c6d9201
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
package com.ard.data.region.mapper;
 
import com.ard.data.region.domain.ArdDeptRegion;
import com.ard.data.region.domain.ConflictRegion;
import org.apache.ibatis.annotations.Param;
 
import java.util.List;
 
/**
 * 部门区域Mapper接口
 * 
 * @author ruoyi
 */
public interface ArdDeptRegionMapper
{
    /**
     * 查询部门区域
     */
    public ArdDeptRegion selectArdDeptRegionById(Long id);
    
    /**
     * 查询部门区域列表
     */
    public List<ArdDeptRegion> selectArdDeptRegionList(ArdDeptRegion ardDeptRegion);
    
    /**
     * 新增部门区域
     */
    public int insertArdDeptRegion(ArdDeptRegion ardDeptRegion);
    
    /**
     * 修改部门区域
     */
    public int updateArdDeptRegion(ArdDeptRegion ardDeptRegion);
 
    /**
     * 启用/禁用区域
     */
    public int updateStatus(@Param("id") Long id, @Param("status") String status);
 
    /**
     * 删除部门区域
     */
    public int deleteArdDeptRegionById(Long id);
    
    /**
     * 批量删除部门区域
     */
    public int deleteArdDeptRegionByIds(String[] ids);
 
    /**
     * 根据区域名称查询区域(用于唯一性校验)
     */
    public ArdDeptRegion checkRegionNameUnique(@Param("regionName") String regionName);
 
 
    /**
     * 检查点冲突(1个坐标)
     */
    public List<ConflictRegion> checkPointConflict(@Param("deptId") Long deptId,
                                                   @Param("wkt") String wkt,
                                                   @Param("excludeId") Long excludeId);
 
    /**
     * 检查线冲突(2个坐标)
     */
    public List<ConflictRegion> checkLineConflict(@Param("deptId") Long deptId,
                                                  @Param("wkt") String wkt,
                                                  @Param("excludeId") Long excludeId);
 
    /**
     * 检查面冲突(3个以上坐标)
     */
    public List<ConflictRegion> checkPolygonConflict(@Param("deptId") Long deptId,
                                                     @Param("wkt") String wkt,
                                                     @Param("excludeId") Long excludeId);
    
    /**
     * 获取边界WKT
     */
    public String selectBoundaryWkt(@Param("id") Long id);
    
    /**
     * 根据坐标查询所属区域
     */
    public ArdDeptRegion selectRegionByPoint(@Param("pointWkt") String pointWkt);
    
 
}