我的数据格式是这样的。
arams": {
"main_params": {
"Amount": 2196,
"Note": "2024-01-24 16:12:21付深圳市宏泊实业有限公司货款",
"BillUser": "Manager",
"detailNumbers": ""
},
"extend_params_1": [
{
"lastInsertId": ":lastInsertId",
"FEntryID": 0,
"FNote": "2024-01-24付深圳市宏泊实业有限公司货款",
"AccountNumber": "1123",
"AccountNumber1": "1002.01",
"FCurrencyNumber": "RMB",
"FExchangeRate": 1,
"FDC": 1,
"FAmountFor": 2196,
"Famount": 2196,
"Fquantity": 0,
"FUnitPrice": 0,
"FMeasureUnitNumber": 0,
"FDetailID": 2124
},
{
"lastInsertId": ":lastInsertId",
"FEntryID": 1,
"FNote": "2024-01-24付深圳市宏泊实业有限公司货款",
"AccountNumber": "1002.01",
"AccountNumber1": "1123",
"FCurrencyNumber": "RMB",
"FExchangeRate": 1,
"FDC": 0,
"FAmountFor": 2196,
"Famount": 2196,
"Fquantity": 0,
"FUnitPrice": 0,
"FMeasureUnitNumber": 0,
"FDetailID": 0
}
]
}
我的规则是下面的:
我需要累加 extend_params_1 中 Famount 的金额, 并且计算extend_params_1中有效金额的数量