法规技术评估调用查询文档拆分接口,处理数据中带英文单双引号。
This commit is contained in:
+6
@@ -575,6 +575,12 @@ public class FileSplitItemsEOServiceImpl extends ServiceImpl<FileSplitItemsEOMap
|
|||||||
entry.setValue(value);
|
entry.setValue(value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
//如果value中包含英文单、双引号,替换成中文的。 英文的符号影响到法规技术评估流程了。
|
||||||
|
if(StringUtils.contains((String)entry.getValue(),"'") || StringUtils.contains((String)entry.getValue(),"\"")){
|
||||||
|
String key = entry.getKey();
|
||||||
|
String value = ((String) entry.getValue()).replaceAll("'", "‘").replaceAll("\"", "”");
|
||||||
|
record1.put(key,value);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// 拼接文件名
|
// 拼接文件名
|
||||||
|
|||||||
Reference in New Issue
Block a user