浏览代码

储备项目新-工作流代码提交

user5 2 年之前
父节点
当前提交
93b90fc499

+ 10 - 3
src/main/java/com/jeeplus/modules/cg/reservemanagementcenter/reserveManage/web/ProcessController.java

@@ -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);

+ 1 - 0
src/main/webapp/webpage/modules/sg/raiseCapital/raiseCapital.js

@@ -275,6 +275,7 @@ $(document).ready(function() {
 					item += $(this).attr("id")+":"+val+";"
 				}
 			})
+			console.log(item)
 			//将item提交,遍历后保存数据
 			if(projectName == null || projectName == ""){
 				jp.error("项目名称不能为空!");