소스 검색

更新文件目录

chenendian 2 달 전
부모
커밋
34cf232012

+ 1 - 1
siwei-modules/siwei-apply/src/main/java/com/siwei/apply/controller/JsgcghxkController.java

@@ -104,7 +104,7 @@ public class JsgcghxkController extends BaseController {
     /**
     /**
      * 更新建设工程规划许可的上链状态
      * 更新建设工程规划许可的上链状态
      */
      */
-    @PutMapping("ain")
+    @PutMapping("onchain")
     public R<Void> updateHasOnchain(@RequestBody OnChainVo onChainVo) {
     public R<Void> updateHasOnchain(@RequestBody OnChainVo onChainVo) {
         try {
         try {
             if(CollectionUtils.isEmpty(onChainVo.getIds())){
             if(CollectionUtils.isEmpty(onChainVo.getIds())){

+ 5 - 1
siwei-modules/siwei-apply/src/main/java/com/siwei/apply/service/impl/NodeAttachmentImpl.java

@@ -489,6 +489,10 @@ public class NodeAttachmentImpl implements NodeAttachmentService {
                     }
                     }
                 }//end for
                 }//end for
             }
             }
+
+            if(CollectionUtils.isNotEmpty(currentAttachmentList)){
+                currentAttachmentList.forEach(o->o.put("physicalFlag", "0"));
+            }
             //这里构建当前节点的附件信息
             //这里构建当前节点的附件信息
 //            Map<String, Object> currentNodeAttachmentMap = new LinkedHashMap<>();
 //            Map<String, Object> currentNodeAttachmentMap = new LinkedHashMap<>();
 //            currentNodeAttachmentMap.put("name", name);
 //            currentNodeAttachmentMap.put("name", name);
@@ -498,7 +502,7 @@ public class NodeAttachmentImpl implements NodeAttachmentService {
 //            currentNodeAttachmentMap.put("children", currentAttachmentList);
 //            currentNodeAttachmentMap.put("children", currentAttachmentList);
             //获取当前的节点
             //获取当前的节点
             Map<String, Object> currentNodeAttachmentMap = ServiceUtil.getDirChildrenMap(name,nodeAttachment);
             Map<String, Object> currentNodeAttachmentMap = ServiceUtil.getDirChildrenMap(name,nodeAttachment);
-            currentNodeAttachmentMap.put("physicalFlag", "0");
+            //currentNodeAttachmentMap.put("physicalFlag", "0");
             currentNodeAttachmentMap.put("children", currentAttachmentList);
             currentNodeAttachmentMap.put("children", currentAttachmentList);
             attachmentChildrenList.add(currentNodeAttachmentMap);
             attachmentChildrenList.add(currentNodeAttachmentMap);
         }
         }

+ 1 - 1
siwei-modules/siwei-apply/src/main/java/com/siwei/apply/utils/FileExtractUtil.java

@@ -209,7 +209,6 @@ public class FileExtractUtil {
             Map<String, Object> structure = new HashMap<>();
             Map<String, Object> structure = new HashMap<>();
             structure.put("name", directory.getFileName().toString());
             structure.put("name", directory.getFileName().toString());
             structure.put("type", Files.isDirectory(directory) ? "directory" : "file");
             structure.put("type", Files.isDirectory(directory) ? "directory" : "file");
-            structure.put("physicalFlag", "1");
             structure.put("path", directory.toString());
             structure.put("path", directory.toString());
             
             
             if (Files.isDirectory(directory)) {
             if (Files.isDirectory(directory)) {
@@ -255,6 +254,7 @@ public class FileExtractUtil {
         Map<String, Object> structure =  new LinkedHashMap<>();
         Map<String, Object> structure =  new LinkedHashMap<>();
         structure.put("name", file.getFileName().toString());
         structure.put("name", file.getFileName().toString());
         structure.put("type", "file");
         structure.put("type", "file");
+        structure.put("physicalFlag", "1");
         structure.put("path", file.toString());
         structure.put("path", file.toString());
         
         
         try {
         try {

+ 6 - 6
siwei-modules/siwei-apply/src/main/resources/one_code_index_v1.json

@@ -14,10 +14,10 @@
             "children": [
             "children": [
                 {
                 {
                     "id": "bbf078180cc34b83b639c2dd95842296",
                     "id": "bbf078180cc34b83b639c2dd95842296",
-                    "label": "用地预审与选址意见书",
-                    "title": "用地预审与选址意见书",
+                    "label": "用地预审与选址意见书-新",
+                    "title": "用地预审与选址意见书-新",
                     "type": "wms",
                     "type": "wms",
-                    "url": "http://192.168.60.220:8090/geoserver/siwei_workspace/wms?service=WMS&version=1.1.0&request=GetMap&layers=siwei_workspace%3Ac_one_code_geom001&bbox=115.84467869332723%2C28.91651771292333%2C115.84799503916403%2C28.919477034878152&width=768&height=685&srs=EPSG%3A4326&styles=&format=application/openlayers",
+                    "url": "http://192.168.60.220:8090/geoserver/c_one_code/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=c_one_code%3Ac_one_code_ydysyxz&maxFeatures=50",
                     "source": "",
                     "source": "",
                     "legend": "",
                     "legend": "",
                     "favorite": null,
                     "favorite": null,
@@ -84,10 +84,10 @@
                 },
                 },
                 {
                 {
                   "id": "a484b75e2ac24016a62ccbef76c8b138",
                   "id": "a484b75e2ac24016a62ccbef76c8b138",
-                  "label": "建设工程规划许可证",
-                  "title": "建设工程规划许可证",
+                  "label": "建设工程规划许可证-新",
+                  "title": "建设工程规划许可证-新",
                   "type": "wms",
                   "type": "wms",
-                  "url": "http://192.168.60.220:8090/geoserver/siwei_workspace/wms?service=WMS&version=1.1.0&request=GetMap&layers=siwei_workspace%3Ac_000a1&bbox=116.30515511897768%2C39.88039472036522%2C116.47375775284452%2C39.951341728969965&width=768&height=330&srs=EPSG%3A4326&styles=&format=application/openlayers",
+                  "url": "http://192.168.60.220:8090/geoserver/c_one_code/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=c_one_code%3Ac_one_code_jsgcghxk&maxFeatures=50",
                   "source": null,
                   "source": null,
                   "legend": null,
                   "legend": null,
                   "favorite": null,
                   "favorite": null,