|
@@ -220,7 +220,7 @@ public class DataService {
|
|
|
|
|
|
private File exportJson(List<BugDetail> bugDetailList, String caseId){
|
|
|
try {
|
|
|
- File file = new File("data/output" + caseId + ".json");
|
|
|
+ File file = new File("data/output/" + caseId + ".json");
|
|
|
JSONArray jsonArray=new JSONArray(bugDetailList);
|
|
|
Writer write = new OutputStreamWriter(new FileOutputStream(file), StandardCharsets.UTF_8);
|
|
|
write.write(jsonArray.toString());
|
|
@@ -236,7 +236,7 @@ public class DataService {
|
|
|
|
|
|
private <T> File exportCsv(String[] titles, List<T> list,String caseId) {
|
|
|
try {
|
|
|
- File file = new File("data/output"+caseId+".csv");
|
|
|
+ File file = new File("data/output/"+caseId+".csv");
|
|
|
//构建输出流,同时指定编码
|
|
|
OutputStreamWriter ow = new OutputStreamWriter(new FileOutputStream(file), StandardCharsets.UTF_8);
|
|
|
//csv文件是逗号分隔,除第一个外,每次写入一个单元格数据后需要输入逗号
|