【修改】 word字体倾斜判断更正
This commit is contained in:
@@ -124,7 +124,6 @@ public class WpsWordUtils {
|
||||
} else {
|
||||
String function = wpsWordReqDto.getFunction();
|
||||
String chineseName = wpsWordReqDto.getName();
|
||||
|
||||
WpsWordJudgementDto judgement = new WpsWordJudgementDto();
|
||||
// 1-1、创建新的数据组
|
||||
XmlCursor wpCursor = cursor.newCursor();
|
||||
@@ -135,6 +134,14 @@ public class WpsWordUtils {
|
||||
judgement.setContent(function + "-/true");
|
||||
} else {
|
||||
String value = wpCursor.getTextValue();
|
||||
if (wpsWordReqDto.getName().contains("倾斜")) {
|
||||
value = wpCursor.getAttributeText(new QName("w:val"));
|
||||
if (value.contains("0")) {
|
||||
value = "否";
|
||||
} else if (value.contains("0") || value == null) {
|
||||
value = "是";
|
||||
}
|
||||
}
|
||||
value = getValueType(wpsWordReqDto, value);
|
||||
judgement.setContentIn(chineseName + value);
|
||||
judgement.setContent(function + "-/" + value);
|
||||
|
Reference in New Issue
Block a user