示例数据:{"data":"W3sidGV4dCI6IuS9oDTlkI3lk6bmtKrlq
YblqYZPaGlvTE9M6K+6IiwidHlwZSI6MX1d","format":1}
1. 数据过滤规则:
首先判断key=format,value=1条件过滤脏数据;
2.数据加密算法:
basebase64加密,解析data的value;算法
第一步:过滤脏数据,提取data数据。json
select get_json_object(content,'$.data')函数
from bdl_crs_reply_detail加密
where dt='2017-04-16'
and get_json_object(content,'$.format')=1;orm
第二步: 解密函数
select unbase64(get_json_object(content,'$.data'))get
from bdl.bdl_crs_reply_detailit
where dt='2017-04-16'
and get_json_object(content,'$.format')=1base64
limit 2;form