Quellcode durchsuchen

文件 文档管理

oyq28 vor 1 Jahr
Ursprung
Commit
5ae60b8df1

+ 2 - 1
src/main/java/com/imcs/admin/page/controller/CommonController.java

@@ -236,7 +236,8 @@ public class CommonController {
             Matcher matcher = pattern.matcher(contractFile);
             if (matcher.find()) {
                 String extractedString = matcher.group(1);
-                jdbcService.update("更新","update sys_file set business_type = ? where id = ? ",businessType,extractedString);
+                String filePath="/admin/download/"+extractedString+"/"+contractFile.substring(contractFile.lastIndexOf('/') + 1);
+                jdbcService.update("更新","update sys_file set business_type = ?,file_path=? where id = ? ",businessType,filePath,extractedString);
             }
         }