src/main/java/com/moon/server/controller/show/ExportController.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/main/java/com/moon/server/entity/show/ExportEntity.java | ●●●●● 补丁 | 查看 | 原始文档 | 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; }