Commit 752b8190 by 苗权威

add

parent b525a320
upload.sh:将jar包上传到服务器;
start.sh:服务器上执行该文件,启动项目
\ No newline at end of file
nohup java -jar /home/ubuntu/project/tts/tts.jar > nohup.log 2>&1 &
\ No newline at end of file
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
upload.sh:将jar包上传到服务器 upload.sh:将jar包上传到服务器;
start.sh:服务器上执行该文件,启动项目 start.sh:服务器上执行该文件,启动项目
\ No newline at end of file
...@@ -189,6 +189,18 @@ public class TestBuild { ...@@ -189,6 +189,18 @@ public class TestBuild {
if (srcOver != srcReader.readRecord()) System.out.println("大小不一致"); 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<String> 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 { public static void main(String[] args) throws IOException {
String target = "/home/yf01/下载/tts/target.csv"; String target = "/home/yf01/下载/tts/target.csv";
String src = "/home/yf01/下载/齐齐-人工配音关系对于表(2).csv"; String src = "/home/yf01/下载/齐齐-人工配音关系对于表(2).csv";
...@@ -196,6 +208,7 @@ public class TestBuild { ...@@ -196,6 +208,7 @@ public class TestBuild {
String v2 = "/home/yf01/下载/qiNew.csv"; String v2 = "/home/yf01/下载/qiNew.csv";
//csvUtil(target, src, srcModify, v2); //csvUtil(target, src, srcModify, v2);
check(src, srcModify, target); //check(src, srcModify, target);
getNum(srcModify);
} }
} }
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