diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/ZhyPointController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/ZhyPointController.java index d9283e7..9e5ff22 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/ZhyPointController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/ZhyPointController.java @@ -381,6 +381,25 @@ public class ZhyPointController extends BaseController zhyPointService.insertZhyPoint(zhyPoint); } + ZhyDoc zhyDoc2 = new ZhyDoc(); + zhyDoc2.setGroupId(0L); + zhyDoc2.setDocLevel(3L); + List list2=test1Mapper.selectZhyDocList(zhyDoc2); + System.out.println(list2); + for (int i = 0; i < list2.size(); i++) { + ZhyPoint zhyPoint = new ZhyPoint(); + String name = list2.get(i).getDocTitle(); + + Map data = new HashMap<>(); + data.put("type", "keyword"); + int neo4jId = pointService.createPoint(name, data); + + zhyPoint.setPointName(name); + zhyPoint.setType1("keyword"); + zhyPoint.setUuid(Long.valueOf(neo4jId)); + zhyPointService.insertZhyPoint(zhyPoint); + } + return AjaxResult.success(); diff --git a/ruoyi-ui/src/views/system/small/index.vue b/ruoyi-ui/src/views/system/small/index.vue index 6949145..f26e69d 100644 --- a/ruoyi-ui/src/views/system/small/index.vue +++ b/ruoyi-ui/src/views/system/small/index.vue @@ -9,10 +9,10 @@ @keyup.enter.native="handleQuery" /> - + @@ -87,7 +87,7 @@ - +