|
@@ -167,10 +167,13 @@ public class ProcessController extends BaseController {
|
|
String projectReserveId = reserveProcess.getProjectReserveId();
|
|
String projectReserveId = reserveProcess.getProjectReserveId();
|
|
demoliteService.deleteByProjectReserveId(projectReserveId);
|
|
demoliteService.deleteByProjectReserveId(projectReserveId);
|
|
//获取拆旧清册数据
|
|
//获取拆旧清册数据
|
|
|
|
+ //String index out of range: -1 这个异常一般是截取字符串时报的错误。
|
|
File file = new File(reserveProcess.getDemolition());
|
|
File file = new File(reserveProcess.getDemolition());
|
|
String path = file.getAbsolutePath();
|
|
String path = file.getAbsolutePath();
|
|
- int index = file.getAbsolutePath().indexOf("\\fileServer");
|
|
|
|
- path = path.substring(index);
|
|
|
|
|
|
+// int index = file.getAbsolutePath().indexOf("\\fileServer");
|
|
|
|
+ int index = file.getAbsolutePath().indexOf("fileServer");
|
|
|
|
+// path = path.substring(index);
|
|
|
|
+ path = path.substring(index-1);
|
|
|
|
|
|
File demoFile = new File(path);
|
|
File demoFile = new File(path);
|
|
|
|
|