1
0
Quellcode durchsuchen

文件前缀去掉2

chenendian vor 2 Tagen
Ursprung
Commit
6b14db707f

+ 1 - 1
siwei-modules/siwei-apply/src/main/java/com/siwei/apply/utils/ServiceFileUtil.java

@@ -108,7 +108,7 @@ public class ServiceFileUtil {
         }
 
         //这里拼接文件名,把前缀去掉
-        String tmpFileName = file.getFileName().toString().replaceAll("^[0-9]+[_]{1}","");
+        String tmpFileName = file.getFileName().toString().replaceAll("_\\d+A\\d+\\.",".");
         if (directoryPath.endsWith("/")) {
             directoryPath += tmpFileName;
         } else {