|
@@ -1278,16 +1278,21 @@ public class ArchivesAutoServiceImpl extends BaseServiceImpl<ArchivesAutoMapper,
|
|
|
|
|
|
archiveName+=fullPath;
|
|
archiveName+=fullPath;
|
|
|
|
|
|
- if (archiveName.length() > 200) {
|
|
|
|
- // 从150位置开始查找第一个顿号
|
|
|
|
- int index = archiveName.indexOf('、', 200);
|
|
|
|
- if (index != -1) {
|
|
|
|
- // 找到顿号,截取到顿号位置(去掉顿号)并拼接“等文件”
|
|
|
|
- archiveName = archiveName.substring(0, index) + "等文件";
|
|
|
|
- } else {
|
|
|
|
- // 没有找到顿号,直接截取150个字符并拼接“等文件”
|
|
|
|
- archiveName = archiveName.substring(0, 200) + "等文件";
|
|
|
|
- }
|
|
|
|
|
|
+// if (archiveName.length() > 200) {
|
|
|
|
+// // 从150位置开始查找第一个顿号
|
|
|
|
+// int index = archiveName.indexOf('、', 200);
|
|
|
|
+// if (index != -1) {
|
|
|
|
+// // 找到顿号,截取到顿号位置(去掉顿号)并拼接“等文件”
|
|
|
|
+// archiveName = archiveName.substring(0, index) + "等文件";
|
|
|
|
+// } else {
|
|
|
|
+// // 没有找到顿号,直接截取150个字符并拼接“等文件”
|
|
|
|
+// archiveName = archiveName.substring(0, 200) + "等文件";
|
|
|
|
+// }
|
|
|
|
+// }
|
|
|
|
+
|
|
|
|
+ if (archiveName.length() > 1100) {
|
|
|
|
+ // 直接截取前1100个字符
|
|
|
|
+ archiveName = archiveName.substring(0, 1100);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|