in src/main/java/com/aliyun/ha3engine/jdbc/common/utils/JsonUtils.java [83:97]
public Long deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context)
throws JsonParseException {
try {
//定义为long类型,如果后台返回""或者null,则返回0
if (json.getAsString().equals("") || json.getAsString().equals("null")) {
return 0l;
}
} catch (Exception ignore) {
}
try {
return json.getAsLong();
} catch (NumberFormatException e) {
throw new JsonSyntaxException(e);
}
}