|
@@ -10,6 +10,7 @@ import com.miniframe.httpserver.HttpServerTransFile;
|
|
|
import com.miniframe.model.system.DAccident;
|
|
|
import com.miniframe.model.system.dao.DAccidentMapper;
|
|
|
import com.miniframe.template.TemplateGenerator;
|
|
|
+import com.miniframe.tools.XIFileUtils;
|
|
|
import com.miniframe.utils.MFMimeTypeUtils;
|
|
|
|
|
|
/**
|
|
@@ -28,10 +29,13 @@ public class D000015Service extends D000015BaseModel implements ExecProcessFlow
|
|
|
DAccident accident= accidentDao.selectByPrimaryKey(aid);
|
|
|
String outPath= TemplateGenerator.BPATH+"/"+aid+"/"+accident.getJid()+"/"+accident.getStype().toLowerCase();
|
|
|
String fileName ="log.txt";
|
|
|
- Path path = Paths.get(outPath+"/"+fileName);
|
|
|
- String mimeType = MFMimeTypeUtils.getMimeType(path);
|
|
|
- HttpServerTransFile transFile = new HttpServerTransFile(fileName, mimeType, path);
|
|
|
- UtilTools.setHttpServerTransFile(transFile);
|
|
|
+
|
|
|
+ String logs =XIFileUtils.readFileAsString(outPath+"/"+fileName);
|
|
|
+ this.getD_d000015().setLogs(logs);
|
|
|
+// Path path = Paths.get(outPath+"/"+fileName);
|
|
|
+// String mimeType = MFMimeTypeUtils.getMimeType(path);
|
|
|
+// HttpServerTransFile transFile = new HttpServerTransFile(fileName, mimeType, path);
|
|
|
+// UtilTools.setHttpServerTransFile(transFile);
|
|
|
}
|
|
|
|
|
|
/**
|