|
@@ -33,18 +33,24 @@ public class D00009Service extends D00009BaseModel implements ExecProcessFlow {
|
|
String fileName ="";
|
|
String fileName ="";
|
|
if(stype.endsWith("Fire")){
|
|
if(stype.endsWith("Fire")){
|
|
outPath=TemplateGenerator.BPATH+"/"+aid+"/fire/out";
|
|
outPath=TemplateGenerator.BPATH+"/"+aid+"/fire/out";
|
|
- fileName ="POST"+step+"/.vtk";
|
|
|
|
|
|
+ fileName ="POST"+step+".vtk";
|
|
}
|
|
}
|
|
if(stype.endsWith("Warter")){
|
|
if(stype.endsWith("Warter")){
|
|
outPath=TemplateGenerator.BPATH+"/"+aid+"/warter/out";
|
|
outPath=TemplateGenerator.BPATH+"/"+aid+"/warter/out";
|
|
fileName ="Post"+step+".vtk";
|
|
fileName ="Post"+step+".vtk";
|
|
}
|
|
}
|
|
Path path = XIFileUtils.getAbsolutePath(outPath+"/"+fileName);
|
|
Path path = XIFileUtils.getAbsolutePath(outPath+"/"+fileName);
|
|
|
|
+ System.out.println(path.toString());
|
|
String mimeType = MFMimeTypeUtils.getMimeType(path);
|
|
String mimeType = MFMimeTypeUtils.getMimeType(path);
|
|
|
|
+ System.out.println(mimeType);
|
|
HttpServerTransFile transFile = new HttpServerTransFile(fileName, mimeType, path);
|
|
HttpServerTransFile transFile = new HttpServerTransFile(fileName, mimeType, path);
|
|
UtilTools.setHttpServerTransFile(transFile);
|
|
UtilTools.setHttpServerTransFile(transFile);
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
|
|
+ public static void main(String[] args) {
|
|
|
|
+ Path path = XIFileUtils.getAbsolutePath("D://POST12.vtk");
|
|
|
|
+ String mimeType = MFMimeTypeUtils.getMimeType(path);
|
|
|
|
+ }
|
|
/**
|
|
/**
|
|
* 基础系统,“灾情文件获取”业务前处理
|
|
* 基础系统,“灾情文件获取”业务前处理
|
|
*/
|
|
*/
|