月球大数据地理空间分析展示平台-【后端】-月球后台服务
13693261870
2023-10-31 b8c401d88d6e2c982c466ff79d8cf3e3a5d4dcf5
修改图层判断条件
已修改2个文件
28 ■■■■ 文件已修改
src/main/java/com/moon/server/controller/show/ExportController.java 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/moon/server/entity/show/ExportEntity.java 24 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/moon/server/controller/show/ExportController.java
@@ -84,8 +84,8 @@
    @PostMapping(value = "/insertMap", produces = "application/json; charset=UTF-8")
    public ResponseMsg<String> insertMap(@RequestBody ExportEntity entity, HttpServletRequest req) {
        try {
            boolean flag = entity.getXmin() == 0 && entity.getYmin() == 0 && entity.getXmax() == 0 && entity.getYmax() == 0;
            if (StringHelper.isEmpty(entity.getLayers()) || StringHelper.isEmpty(entity.getToken()) || flag) {
            boolean flag = entity.getXmin() == null && entity.getYmin() == null && entity.getXmax() == null && entity.getYmax() == null;
            if (StringHelper.isEmpty(entity.getToken()) || flag) {
                return fail("参数不完整");
            }
src/main/java/com/moon/server/entity/show/ExportEntity.java
@@ -33,13 +33,13 @@
    private double rotation;
    private double xmin;
    private Double xmin;
    private double ymin;
    private Double ymin;
    private double ymax;
    private Double ymax;
    private double xmax;
    private Double xmax;
    private List<Integer> layerIds;
@@ -119,35 +119,35 @@
        this.rotation = rotation;
    }
    public double getXmin() {
    public Double getXmin() {
        return xmin;
    }
    public void setXmin(double xmin) {
    public void setXmin(Double xmin) {
        this.xmin = xmin;
    }
    public double getYmin() {
    public Double getYmin() {
        return ymin;
    }
    public void setYmin(double ymin) {
    public void setYmin(Double ymin) {
        this.ymin = ymin;
    }
    public double getYmax() {
    public Double getYmax() {
        return ymax;
    }
    public void setYmax(double ymax) {
    public void setYmax(Double ymax) {
        this.ymax = ymax;
    }
    public double getXmax() {
    public Double getXmax() {
        return xmax;
    }
    public void setXmax(double xmax) {
    public void setXmax(Double xmax) {
        this.xmax = xmax;
    }