返回列表 發布新帖

數據分組,分組數據來源邏輯

169 1
發表於 2025-3-3 17:28 | 查看全部 閱讀模式
問答

緊急程度

已完結
偵測多筆數據後,呼叫一個esp接口查詢數據後,接入一個數據分組節點,
執行節點數據分組節點異常,未依照預期推送分組數據。
期望能分組多筆數據。

最佳答案

查看完整內容

數據分組的分組數據為上個節點的輸出,目前數據分組的上個節點為esp節點,所以分組目標為esp節點的回參數據 問題解決思路: 1.數據分組的目標數據需要是上個節點的回傳數據,可以在數據分組之前排一個腳本節點,return{{你目標想要拆分的數據}} 2.格式為object包含array,array的key為模型key,例如: {   "componentrvnxglnm": [     {       "tenant_id": "athenadeveloperTest",   &nb ...

評論1

鄭舜尹樓主Lv.9 發表於 2025-3-3 17:31 | 查看全部
數據分組的分組數據為上個節點的輸出,目前數據分組的上個節點為esp節點,所以分組目標為esp節點的回參數據
問題解決思路:
1.數據分組的目標數據需要是上個節點的回傳數據,可以在數據分組之前排一個腳本節點,return{{你目標想要拆分的數據}}
2.格式為object包含array,array的key為模型key,例如:
  1. {
  2.   "componentrvnxglnm": [
  3.     {
  4.       "tenant_id": "athenadeveloperTest",
  5.       "manage_status": "N",
  6.       "componentrvnxglnm_id": 3,
  7.       "description": "很不错",
  8.       "serial_number": "",
  9.       "unit_price": "99.9",
  10.       "stock_quantity": 990,
  11.       "complete_state": "0",
  12.       "supplierndejsekevonnfvnwggxydj": [
  13.         {
  14.           "tenant_id": "athenadeveloperTest",
  15.           "create_by": "wenwu@digiwin.com",
  16.           "contact_person": "闻武",
  17.           "tenantsid": 847600433497088,
  18.           "supplierndejsekevonnfvnwggxydj_id": 3,
  19.           "componentrvnxglnm_id": 3,
  20.           "creator_name": "闻武",
  21.           "create_date": "2024/11/28 15:37:17",
  22.           "contact_number": "18772619340"
  23.         }
  24.       ],
  25.       "create_by": "wenwu@digiwin.com",
  26.       "tenantsid": 847600433497088,
  27.       "creator_name": "闻武",
  28.       "create_date": "2024/11/28 15:37:17",
  29.       "part_name": "弹簧"
  30.     },
  31.     {
  32.       "tenant_id": "athenadeveloperTest",
  33.       "manage_status": "N",
  34.       "componentrvnxglnm_id": 2,
  35.       "description": "不错",
  36.       "serial_number": "",
  37.       "unit_price": "19.9",
  38.       "stock_quantity": 100,
  39.       "complete_state": "0",
  40.       "supplierndejsekevonnfvnwggxydj": [
  41.         {
  42.           "tenant_id": "athenadeveloperTest",
  43.           "create_by": "wenwu@digiwin.com",
  44.           "contact_person": "闻武",
  45.           "tenantsid": 847600433497088,
  46.           "supplierndejsekevonnfvnwggxydj_id": 2,
  47.           "componentrvnxglnm_id": 2,
  48.           "creator_name": "闻武",
  49.           "create_date": "2024/11/28 15:37:15",
  50.           "contact_number": "18772619340"
  51.         }
  52.       ],
  53.       "create_by": "wenwu@digiwin.com",
  54.       "tenantsid": 847600433497088,
  55.       "creator_name": "闻武",
  56.       "create_date": "2024/11/28 15:37:15",
  57.       "part_name": "联轴器"
  58.     },
  59.     {
  60.       "tenant_id": "athenadeveloperTest",
  61.       "manage_status": "N",
  62.       "componentrvnxglnm_id": 1,
  63.       "description": "很棒",
  64.       "serial_number": "",
  65.       "unit_price": "9.9",
  66.       "stock_quantity": 100,
  67.       "complete_state": "0",
  68.       "supplierndejsekevonnfvnwggxydj": [
  69.         {
  70.           "tenant_id": "athenadeveloperTest",
  71.           "create_by": "wenwu@digiwin.com",
  72.           "contact_person": "闻武",
  73.           "tenantsid": 847600433497088,
  74.           "supplierndejsekevonnfvnwggxydj_id": 1,
  75.           "componentrvnxglnm_id": 1,
  76.           "creator_name": "闻武",
  77.           "create_date": "2024/11/28 15:37:14",
  78.           "contact_number": "18772619340"
  79.         }
  80.       ],
  81.       "create_by": "wenwu@digiwin.com",
  82.       "tenantsid": 847600433497088,
  83.       "creator_name": "闻武",
  84.       "create_date": "2024/11/28 15:37:14",
  85.       "part_name": "齿轮传动"
  86.     }
  87.   ]
  88. }
復制代碼


回復

您需要登錄後才可以回帖 登錄 | 立即注册

本版積分規則

  • 加入Line諮詢
Copyright © 2026 鼎新數智股份有限公司 版權所有 All Rights Reserved. Powered by Discuz! X5.0
關燈 在本版發帖
即将开放
返回頂部
快速回復 返回頂部 返回列表