From e9d67766314f63c10b94f028cbf02482e1bf7302 Mon Sep 17 00:00:00 2001 From: glj Date: Wed, 26 Apr 2023 18:31:39 +0800 Subject: [PATCH] =?UTF-8?q?glj-=E4=BB=A3=E7=A0=81=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/kening/vordm/entity/DataUpload.java | 2 +- .../java/com/kening/vordm/controller/WordCloudsController.java | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/kn-service-api/biz-vordm-api/src/main/java/com/kening/vordm/entity/DataUpload.java b/kn-service-api/biz-vordm-api/src/main/java/com/kening/vordm/entity/DataUpload.java index 3bf1d54..95ac2d9 100644 --- a/kn-service-api/biz-vordm-api/src/main/java/com/kening/vordm/entity/DataUpload.java +++ b/kn-service-api/biz-vordm-api/src/main/java/com/kening/vordm/entity/DataUpload.java @@ -25,6 +25,6 @@ public class DataUpload extends EntityData{ private Long disasterId; private String vordmId; - + private String geometry; } diff --git a/kn-service/biz-vordm/src/main/java/com/kening/vordm/controller/WordCloudsController.java b/kn-service/biz-vordm/src/main/java/com/kening/vordm/controller/WordCloudsController.java index 50243fa..5b2a190 100644 --- a/kn-service/biz-vordm/src/main/java/com/kening/vordm/controller/WordCloudsController.java +++ b/kn-service/biz-vordm/src/main/java/com/kening/vordm/controller/WordCloudsController.java @@ -9,6 +9,7 @@ import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RestController; +import java.util.Collections; import java.util.List; import java.util.Map; @@ -32,6 +33,6 @@ public class WordCloudsController { @GetMapping("/wordCount") public R>> wordCount(@RequestParam Long disasterId){ Map> stringListMap = service.wordCount(disasterId); - return R.data(service.wordCount(disasterId)); + return R.data(stringListMap); } }