月球大数据地理空间分析展示平台-【后端】-月球后台服务
090fb818449aab9edfe5ceedfa0cb10f3bd563e8..0e0a1bd791339f84abdb78d4c8def32a1b467b78
2023-10-12 13693261870
出图添加图层id集合属性
0e0a1b 对比 | 目录
2023-10-11 13693261870
解决获取数简任务状态报错
81cabd 对比 | 目录
已修改4个文件
33 ■■■■■ 文件已修改
src/main/java/com/moon/server/entity/show/ExportEntity.java 17 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/moon/server/helper/HttpHelper.java 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/moon/server/service/data/ShuJianService.java 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/application.yml 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/moon/server/entity/show/ExportEntity.java
@@ -4,13 +4,14 @@
import lombok.NoArgsConstructor;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
/**
 * 在线制图
 * @author WWW
 */
@AllArgsConstructor
@NoArgsConstructor
public class ExportEntity implements Serializable {
    private static final long serialVersionUID = -2104359582441796685L;
@@ -40,7 +41,11 @@
    private double xmax;
    private String wmtsUrl;
    private List<Integer> layerIds;
    public ExportEntity() {
        this.layerIds = new ArrayList<>();
    }
    public String getToken() {
        return token;
@@ -146,11 +151,11 @@
        this.xmax = xmax;
    }
    public String getWmtsUrl() {
        return wmtsUrl;
    public List<Integer> getLayerIds() {
        return layerIds;
    }
    public void setWmtsUrl(String wmtsUrl) {
        this.wmtsUrl = wmtsUrl;
    public void setLayerIds(List<Integer> layerIds) {
        this.layerIds = layerIds;
    }
}
src/main/java/com/moon/server/helper/HttpHelper.java
@@ -270,6 +270,10 @@
        if (null == entity) {
            return;
        }
        if (null == res) {
            entity.writeTo(response.getOutputStream());
            return;
        }
        switch (res.getCategory()) {
            case 2:
src/main/java/com/moon/server/service/data/ShuJianService.java
@@ -12,6 +12,7 @@
import com.moon.server.helper.HttpHelper;
import com.moon.server.helper.RestHelper;
import com.moon.server.helper.StringHelper;
import com.moon.server.helper.WebHelper;
import com.moon.server.service.sys.LayerService;
import com.moon.server.service.sys.ResService;
import org.apache.commons.logging.Log;
@@ -91,6 +92,7 @@
            httpHelper.service(req, res, null, url);
        } catch (Exception ex) {
            log.error(ex.getMessage(), ex);
            WebHelper.writeJson2Page(res,ex.getMessage());
        }
    }
@@ -105,6 +107,7 @@
            httpHelper.service(req, res, null, url);
        } catch (Exception ex) {
            log.error(ex.getMessage(), ex);
            WebHelper.writeJson2Page(res,ex.getMessage());
        }
    }
@@ -119,6 +122,7 @@
            httpHelper.service(req, res, null, url);
        } catch (Exception ex) {
            log.error(ex.getMessage(), ex);
            WebHelper.writeJson2Page(res,ex.getMessage());
        }
    }
src/main/resources/application.yml
@@ -46,12 +46,12 @@
  datasource:
    name: prod
    # JDBC 基本配置 &currentSchema=public
    #url: jdbc:postgresql://127.0.0.1:5433/moon?useAffectedRows=true
    url: jdbc:postgresql://192.168.20.83:5433/moon?useAffectedRows=true
    url: jdbc:postgresql://127.0.0.1:5433/moon?useAffectedRows=true
    #url: jdbc:postgresql://192.168.20.83:5433/moon?useAffectedRows=true
    #url: jdbc:postgresql://103.85.165.99:25432/moon?useAffectedRows=true
    username: postgres
    password: Postgres!_14_moon
    #password: postgres
    #password: Postgres!_14_moon
    password: postgres
    driver-class-name: org.postgresql.Driver
    platform: POSTGRESQL
    type: com.alibaba.druid.pool.DruidDataSource