管道基础大数据平台系统开发-【后端】-Server
1
13693261870
2023-02-15 1189a5e9dc34b0fc4553d0e4730b934d33e3c885
src/main/java/com/lf/server/service/show/DataLibService.java
@@ -42,8 +42,8 @@
    /**
     * 查询DB中溢出的单位ID
     */
    public List<Integer> selectDbOverflowDep(UserEntity ue, List<String> entities, String wkt) {
        List<Integer> rs = new ArrayList<>();
    public List<String> selectDbOverflowDep(UserEntity ue, List<String> entities, String wkt) {
        List<String> rs = new ArrayList<>();
        for (String enity : entities) {
            try {
                GeomBaseMapper<?> baseMapper = ClassHelper.getGeoBaseMapper(enity);
@@ -62,7 +62,7 @@
                    wrapper.apply(String.format("ST_Intersects(ST_PolygonFromText('%s', %d), geom)", wkt, srid));
                }
                List<Integer> ids = baseMapper.selectObjs(wrapper);
                List<String> ids = baseMapper.selectObjs(wrapper);
                addDepIds(rs, ids);
            } catch (Exception ex) {
@@ -76,12 +76,12 @@
    /**
     * 添加单位ID
     */
    private void addDepIds(List<Integer> rs, List<Integer> ids) {
    private void addDepIds(List<String> rs, List<String> ids) {
        if (null == ids || ids.isEmpty()) {
            return;
        }
        for (Integer id : ids) {
        for (String id : ids) {
            if (!rs.contains(id)) {
                rs.add(id);
            }