Jelajahi Sumber

管道灾源

huangxingxing 1 tahun lalu
induk
melakukan
d09ccf2d6a

+ 8 - 2
src/main/java/com/miniframe/bisiness/system/D00009Service.java

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