fix(87323): 文档拆分--拆分已入库文本自动编号提示文档格式错误

This commit is contained in:
yjz
2024-08-01 14:03:44 +08:00
parent 378a25fe21
commit 8e3a5c9360
@@ -362,12 +362,14 @@ public class FileSpiltService {
paragraphString = emptyTitleList.get(0); paragraphString = emptyTitleList.get(0);
emptyTitleList.remove(0); emptyTitleList.remove(0);
}else if (StringUtils.isNotBlank(paragraphString) && titleNumberMap.containsKey(paragraphString)){ }else if (StringUtils.isNotBlank(paragraphString) && titleNumberMap.containsKey(paragraphString)){
replaceNumberFlag = true; if (CollectionUtils.isNotEmpty(titleNumberMap.get(paragraphString))){
List<String> stringList = titleNumberMap.get(paragraphString); replaceNumberFlag = true;
replaceNumber = stringList.get(0); List<String> stringList = titleNumberMap.get(paragraphString);
//replaceNumber = titleNumberMap.get(paragraphString); replaceNumber = stringList.get(0);
paragraphString = replaceNumber + paragraphString; //replaceNumber = titleNumberMap.get(paragraphString);
stringList.remove(0); paragraphString = replaceNumber + paragraphString;
stringList.remove(0);
}
} }
String startDigit; String startDigit;
if (replaceNumberFlag){ if (replaceNumberFlag){