完善-法规月报-导出中英文内容勾选的一致性
This commit is contained in:
+8
-8
@@ -1247,15 +1247,15 @@ public class WordUtil {
|
||||
|
||||
for (String value : itemText.split(",")) {
|
||||
String blank = getBlank(value);
|
||||
//contains()方法 当选中的是Mandatory if fitted时,Mandatory也包含在其中结果会是true,也会被选中
|
||||
if(text.equals("Mandatory if fitted") && value.equals("Mandatory if fitted")){
|
||||
sb.append("■"+value+blank);
|
||||
break;
|
||||
}
|
||||
if(text.contains(value)){
|
||||
//将错误的英文转为正确的
|
||||
String value1 = scopeConvert(value);
|
||||
sb.append("■"+value1+blank);
|
||||
if(text.equals("Mandatory if fitted") && value.equals("Mandatory")){
|
||||
sb.append("□"+value+blank);
|
||||
}else {
|
||||
//将错误的英文转为正确的
|
||||
String value1 = scopeConvert(value);
|
||||
sb.append("■"+value1+blank);
|
||||
}
|
||||
|
||||
}else{
|
||||
String value1 = scopeConvert(value);
|
||||
sb.append("□"+value1+blank);
|
||||
|
||||
Reference in New Issue
Block a user