Kaynağa Gözat

增加业务类型

chenendian 1 ay önce
ebeveyn
işleme
2b8932988d

+ 9 - 0
onemap-modules/onemap-apply/src/main/java/com/onemap/apply/domain/yzt/ZymlTreeDataDTO.java

@@ -19,6 +19,7 @@ public class ZymlTreeDataDTO {
     private String url;
     private String source;
     private String legend;
+    private String ywlx;
     private String favorite;
     private Boolean disabled = false;
     private Boolean checked = false;
@@ -105,6 +106,14 @@ public class ZymlTreeDataDTO {
         this.label = label;
     }
 
+    public String getYwlx() {
+        return ywlx;
+    }
+
+    public void setYwlx(String ywlx) {
+        this.ywlx = ywlx;
+    }
+
     public Boolean getDisabled() {
         return disabled;
     }

+ 5 - 2
onemap-modules/onemap-apply/src/main/java/com/onemap/apply/service/impl/yzt/ZymlServiceImpl.java

@@ -117,6 +117,7 @@ public class ZymlServiceImpl implements IZymlService {
                 c.setTitle(cur.getName());
                 c.setType(cur.getType());
                 c.setLegend(cur.getLegend());
+                c.setYwlx(cur.getYwlx());
                 c.setUrlOld(cur.getUrlOld());
                 c.setUrl(cur.getUrl());
                 c.setSource(cur.getSde());
@@ -683,8 +684,10 @@ public class ZymlServiceImpl implements IZymlService {
 
     @Override
     public JSONArray getResourceData() throws IOException {
-        java.net.URL fileURL = this.getClass().getResource("/iserver_service_url_v1.json");
-        String fileName = fileURL.getPath();
+        //java.net.URL fileURL = this.getClass().getResource("C:\\Users\\Administrator\\Desktop\\06\\aaa\\iserver_service_url_v1.json");
+        //String fileName = fileURL.getPath();
+        //String fileName = "C:\\Users\\Administrator\\Desktop\\06\\aaa\\iserver_service_url_v1.json";
+        String fileName = "D:\\jar\\baseModulesApply\\dir\\iserver_service_url_v1.json";
         String configStr = FileUtils.readFileToString(new File(fileName), StandardCharsets.UTF_8);
         JSONArray res = JSON.parseArray(configStr);
         return res;

+ 18 - 0
onemap-modules/onemap-apply/src/main/resources/iserver_service_url_v1.json

@@ -20,6 +20,7 @@
         "url": "http://192.168.60.87:8090/iserver/services/3D-SanYaQingXieMoXing/rest/realspace",
         "source": null,
         "legend": null,
+        "ywlx": null,
         "favorite": null,
         "disabled": false,
         "checked": false,
@@ -34,6 +35,7 @@
         "url": "http://192.168.60.87:8090/iserver/services/3D-HeBingShuiMianDSM/rest/realspace",
         "source": null,
         "legend": null,
+        "ywlx": null,
         "favorite": null,
         "disabled": false,
         "checked": false,
@@ -47,6 +49,22 @@
         "type": "S3M",
         "url": "http://192.168.60.87:8090/iserver/services/3D-LOD13/rest/realspace",
         "source": "",
+        "ywlx": null,
+        "legend": "",
+        "favorite": null,
+        "disabled": false,
+        "checked": false,
+        "expand": false,
+        "contextmenu": false
+      },
+      {
+        "id": "4",
+        "label": "6栋楼精细单体",
+        "title": "6栋楼精细单体",
+        "type": "S3M",
+        "url": "http://192.168.60.87:8090/iserver/services/3D-6DongLou/rest/realspace",
+        "source": "",
+        "ywlx": null,
         "legend": "",
         "favorite": null,
         "disabled": false,