From c24610fc01a6ccc14709006930cdb90191451ec8 Mon Sep 17 00:00:00 2001
From: 13693261870 <252740454@qq.com>
Date: 星期二, 31 十月 2023 11:22:20 +0800
Subject: [PATCH] 解决标绘映射问题

---
 src/main/java/com/moon/server/entity/show/MarkEntity.java             |   18 +++++++++---------
 src/main/java/com/moon/server/service/data/RasterAnalysisService.java |    2 +-
 src/main/java/com/moon/server/controller/show/MarkController.java     |    2 ++
 3 files changed, 12 insertions(+), 10 deletions(-)

diff --git a/src/main/java/com/moon/server/controller/show/MarkController.java b/src/main/java/com/moon/server/controller/show/MarkController.java
index a933529..d703d2f 100644
--- a/src/main/java/com/moon/server/controller/show/MarkController.java
+++ b/src/main/java/com/moon/server/controller/show/MarkController.java
@@ -99,6 +99,7 @@
     @ApiImplicitParams({
             @ApiImplicitParam(name = "entity", value = "瀹炰綋绫�", dataType = "MarkEntity", paramType = "body")
     })
+    @ResponseBody
     @PostMapping(value = "/insert", produces = "application/json; charset=UTF-8")
     public ResponseMsg<Integer> insert(@RequestBody MarkEntity entity, HttpServletRequest req) {
         try {
@@ -120,6 +121,7 @@
     @ApiImplicitParams({
             @ApiImplicitParam(name = "list", value = "瀹炰綋绫婚泦鍚�", dataType = "MarkEntity", paramType = "body")
     })
+    @ResponseBody
     @PostMapping(value = "/inserts", produces = "application/json; charset=UTF-8")
     public ResponseMsg<Integer> inserts(@RequestBody List<MarkEntity> list, HttpServletRequest req) {
         try {
diff --git a/src/main/java/com/moon/server/entity/show/MarkEntity.java b/src/main/java/com/moon/server/entity/show/MarkEntity.java
index ed0c7b6..d5606cc 100644
--- a/src/main/java/com/moon/server/entity/show/MarkEntity.java
+++ b/src/main/java/com/moon/server/entity/show/MarkEntity.java
@@ -10,28 +10,28 @@
 public class MarkEntity implements Serializable {
     private static final long serialVersionUID = -865286612354818048L;
 
-    private int id;
+    private Integer id;
 
     private String name;
 
     private String wkt;
 
-    private int createUser;
+    private Integer createUser;
 
     private Timestamp createTime;
 
-    private int updateUser;
+    private Integer updateUser;
 
     private Timestamp updateTime;
 
     public MarkEntity() {
     }
 
-    public int getId() {
+    public Integer getId() {
         return id;
     }
 
-    public void setId(int id) {
+    public void setId(Integer id) {
         this.id = id;
     }
 
@@ -51,11 +51,11 @@
         this.wkt = wkt;
     }
 
-    public int getCreateUser() {
+    public Integer getCreateUser() {
         return createUser;
     }
 
-    public void setCreateUser(int createUser) {
+    public void setCreateUser(Integer createUser) {
         this.createUser = createUser;
     }
 
@@ -67,11 +67,11 @@
         this.createTime = createTime;
     }
 
-    public int getUpdateUser() {
+    public Integer getUpdateUser() {
         return updateUser;
     }
 
-    public void setUpdateUser(int updateUser) {
+    public void setUpdateUser(Integer updateUser) {
         this.updateUser = updateUser;
     }
 
diff --git a/src/main/java/com/moon/server/service/data/RasterAnalysisService.java b/src/main/java/com/moon/server/service/data/RasterAnalysisService.java
index 58db30b..2df3695 100644
--- a/src/main/java/com/moon/server/service/data/RasterAnalysisService.java
+++ b/src/main/java/com/moon/server/service/data/RasterAnalysisService.java
@@ -136,7 +136,7 @@
         map.put("analysisForPost", entity);
 
         String json = JSONObject.toJSONString(map);
-        // System.out.println(json)
+        //System.out.println(json)
 
         WebSocketService.broadCastInfo(json);
     }

--
Gitblit v1.9.3