node2.json 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257
  1. {
  2. "nodes": [
  3. {
  4. "id": "start",
  5. "type": "start",
  6. "initialized": false,
  7. "position": {
  8. "x": 52,
  9. "y": 153
  10. },
  11. "data": {
  12. "nodeMeta": {
  13. "category": "basic",
  14. "label": "开始节点",
  15. "icon": "https://api.iconify.design/tabler/circle-check.svg?color=white",
  16. "iconColor": "#52C41A",
  17. "showEditBtn": false,
  18. "showRunBtn": false
  19. }
  20. },
  21. "deletable": false
  22. },
  23. {
  24. "id": "end",
  25. "type": "end",
  26. "initialized": false,
  27. "position": {
  28. "x": 1125,
  29. "y": 153
  30. },
  31. "data": {
  32. "nodeMeta": {
  33. "category": "basic",
  34. "label": "结束节点",
  35. "icon": "https://api.iconify.design/tabler/square-rounded-arrow-down.svg?color=white",
  36. "iconColor": "#FA8C16",
  37. "showEditBtn": false,
  38. "showRunBtn": false
  39. },
  40. "formData": {
  41. "output": {
  42. "value": [
  43. {
  44. "label": "file_path",
  45. "required": false,
  46. "value": "node_mt6xegm1-586z323f3p2w1163::outputs.file_path",
  47. "type": [
  48. "string"
  49. ],
  50. "desc": "",
  51. "defaultVal": null,
  52. "children": [],
  53. "isRef": true
  54. }
  55. ],
  56. "type": "declareVar",
  57. "label": "输出"
  58. }
  59. }
  60. },
  61. "deletable": false
  62. },
  63. {
  64. "type": "sql-execute",
  65. "data": {
  66. "nodeMeta": {
  67. "category": "database",
  68. "label": "查询订单数据",
  69. "icon": "https://api.iconify.design/tabler/database.svg?color=white",
  70. "iconColor": "#1677FF",
  71. "showEditBtn": true,
  72. "showRunBtn": true
  73. },
  74. "formData": {
  75. "dbLabel": {
  76. "value": {
  77. "dbTableId": 7459,
  78. "dbId": 294
  79. },
  80. "type": "database",
  81. "label": "数据表"
  82. },
  83. "sql": {
  84. "value": {
  85. "code": {
  86. "language": "",
  87. "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"
  88. },
  89. "inputVar": []
  90. },
  91. "type": "code",
  92. "label": "SQL"
  93. },
  94. "output": {
  95. "value": [
  96. {
  97. "label": "order_data",
  98. "required": false,
  99. "type": [
  100. "array",
  101. "object"
  102. ],
  103. "desc": "",
  104. "defaultVal": null,
  105. "children": [],
  106. "_id": "mt6xekz3-676n5u62444k6d2q"
  107. }
  108. ],
  109. "type": "declareVar",
  110. "label": "输出",
  111. "scope": "nextNodes"
  112. }
  113. }
  114. },
  115. "id": "node_mt6vn0ct-d1u1g2j4l131u4i",
  116. "initialized": false,
  117. "position": {
  118. "x": 408,
  119. "y": 153
  120. },
  121. "zIndex": 0
  122. },
  123. {
  124. "type": "document-export",
  125. "data": {
  126. "nodeMeta": {
  127. "category": "transform",
  128. "label": "导出文档",
  129. "icon": "https://api.iconify.design/tabler/file-text.svg?color=white",
  130. "iconColor": "#13C2C2",
  131. "showEditBtn": true,
  132. "showRunBtn": true
  133. },
  134. "formData": {
  135. "input": {
  136. "value": [
  137. {
  138. "label": "order_data",
  139. "required": false,
  140. "value": "node_mt6vn0ct-d1u1g2j4l131u4i::output.order_data",
  141. "type": [
  142. "array",
  143. "object"
  144. ],
  145. "desc": "",
  146. "defaultVal": null,
  147. "children": [],
  148. "isRef": true
  149. }
  150. ],
  151. "type": "declareVar",
  152. "label": "输入",
  153. "scope": "nextNodes"
  154. },
  155. "fileType": {
  156. "value": "excel",
  157. "type": "select",
  158. "label": "文件类型"
  159. },
  160. "outputs": {
  161. "value": [
  162. {
  163. "label": "file_path",
  164. "required": false,
  165. "type": [
  166. "string"
  167. ],
  168. "desc": "",
  169. "defaultVal": null,
  170. "children": [],
  171. "_id": "mt6xficw-6h2j2h1f4v2l3o55"
  172. }
  173. ],
  174. "type": "defineVar",
  175. "label": "输出",
  176. "scope": "nextNodes"
  177. }
  178. }
  179. },
  180. "id": "node_mt6xegm1-586z323f3p2w1163",
  181. "initialized": false,
  182. "position": {
  183. "x": 764,
  184. "y": 153
  185. },
  186. "zIndex": 0
  187. }
  188. ],
  189. "edges": [
  190. {
  191. "id": "vueflow__edge-start-node_mt6vn0ct-d1u1g2j4l131u4i",
  192. "type": "base-edge",
  193. "source": "start",
  194. "target": "node_mt6vn0ct-d1u1g2j4l131u4i",
  195. "data": {},
  196. "label": "",
  197. "zIndex": 0,
  198. "sourceX": 374.5,
  199. "sourceY": 208,
  200. "targetX": 405.5,
  201. "targetY": 208,
  202. "animated": false,
  203. "style": {
  204. "stroke": "",
  205. "strokeWidth": ""
  206. }
  207. },
  208. {
  209. "id": "vueflow__edge-node_mt6vn0ct-d1u1g2j4l131u4i-node_mt6xegm1-586z323f3p2w1163",
  210. "type": "base-edge",
  211. "source": "node_mt6vn0ct-d1u1g2j4l131u4i",
  212. "target": "node_mt6xegm1-586z323f3p2w1163",
  213. "data": {},
  214. "label": "",
  215. "zIndex": 0,
  216. "sourceX": 730.5,
  217. "sourceY": 208,
  218. "targetX": 761.5,
  219. "targetY": 208,
  220. "animated": false,
  221. "style": {
  222. "stroke": "",
  223. "strokeWidth": ""
  224. }
  225. },
  226. {
  227. "id": "vueflow__edge-node_mt6xegm1-586z323f3p2w1163-end",
  228. "type": "base-edge",
  229. "source": "node_mt6xegm1-586z323f3p2w1163",
  230. "target": "end",
  231. "sourceHandle": null,
  232. "targetHandle": null,
  233. "data": {},
  234. "label": "",
  235. "zIndex": 0,
  236. "sourceX": 1086.5,
  237. "sourceY": 208,
  238. "targetX": 1122.5,
  239. "targetY": 208,
  240. "animated": false,
  241. "style": {
  242. "stroke": "",
  243. "strokeWidth": ""
  244. }
  245. }
  246. ],
  247. "position": [
  248. 0,
  249. 0
  250. ],
  251. "zoom": 1,
  252. "viewport": {
  253. "x": 0,
  254. "y": 0,
  255. "zoom": 1
  256. }
  257. }