|
@@ -122,14 +122,17 @@ public class ConvertUtils {
|
|
|
public static Map<String, String> getRecordCol(Record record, String col) {
|
|
|
Map<String, String> colMap = new HashMap<>();
|
|
|
if (null != record && !record.isNull(col)) {
|
|
|
- JSONObject json = JSON.parseObject(record.getString(col));
|
|
|
- if (null != json) {
|
|
|
- for (Map.Entry<String, Object> entry : json.entrySet()) {
|
|
|
- Object obj = entry.getValue();
|
|
|
- if (null != obj) {
|
|
|
- colMap.put(entry.getKey(), obj.toString());
|
|
|
+ try {
|
|
|
+ JSONObject json = JSON.parseObject(record.getString(col));
|
|
|
+ if (null != json) {
|
|
|
+ for (Map.Entry<String, Object> entry : json.entrySet()) {
|
|
|
+ Object obj = entry.getValue();
|
|
|
+ if (null != obj) {
|
|
|
+ colMap.put(entry.getKey(), obj.toString());
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
+ } catch (Exception ignored) {
|
|
|
}
|
|
|
}
|
|
|
return colMap;
|