- mdisDeriveConfig为字符串,需要后台接收转化为list对象,postman测试造数据时这样写:
{
"mdisInfoId": "0 b8313bf-292a-45c 1-a092-675c82209415",
"mdisName": "零售_快捷支付有效MAU月净增环比",
"mdisAliases": "别名--零售_快捷支付有效MAU月净增环比",
"mdisMean": "含义--零售_快捷支付有效MAU月净增环比",
"mdisNumPercent": "percent",
"mdisDeriveConfig": "[{mdisAndOr: 'and',mdisId: 'RTBCP00000005DR0001D',mdisSerialno: 1,mdisWdid: '06fa4ec8-07a 1-43df-9940-0accc3 d14fa0',mdisNo: '123456',mdisWdEn: 'DATA_DT',mdisWdname: 'DATA_DT',mdisOperator: '=',mdisValue: '1,2',mdisInfoComputeid: null},{mdisAndOr: 'and',mdisId: 'RTBCP00000005DR0001D',mdisSerialno: 2,mdisWdid: '0707b 6cd-925c-4 d26-8798-629e741bc293',mdisNo: '654321',mdisWdEn: 'ORG_NAME',mdisWdname: 'ORG_NAME',mdisOperator: '>',mdisValue: '3,4',mdisInfoComputeid: null}]"
}
List<MdisInfoDerive> mdisInfoDerives = JSONUtil.toList(dto.getMdisDeriveConfig(), MdisInfoDerive.class);
List<MdisInfoDerive> mdisInfoDerives = JSONObject.parseArray(dto.getMdisDeriveConfig(), MdisInfoDerive.class);