Bladeren bron

先把结构提了

Veronique 2 jaren geleden
bovenliggende
commit
099b1bc5c7

+ 4 - 2
conf/esTemplate/storeplatform.json

@@ -72,10 +72,12 @@
         "index": "not_analyzed"
       },
       "platformShopGeoLat": {
-        "type": "double"
+        "type": "text",
+        "index": "not_analyzed"
       },
       "platformShopGeoLng": {
-        "type": "double"
+        "type": "text",
+        "index": "not_analyzed"
       },
       "createBy": {
         "type": "long"

+ 6 - 6
ddCommon/src/main/java/com/dderp/common/entity/store/StorePlatform.java

@@ -57,11 +57,11 @@ public class StorePlatform extends BaseEntity {
 
     @Comment("绑定平台中的门店Lat")
     @RColumn("platformshopgeolat")
-    private double platformShopGeoLat;
+    private String platformShopGeoLat;
 
     @Comment("绑定平台中的门店Lng")
     @RColumn("platformshopgeolng")
-    private double platformShopGeoLng;
+    private String platformShopGeoLng;
 
     @Comment("已填写的开通各平台需求的信息")
     private List<StorePlatformRequire> requireList = new ArrayList<>();
@@ -162,19 +162,19 @@ public class StorePlatform extends BaseEntity {
         this.platformShopPhone = platformShopPhone;
     }
 
-    public double getPlatformShopGeoLat() {
+    public String getPlatformShopGeoLat() {
         return platformShopGeoLat;
     }
 
-    public void setPlatformShopGeoLat(double platformShopGeoLat) {
+    public void setPlatformShopGeoLat(String platformShopGeoLat) {
         this.platformShopGeoLat = platformShopGeoLat;
     }
 
-    public double getPlatformShopGeoLng() {
+    public String getPlatformShopGeoLng() {
         return platformShopGeoLng;
     }
 
-    public void setPlatformShopGeoLng(double platformShopGeoLng) {
+    public void setPlatformShopGeoLng(String platformShopGeoLng) {
         this.platformShopGeoLng = platformShopGeoLng;
     }
 }