|
|
@@ -1,5 +1,6 @@
|
|
|
package com.zsjz.ai.module.graph.service;
|
|
|
|
|
|
+import cn.dev33.satoken.stp.StpUtil;
|
|
|
import cn.hutool.core.collection.CollUtil;
|
|
|
import cn.hutool.core.date.LocalDateTimeUtil;
|
|
|
import cn.hutool.core.util.RandomUtil;
|
|
|
@@ -628,7 +629,8 @@ public class GraphService {
|
|
|
public GraphHis createGraphHis(String graphHisName) {
|
|
|
GraphHis graphHis = new GraphHis();
|
|
|
graphHis.setGraphName(graphHisName);
|
|
|
- String s = RandomUtil.randomString(8);
|
|
|
+ String loginIdAsString = StpUtil.getLoginIdAsString();
|
|
|
+ String s = RandomUtil.randomString(8) + loginIdAsString;
|
|
|
graphHis.setPath(PathConst.GRAPH_HIS_PATH.resolve(s + ".json").toString());
|
|
|
graphHisMapper.insert(graphHis);
|
|
|
return graphHis;
|