From 752b81901ce633f2e8d13fef661b660e6b7abe87 Mon Sep 17 00:00:00 2001 From: 苗权威 <1160292058@qq.com> Date: Thu, 26 Sep 2019 21:12:10 +0800 Subject: [PATCH] add --- .idea/workspace.xml | 175 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-------------------------------------------------------------------------------------------------------- tts_service/readme.md | 2 ++ tts_service/start.sh | 1 + tts_service/upload.sh | 1 + xiaoai/readme.md | 2 +- xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/pojo/TestBuild.java | 15 ++++++++++++++- 6 files changed, 90 insertions(+), 106 deletions(-) create mode 100644 tts_service/readme.md create mode 100644 tts_service/start.sh create mode 100644 tts_service/upload.sh diff --git a/.idea/workspace.xml b/.idea/workspace.xml index dfedfe8..a90f492 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -2,28 +2,7 @@ - - - - - - - - - - - - - - - - - - - - - @@ -67,19 +46,6 @@ - - - - - - - - - - - - - @@ -94,26 +60,8 @@ - - - - - - - - - - - - - - - - - - - - + + @@ -135,8 +83,18 @@ - - + + + + + + + + + + + + @@ -222,9 +180,6 @@ @@ -337,6 +295,11 @@ + + + + + @@ -363,7 +326,7 @@ - + @@ -929,7 +892,7 @@ - + @@ -939,7 +902,7 @@ - @@ -970,7 +933,7 @@ - + @@ -1037,34 +1000,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -1374,13 +1309,6 @@ - - - - - - - @@ -1405,10 +1333,20 @@ - + + + + + + + + + + + - - + + @@ -1419,10 +1357,39 @@ - + + + + + + + + + + + + + + + - + + + + + + + + + + + + + + + + diff --git a/tts_service/readme.md b/tts_service/readme.md new file mode 100644 index 0000000..a52844e --- /dev/null +++ b/tts_service/readme.md @@ -0,0 +1,2 @@ +upload.sh:将jar包上传到服务器; +start.sh:服务器上执行该文件,启动项目 \ No newline at end of file diff --git a/tts_service/start.sh b/tts_service/start.sh new file mode 100644 index 0000000..4f85f5d --- /dev/null +++ b/tts_service/start.sh @@ -0,0 +1 @@ +nohup java -jar /home/ubuntu/project/tts/tts.jar > nohup.log 2>&1 & \ No newline at end of file diff --git a/tts_service/upload.sh b/tts_service/upload.sh new file mode 100644 index 0000000..6c4d2d6 --- /dev/null +++ b/tts_service/upload.sh @@ -0,0 +1 @@ +scp -P 22222 /usr/local/intellij/workplace/smartbox/tts_service/target/tts.jar ubuntu@aws-nx2.chewrobot.com:/home/ubuntu/project/tts/ \ No newline at end of file diff --git a/xiaoai/readme.md b/xiaoai/readme.md index 3f6661d..a52844e 100644 --- a/xiaoai/readme.md +++ b/xiaoai/readme.md @@ -1,2 +1,2 @@ -upload.sh:将jar包上传到服务器 +upload.sh:将jar包上传到服务器; start.sh:服务器上执行该文件,启动项目 \ No newline at end of file diff --git a/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/pojo/TestBuild.java b/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/pojo/TestBuild.java index b5e3e90..0704c3b 100644 --- a/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/pojo/TestBuild.java +++ b/xiaoduhome/src/main/java/ai/qiwu/com/xiaoduhome/pojo/TestBuild.java @@ -189,6 +189,18 @@ public class TestBuild { if (srcOver != srcReader.readRecord()) System.out.println("大小不一致"); } + public static void getNum(String target) throws IOException { + CsvReader srcReader = new CsvReader(target, ',',Charset.forName("UTF-8")); + srcReader.readHeaders(); + HashSet set = new HashSet<>(); + while (srcReader.readRecord()) { + String[] arr = srcReader.getRawRecord().split(","); + if (arr.length != 4) continue; + set.add(arr[0]); + } + System.out.println(set.size()); + } + public static void main(String[] args) throws IOException { String target = "/home/yf01/下载/tts/target.csv"; String src = "/home/yf01/下载/齐齐-人工配音关系对于表(2).csv"; @@ -196,6 +208,7 @@ public class TestBuild { String v2 = "/home/yf01/下载/qiNew.csv"; //csvUtil(target, src, srcModify, v2); - check(src, srcModify, target); + //check(src, srcModify, target); + getNum(srcModify); } } -- libgit2 0.27.1