數據分組的分組數據為上個節點的輸出,目前數據分組的上個節點為esp節點,所以分組目標為esp節點的回參數據
問題解決思路:
1.數據分組的目標數據需要是上個節點的回傳數據,可以在數據分組之前排一個腳本節點,return{{你目標想要拆分的數據}}
2.格式為object包含array,array的key為模型key,例如:
- {
- "componentrvnxglnm": [
- {
- "tenant_id": "athenadeveloperTest",
- "manage_status": "N",
- "componentrvnxglnm_id": 3,
- "description": "很不错",
- "serial_number": "",
- "unit_price": "99.9",
- "stock_quantity": 990,
- "complete_state": "0",
- "supplierndejsekevonnfvnwggxydj": [
- {
- "tenant_id": "athenadeveloperTest",
- "create_by": "wenwu@digiwin.com",
- "contact_person": "闻武",
- "tenantsid": 847600433497088,
- "supplierndejsekevonnfvnwggxydj_id": 3,
- "componentrvnxglnm_id": 3,
- "creator_name": "闻武",
- "create_date": "2024/11/28 15:37:17",
- "contact_number": "18772619340"
- }
- ],
- "create_by": "wenwu@digiwin.com",
- "tenantsid": 847600433497088,
- "creator_name": "闻武",
- "create_date": "2024/11/28 15:37:17",
- "part_name": "弹簧"
- },
- {
- "tenant_id": "athenadeveloperTest",
- "manage_status": "N",
- "componentrvnxglnm_id": 2,
- "description": "不错",
- "serial_number": "",
- "unit_price": "19.9",
- "stock_quantity": 100,
- "complete_state": "0",
- "supplierndejsekevonnfvnwggxydj": [
- {
- "tenant_id": "athenadeveloperTest",
- "create_by": "wenwu@digiwin.com",
- "contact_person": "闻武",
- "tenantsid": 847600433497088,
- "supplierndejsekevonnfvnwggxydj_id": 2,
- "componentrvnxglnm_id": 2,
- "creator_name": "闻武",
- "create_date": "2024/11/28 15:37:15",
- "contact_number": "18772619340"
- }
- ],
- "create_by": "wenwu@digiwin.com",
- "tenantsid": 847600433497088,
- "creator_name": "闻武",
- "create_date": "2024/11/28 15:37:15",
- "part_name": "联轴器"
- },
- {
- "tenant_id": "athenadeveloperTest",
- "manage_status": "N",
- "componentrvnxglnm_id": 1,
- "description": "很棒",
- "serial_number": "",
- "unit_price": "9.9",
- "stock_quantity": 100,
- "complete_state": "0",
- "supplierndejsekevonnfvnwggxydj": [
- {
- "tenant_id": "athenadeveloperTest",
- "create_by": "wenwu@digiwin.com",
- "contact_person": "闻武",
- "tenantsid": 847600433497088,
- "supplierndejsekevonnfvnwggxydj_id": 1,
- "componentrvnxglnm_id": 1,
- "creator_name": "闻武",
- "create_date": "2024/11/28 15:37:14",
- "contact_number": "18772619340"
- }
- ],
- "create_by": "wenwu@digiwin.com",
- "tenantsid": 847600433497088,
- "creator_name": "闻武",
- "create_date": "2024/11/28 15:37:14",
- "part_name": "齿轮传动"
- }
- ]
- }
復制代碼
|