|
@@ -164,9 +164,16 @@ public class ProcessController extends BaseController {
|
|
|
//获取拆旧清册数据
|
|
|
File file = new File(reserveProcess.getDemolition());
|
|
|
System.out.println("file.getAbsolutePath():" + file.getAbsolutePath());
|
|
|
- String path = file.getAbsolutePath().replace("\\a", "");
|
|
|
- System.out.println("path: " + path);
|
|
|
- File demoFile = new File(path);
|
|
|
+// String path = file.getAbsolutePath().replace("\\a", "");
|
|
|
+ String path = file.getAbsolutePath();
|
|
|
+ String newPath = "";
|
|
|
+ for (int i=0;i<path.length();i++){
|
|
|
+ if (i<2 || i>=4){
|
|
|
+ newPath += path.charAt(i);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ System.out.println("newPath: " + newPath);
|
|
|
+ File demoFile = new File(newPath);
|
|
|
|
|
|
InputStream inputStream = new FileInputStream(demoFile);
|
|
|
MultipartFile multipartFile = new MockMultipartFile("file", demoFile.getName(), null, inputStream);
|