|
|
|
@ -381,6 +381,25 @@ public class ZhyPointController extends BaseController |
|
|
|
zhyPointService.insertZhyPoint(zhyPoint); |
|
|
|
} |
|
|
|
|
|
|
|
ZhyDoc zhyDoc2 = new ZhyDoc(); |
|
|
|
zhyDoc2.setGroupId(0L); |
|
|
|
zhyDoc2.setDocLevel(3L); |
|
|
|
List<ZhyDoc> 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<String, Object> 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(); |
|
|
|
|