From 940f728e89f389cc1a5955ba4523190eb80b8f9d Mon Sep 17 00:00:00 2001 From: jzy <928294064@qq.com> Date: Tue, 4 Nov 2025 15:32:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=AD=E5=BF=83=E8=AF=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../web/controller/system/ZhyPointController.java | 19 +++++++++++++++++++ ruoyi-ui/src/views/system/small/index.vue | 6 +++--- 2 files changed, 22 insertions(+), 3 deletions(-) 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 @@ - +