{ "nodes": [ { "id": "start", "type": "start", "initialized": false, "position": { "x": 52, "y": 153 }, "data": { "nodeMeta": { "category": "basic", "label": "开始节点", "icon": "https://api.iconify.design/tabler/circle-check.svg?color=white", "iconColor": "#52C41A", "showEditBtn": false, "showRunBtn": false } }, "deletable": false }, { "id": "end", "type": "end", "initialized": false, "position": { "x": 1125, "y": 153 }, "data": { "nodeMeta": { "category": "basic", "label": "结束节点", "icon": "https://api.iconify.design/tabler/square-rounded-arrow-down.svg?color=white", "iconColor": "#FA8C16", "showEditBtn": false, "showRunBtn": false }, "formData": { "output": { "value": [ { "label": "file_path", "required": false, "value": "node_mt6xegm1-586z323f3p2w1163::outputs.file_path", "type": [ "string" ], "desc": "", "defaultVal": null, "children": [], "isRef": true } ], "type": "declareVar", "label": "输出" } } }, "deletable": false }, { "type": "sql-execute", "data": { "nodeMeta": { "category": "database", "label": "查询订单数据", "icon": "https://api.iconify.design/tabler/database.svg?color=white", "iconColor": "#1677FF", "showEditBtn": true, "showRunBtn": true }, "formData": { "dbLabel": { "value": { "dbTableId": 7459, "dbId": 294 }, "type": "database", "label": "数据表" }, "sql": { "value": { "code": { "language": "", "content": "select username,user_code,pid,pid_path,order_count,amt from (\nselect user_id,count(1) order_count,sum(total_amt) amt from aita_order \nwhere status=1 and user_id in (select id from aita_user where pid_path like '%,609,%') and \nuser_id not in (select id from aita_user where pid_path like '%,599,%') and \nfinish_time>='2026-08-01 00:00:00' and finish_time<'2026-09-01 00:00:00' \ngroup by user_id\n) tb left join aita_user u on tb.user_id=u.id" }, "inputVar": [] }, "type": "code", "label": "SQL" }, "output": { "value": [ { "label": "order_data", "required": false, "type": [ "array", "object" ], "desc": "", "defaultVal": null, "children": [], "_id": "mt6xekz3-676n5u62444k6d2q" } ], "type": "declareVar", "label": "输出", "scope": "nextNodes" } } }, "id": "node_mt6vn0ct-d1u1g2j4l131u4i", "initialized": false, "position": { "x": 408, "y": 153 }, "zIndex": 0 }, { "type": "document-export", "data": { "nodeMeta": { "category": "transform", "label": "导出文档", "icon": "https://api.iconify.design/tabler/file-text.svg?color=white", "iconColor": "#13C2C2", "showEditBtn": true, "showRunBtn": true }, "formData": { "input": { "value": [ { "label": "order_data", "required": false, "value": "node_mt6vn0ct-d1u1g2j4l131u4i::output.order_data", "type": [ "array", "object" ], "desc": "", "defaultVal": null, "children": [], "isRef": true } ], "type": "declareVar", "label": "输入", "scope": "nextNodes" }, "fileType": { "value": "excel", "type": "select", "label": "文件类型" }, "outputs": { "value": [ { "label": "file_path", "required": false, "type": [ "string" ], "desc": "", "defaultVal": null, "children": [], "_id": "mt6xficw-6h2j2h1f4v2l3o55" } ], "type": "defineVar", "label": "输出", "scope": "nextNodes" } } }, "id": "node_mt6xegm1-586z323f3p2w1163", "initialized": false, "position": { "x": 764, "y": 153 }, "zIndex": 0 } ], "edges": [ { "id": "vueflow__edge-start-node_mt6vn0ct-d1u1g2j4l131u4i", "type": "base-edge", "source": "start", "target": "node_mt6vn0ct-d1u1g2j4l131u4i", "data": {}, "label": "", "zIndex": 0, "sourceX": 374.5, "sourceY": 208, "targetX": 405.5, "targetY": 208, "animated": false, "style": { "stroke": "", "strokeWidth": "" } }, { "id": "vueflow__edge-node_mt6vn0ct-d1u1g2j4l131u4i-node_mt6xegm1-586z323f3p2w1163", "type": "base-edge", "source": "node_mt6vn0ct-d1u1g2j4l131u4i", "target": "node_mt6xegm1-586z323f3p2w1163", "data": {}, "label": "", "zIndex": 0, "sourceX": 730.5, "sourceY": 208, "targetX": 761.5, "targetY": 208, "animated": false, "style": { "stroke": "", "strokeWidth": "" } }, { "id": "vueflow__edge-node_mt6xegm1-586z323f3p2w1163-end", "type": "base-edge", "source": "node_mt6xegm1-586z323f3p2w1163", "target": "end", "sourceHandle": null, "targetHandle": null, "data": {}, "label": "", "zIndex": 0, "sourceX": 1086.5, "sourceY": 208, "targetX": 1122.5, "targetY": 208, "animated": false, "style": { "stroke": "", "strokeWidth": "" } } ], "position": [ 0, 0 ], "zoom": 1, "viewport": { "x": 0, "y": 0, "zoom": 1 } }