|
@@ -227,7 +227,9 @@ public class DataService {
|
|
|
|
|
|
String sourceFile = "/data/image/" + caseId;
|
|
|
try {
|
|
|
- FileOutputStream fileOutputStream = new FileOutputStream(new File("/data/imageZip/" + caseId + ".zip"));
|
|
|
+ File dest = new File("/xinchuangdata/imageZip/" + caseId + ".zip");
|
|
|
+ if(!dest.getParentFile().exists()) { dest.getParentFile().mkdirs(); }
|
|
|
+ FileOutputStream fileOutputStream = new FileOutputStream(dest);
|
|
|
toZip(sourceFile, fileOutputStream, false);
|
|
|
} catch (FileNotFoundException e) {
|
|
|
e.printStackTrace();
|
|
@@ -238,7 +240,8 @@ public class DataService {
|
|
|
|
|
|
private void exportJson(List<BugDetail> bugDetailList, String caseId) {
|
|
|
try {
|
|
|
- File file = new File("data/output/" + caseId + "/" + caseId + ".json");
|
|
|
+ File file = new File("xinchuangdata/output/" + caseId + "/" + caseId + ".json");
|
|
|
+ if(!file.getParentFile().exists()) { file.getParentFile().mkdirs(); }
|
|
|
JSONArray jsonArray = new JSONArray(bugDetailList);
|
|
|
Writer write = new OutputStreamWriter(new FileOutputStream(file), StandardCharsets.UTF_8);
|
|
|
write.write(jsonArray.toString());
|
|
@@ -252,7 +255,8 @@ public class DataService {
|
|
|
|
|
|
private <T> void exportCsv(String[] titles, List<T> list, String caseId) {
|
|
|
try {
|
|
|
- File file = new File("data/output/" + caseId + "/" + caseId + ".csv");
|
|
|
+ File file = new File("xinchuangdata/output/" + caseId + "/" + caseId + ".csv");
|
|
|
+ if(!file.getParentFile().exists()) {file.getParentFile().mkdirs(); }
|
|
|
|
|
|
OutputStreamWriter ow = new OutputStreamWriter(new FileOutputStream(file), StandardCharsets.UTF_8);
|
|
|
|