复杂业务数据结构,原始测试断言不那么直观,例如如下数据结构,是一个支付业务中,营销查询返回结果,按银行卡挂载优惠信息。
{
"banks": [
{
"bankcardId": 131794663,
"banktype": 36,
"promotionDetails": [
{
"camId": 7918,
"camType": 1,
"merchantId": "11000000044187",
"reduce": "10.00"
},
{
"camId": 7916,
"camType": 1,
"merchantId": "1020700305",
"reduce": "1.00"
}
],
"totalReduce": "11.00"
},
{
"bankcardId": 131799485,
"banktype": 62,
"promotionDetails": [
{
"camId": 7917,
"camType": 1,
"merchantId": "11000000044187",
"reduce": "26.62"
},
{