fix(87323): 文档拆分--拆分已入库文本自动编号提示文档格式错误
This commit is contained in:
@@ -362,6 +362,7 @@ 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)){
|
||||||
|
if (CollectionUtils.isNotEmpty(titleNumberMap.get(paragraphString))){
|
||||||
replaceNumberFlag = true;
|
replaceNumberFlag = true;
|
||||||
List<String> stringList = titleNumberMap.get(paragraphString);
|
List<String> stringList = titleNumberMap.get(paragraphString);
|
||||||
replaceNumber = stringList.get(0);
|
replaceNumber = stringList.get(0);
|
||||||
@@ -369,6 +370,7 @@ public class FileSpiltService {
|
|||||||
paragraphString = replaceNumber + paragraphString;
|
paragraphString = replaceNumber + paragraphString;
|
||||||
stringList.remove(0);
|
stringList.remove(0);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
String startDigit;
|
String startDigit;
|
||||||
if (replaceNumberFlag){
|
if (replaceNumberFlag){
|
||||||
startDigit = replaceNumber;
|
startDigit = replaceNumber;
|
||||||
|
|||||||
Reference in New Issue
Block a user