|
@@ -1,5 +1,6 @@
|
|
|
package com.miniframe.bisiness.system;
|
|
|
|
|
|
+import java.io.FileNotFoundException;
|
|
|
import java.nio.file.Path;
|
|
|
import java.nio.file.Paths;
|
|
|
import java.util.Map;
|
|
@@ -34,8 +35,12 @@ public class D000015Service extends D000015BaseModel implements ExecProcessFlow
|
|
|
String outPath= TemplateGenerator.BPATH+"/"+aid+"/"+accident.getJid()+"/"+accident.getStype().toLowerCase();
|
|
|
String fileName ="log.txt";
|
|
|
|
|
|
- String logs =XIFileUtils.readFileAsString(outPath+"/"+fileName);
|
|
|
- this.getD_d000015().setLogs(logs);
|
|
|
+ try{
|
|
|
+ String logs =XIFileUtils.readFileAsString(outPath+"/"+fileName);
|
|
|
+ this.getD_d000015().setLogs(logs);
|
|
|
+ }catch (FileNotFoundException e){
|
|
|
+ this.getD_d000015().setLogs("");
|
|
|
+ }
|
|
|
// Path path = Paths.get(outPath+"/"+fileName);
|
|
|
// String mimeType = MFMimeTypeUtils.getMimeType(path);
|
|
|
// HttpServerTransFile transFile = new HttpServerTransFile(fileName, mimeType, path);
|