|
@@ -1,6 +1,7 @@
|
|
|
package com.miniframe.bisiness.system;
|
|
|
|
|
|
import java.nio.file.Path;
|
|
|
+import java.nio.file.Paths;
|
|
|
import java.util.Map;
|
|
|
import com.miniframe.core.ExecProcessFlow;
|
|
|
import com.miniframe.core.exception.BusinessException;
|
|
@@ -39,7 +40,7 @@ public class D00009Service extends D00009BaseModel implements ExecProcessFlow {
|
|
|
outPath=TemplateGenerator.BPATH+"/"+aid+"/warter/out";
|
|
|
fileName ="Post"+step+".vtk";
|
|
|
}
|
|
|
- Path path = XIFileUtils.getAbsolutePath(outPath+"/"+fileName);
|
|
|
+ Path path = Paths.get(outPath+"/"+fileName);
|
|
|
System.out.println(path.toString());
|
|
|
String mimeType = MFMimeTypeUtils.getMimeType(path);
|
|
|
System.out.println(mimeType);
|
|
@@ -50,6 +51,7 @@ public class D00009Service extends D00009BaseModel implements ExecProcessFlow {
|
|
|
public static void main(String[] args) {
|
|
|
Path path = XIFileUtils.getAbsolutePath("D://POST12.vtk");
|
|
|
String mimeType = MFMimeTypeUtils.getMimeType(path);
|
|
|
+ System.out.println(mimeType);
|
|
|
}
|
|
|
/**
|
|
|
* 基础系统,“灾情文件获取”业务前处理
|