非空判断
This commit is contained in:
+3
@@ -20,6 +20,7 @@ import com.adc.da.utils.util.InitStandAttrUtil;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import org.apache.commons.collections4.CollectionUtils;
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
import org.apache.commons.lang3.ObjectUtils;
|
||||
import org.apache.poi.xwpf.usermodel.*;
|
||||
import org.apache.xmlbeans.XmlCursor;
|
||||
import org.apache.xmlbeans.XmlObject;
|
||||
@@ -522,6 +523,7 @@ public class SarFileSplitInfoEOServiceImpl implements SarFileSplitInfoEOService
|
||||
for (XWPFRun xwrun : p.getRuns()) {
|
||||
VerticalAlign subscript = xwrun.getSubscript();
|
||||
String smalltext = xwrun.getText(0);
|
||||
if (ObjectUtils.isNotEmpty(smalltext)) {
|
||||
switch (subscript) {
|
||||
case BASELINE:
|
||||
buffer.append(smalltext);
|
||||
@@ -534,6 +536,7 @@ public class SarFileSplitInfoEOServiceImpl implements SarFileSplitInfoEOService
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
String text = buffer.toString();
|
||||
if (length > 0) {
|
||||
text = text.substring(length);
|
||||
|
||||
Reference in New Issue
Block a user