Przeglądaj źródła

修改简易版项目报告信息上传文件地址问题

user5 5 lat temu
rodzic
commit
588259e069

+ 2 - 0
src/main/java/com/jeeplus/modules/ruralprojectrecords/service/RuralProjectMessageService.java

@@ -1080,7 +1080,9 @@ public class RuralProjectMessageService extends CrudService<RuralProjectMessageD
         }else {
             projectReportDataService.save(projectReportData);
         }
+        //总工
         List<User> bzshbs = UserUtils.getByRoleActivityEnname("bzshb",3,recordsOffice.getId(),"12",projectReportData.getCreateBy());
+        //总经理
         List<User> gzrs = UserUtils.getByRoleActivityEnname("gzr",3,recordsOffice.getId(),"12",projectReportData.getCreateBy());
         if (com.jeeplus.common.utils.StringUtils.isNotBlank(workActivityMenu.getId())) {
             workProjectNotify.setNotifyRole("");

+ 3 - 3
src/main/webapp/webpage/modules/ruralprojectrecords/ruralporjectmessage/projectcontentinfo/reportForm.jsp

@@ -74,7 +74,7 @@
                 console.log(file);
                 var timestamp = new Date().getTime();
 
-                var storeAs = "attachment-file/basedData/" + timestamp + "/" + file['name'];
+                var storeAs = "newxgccpm-test/attachment-file/basedData/" + timestamp + "/" + file['name'];
                 var uploadPath = "http://gangwan-app.oss-cn-hangzhou.aliyuncs.com/" + storeAs;
                 /*将这段字符串存到数据库即可*/
                 var divId = "_attachment";
@@ -92,7 +92,7 @@
                 console.log(file);
                 var timestamp = new Date().getTime();
 
-                var storeAs = "attachment-file/basedData/" + timestamp + "/" + file['name'];
+                var storeAs = "newxgccpm-test/attachment-file/basedData/" + timestamp + "/" + file['name'];
                 var uploadPath = "http://gangwan-app.oss-cn-hangzhou.aliyuncs.com/" + storeAs;
                 /*将这段字符串存到数据库即可*/
                 var divId = "_gistdata";
@@ -110,7 +110,7 @@
                 console.log(file);
                 var timestamp = new Date().getTime();
 
-                var storeAs = "attachment-file/basedData/" + timestamp + "/" + file['name'];
+                var storeAs = "newxgccpm-test/attachment-file/basedData/" + timestamp + "/" + file['name'];
                 var uploadPath = "http://gangwan-app.oss-cn-hangzhou.aliyuncs.com/" + storeAs;
                 /*将这段字符串存到数据库即可*/
                 var divId = "_other";

+ 3 - 3
src/main/webapp/webpage/modules/ruralprojectrecords/ruralporjectmessage/projectcontentinfo/reportModify.jsp

@@ -74,7 +74,7 @@
                 console.log(file);
                 var timestamp = new Date().getTime();
 
-                var storeAs = "attachment-file/basedData/" + timestamp + "/" + file['name'];
+                var storeAs = "newxgccpm-test/attachment-file/basedData/" + timestamp + "/" + file['name'];
                 var uploadPath = "http://gangwan-app.oss-cn-hangzhou.aliyuncs.com/" + storeAs;
                 /*将这段字符串存到数据库即可*/
                 var divId = "_attachment";
@@ -92,7 +92,7 @@
                 console.log(file);
                 var timestamp = new Date().getTime();
 
-                var storeAs = "attachment-file/basedData/" + timestamp + "/" + file['name'];
+                var storeAs = "newxgccpm-test/attachment-file/basedData/" + timestamp + "/" + file['name'];
                 var uploadPath = "http://gangwan-app.oss-cn-hangzhou.aliyuncs.com/" + storeAs;
                 /*将这段字符串存到数据库即可*/
                 var divId = "_gistdata";
@@ -110,7 +110,7 @@
                 console.log(file);
                 var timestamp = new Date().getTime();
 
-                var storeAs = "attachment-file/basedData/" + timestamp + "/" + file['name'];
+                var storeAs = "newxgccpm-test/attachment-file/basedData/" + timestamp + "/" + file['name'];
                 var uploadPath = "http://gangwan-app.oss-cn-hangzhou.aliyuncs.com/" + storeAs;
                 /*将这段字符串存到数据库即可*/
                 var divId = "_other";