月球大数据地理空间分析展示平台-【后端】-月球后台服务
1
13693261870
2024-11-11 fee67ca8a0760315047a52fc4101a8f4f80b7a7f
src/main/java/com/moon/server/controller/show/ExportController.java
@@ -24,12 +24,9 @@
import javax.servlet.http.HttpServletResponse;
import java.util.List;
/**
 * 在线制图
 * @author WWW
 */
@Api(tags = "综合展示\\在线制图")
@RestController
@SuppressWarnings("ALL")
@RequestMapping("/export")
public class ExportController  extends BaseController {
    @Autowired
@@ -84,8 +81,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("参数不完整");
            }