oyq28 пре 1 година
родитељ
комит
5ae60b8df1
1 измењених фајлова са 2 додато и 1 уклоњено
  1. 2 1
      src/main/java/com/imcs/admin/page/controller/CommonController.java

+ 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);
             }
         }