Commit 7652c619 authored by zhengfunan's avatar zhengfunan

关闭部分控制台调试输出

parent 3fddc97d
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<option name="autoReloadType" value="SELECTIVE" /> <option name="autoReloadType" value="SELECTIVE" />
</component> </component>
<component name="ChangeListManager"> <component name="ChangeListManager">
<list default="true" id="67e936c8-2d55-4655-871e-e6e153e4d8e1" name="更改" comment="读取配置文件"> <list default="true" id="67e936c8-2d55-4655-871e-e6e153e4d8e1" name="更改" comment="添加清库方法">
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" /> <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/main/java/com/tongda/tdtopo/service/TDGraphService.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/com/tongda/tdtopo/service/TDGraphService.java" afterDir="false" /> <change beforePath="$PROJECT_DIR$/src/main/java/com/tongda/tdtopo/service/TDGraphService.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/com/tongda/tdtopo/service/TDGraphService.java" afterDir="false" />
</list> </list>
...@@ -98,7 +98,7 @@ ...@@ -98,7 +98,7 @@
<workItem from="1693447950473" duration="11267000" /> <workItem from="1693447950473" duration="11267000" />
<workItem from="1693536669710" duration="10048000" /> <workItem from="1693536669710" duration="10048000" />
<workItem from="1693622693690" duration="19250000" /> <workItem from="1693622693690" duration="19250000" />
<workItem from="1693802539121" duration="3377000" /> <workItem from="1693802539121" duration="4875000" />
</task> </task>
<task id="LOCAL-00001" summary="stater版首次提交"> <task id="LOCAL-00001" summary="stater版首次提交">
<created>1693387558801</created> <created>1693387558801</created>
...@@ -142,7 +142,14 @@ ...@@ -142,7 +142,14 @@
<option name="project" value="LOCAL" /> <option name="project" value="LOCAL" />
<updated>1693809163719</updated> <updated>1693809163719</updated>
</task> </task>
<option name="localTasksCounter" value="7" /> <task id="LOCAL-00007" summary="添加清库方法">
<created>1693817703649</created>
<option name="number" value="00007" />
<option name="presentableId" value="LOCAL-00007" />
<option name="project" value="LOCAL" />
<updated>1693817703649</updated>
</task>
<option name="localTasksCounter" value="8" />
<servers /> <servers />
</component> </component>
<component name="TypeScriptGeneratedFilesManager"> <component name="TypeScriptGeneratedFilesManager">
...@@ -163,6 +170,7 @@ ...@@ -163,6 +170,7 @@
<MESSAGE value="stater版首次提交" /> <MESSAGE value="stater版首次提交" />
<MESSAGE value="修改路径" /> <MESSAGE value="修改路径" />
<MESSAGE value="读取配置文件" /> <MESSAGE value="读取配置文件" />
<option name="LAST_COMMIT_MESSAGE" value="读取配置文件" /> <MESSAGE value="添加清库方法" />
<option name="LAST_COMMIT_MESSAGE" value="添加清库方法" />
</component> </component>
</project> </project>
\ No newline at end of file
...@@ -44,7 +44,7 @@ public class TDGraphService { ...@@ -44,7 +44,7 @@ public class TDGraphService {
//清理数据 //清理数据
//MATCH (n)-[r]-() WITH r,n LIMIT 1000000 DETACH DELETE r,n RETURN count(*); //MATCH (n)-[r]-() WITH r,n LIMIT 1000000 DETACH DELETE r,n RETURN count(*);
System.out.println("接收数据开始处理:"+xml); // System.out.println("接收数据开始处理:"+xml);
long totalMilliSeconds1 = System.currentTimeMillis(); long totalMilliSeconds1 = System.currentTimeMillis();
try(Transaction transaction = graphDb.beginTx()) { try(Transaction transaction = graphDb.beginTx()) {
...@@ -93,8 +93,8 @@ public class TDGraphService { ...@@ -93,8 +93,8 @@ public class TDGraphService {
long totalMilliSeconds5 = System.currentTimeMillis(); long totalMilliSeconds5 = System.currentTimeMillis();
if (e.attributeValue("dataType") != null) { if (e.attributeValue("dataType") != null) {
String[] dataTypes = e.attributeValue("dataType").split("\\."); String[] dataTypes = e.attributeValue("dataType").split("\\.");
System.out.println(e.attributeValue("dataType")); // System.out.println(e.attributeValue("dataType"));
System.out.println(Arrays.toString(dataTypes)); // System.out.println(Arrays.toString(dataTypes));
String dataType=dataTypes[dataTypes.length-1]; String dataType=dataTypes[dataTypes.length-1];
node.setProperty("dataType",dataType); node.setProperty("dataType",dataType);
if(e.attributeValue("mode")!=null){ if(e.attributeValue("mode")!=null){
...@@ -116,7 +116,7 @@ public class TDGraphService { ...@@ -116,7 +116,7 @@ public class TDGraphService {
case "integer": { case "integer": {
int value = Integer.parseInt(e.attributeValue("value")); int value = Integer.parseInt(e.attributeValue("value"));
node.setProperty("value",value); node.setProperty("value",value);
System.out.println("-----------------------------------------"); // System.out.println("-----------------------------------------");
e.remove(e.attribute("dataType")); e.remove(e.attribute("dataType"));
e.remove(e.attribute("value")); e.remove(e.attribute("value"));
break; break;
...@@ -231,7 +231,7 @@ public class TDGraphService { ...@@ -231,7 +231,7 @@ public class TDGraphService {
transaction.success(); transaction.success();
long totalMilliSeconds13 = System.currentTimeMillis(); long totalMilliSeconds13 = System.currentTimeMillis();
System.out.println("success耗时:"+(totalMilliSeconds13-totalMilliSeconds12)); System.out.println("success耗时:"+(totalMilliSeconds13-totalMilliSeconds12));
System.out.println("提交------------------------------------------------------------------------------"); // System.out.println("提交------------------------------------------------------------------------------");
} catch (DocumentException e) { } catch (DocumentException e) {
// System.out.println(e.toString()); // System.out.println(e.toString());
throw new RuntimeException(e); throw new RuntimeException(e);
...@@ -745,7 +745,7 @@ public class TDGraphService { ...@@ -745,7 +745,7 @@ public class TDGraphService {
try(Transaction transaction = graphDb.beginTx()){ try(Transaction transaction = graphDb.beginTx()){
//添加tag条件 //添加tag条件
System.out.println(Arrays.toString(tag)); // System.out.println(Arrays.toString(tag));
String cypher="match (m"; String cypher="match (m";
for (String s: for (String s:
tag) { tag) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment