platform_process.sql
57 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
/*
Navicat MySQL Data Transfer
Source Server : 192.168.3.227 -- sop-exe-dev
Source Server Version : 50505
Source Host : 192.168.3.227:3306
Source Database : platform_process
Target Server Type : MYSQL
Target Server Version : 50505
File Encoding : 65001
Date: 2023-09-07 16:32:25
*/
SET FOREIGN_KEY_CHECKS=0;
-- ----------------------------
-- Table structure for node_tpl
-- ----------------------------
DROP TABLE IF EXISTS `node_tpl`;
CREATE TABLE `node_tpl` (
`tpl_node_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '节点id',
`node_name` varchar(32) NOT NULL COMMENT '节点任务描述',
`node_type` varchar(16) NOT NULL COMMENT '节点类型:可扩展,包括:start,end,java,python,js,',
`node_label` varchar(16) NOT NULL COMMENT '节点标签:Java、Js脚本、Sql查询等',
`node_show` varchar(255) DEFAULT NULL COMMENT 'Json结构,记录节点位置和展示样式,提供给前端使用。包括top,left,class',
`node_param_def` text COMMENT '输入参数格式:Json,开始节点的输入参数全局共用',
`node_content_def` text COMMENT '节点源码,配合node_type使用,比如java源码,python脚本,sql脚本+数据源等',
`node_result_def` text COMMENT '节点输出数据格式模板,主要用于后续节点参考',
`node_visible` tinyint(4) DEFAULT NULL COMMENT '节点可见状态,复制时不可变',
`node_cron` varchar(64) DEFAULT NULL COMMENT '调度表达式,为空则立即执行,执行前记得检查sop批次状态',
`node_expire_cron` varchar(64) DEFAULT NULL COMMENT '节点终止调度,为空则不执行过期操作',
`node_skipable` tinyint(4) DEFAULT NULL COMMENT '节点是否可以跳过,复制时不可变',
PRIMARY KEY (`tpl_node_id`)
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8mb4 COMMENT='节点模板,可以将一些固定的业务操作封装成节点模板,根据节点模板可以很方便克隆出模板节点。';
-- ----------------------------
-- Records of node_tpl
-- ----------------------------
INSERT INTO `node_tpl` VALUES ('1', 'SOP开始', 'START', '开始', '{\r\n\"top\":200,\r\n\"left\":30,\r\n\"class\":\"eletype-e\"\r\n}', null, null, null, '1', null, null, '0');
INSERT INTO `node_tpl` VALUES ('2', '筛人-潜客', 'Java', 'Java', '{\r\n\"top\":150,\r\n\"left\":80,\r\n\"class\":\"eletype-e\"\r\n}', '{\r\n \"stage\": {\r\n \"paramName\": \"stage\",\r\n \"paramDesc\": \"潜客\",\r\n \"valueType\": \"String\",\r\n \"defaultValue\": \"潜客\",\r\n \"required\": true\r\n }\r\n}', '{\r\n \"source\": \"import com.alibaba.fastjson.JSON;\\r\\nimport com.alibaba.fastjson.JSONArray;\\r\\nimport com.alibaba.fastjson.JSONObject;\\r\\nimport com.mcg.plugin.assist.Console;\\r\\n\\r\\npublic class Controller {\\r\\n private Console console = new Console();\\r\\n\\r\\n public JSON execute(JSON param) {\\r\\n console.info(\\\"-----欢迎使用---------\\\");\\r\\n\\r\\n JSONObject result = new JSONObject();\\r\\n return result;\\r\\n }\\r\\n}\\r\\n\"\r\n}', '{\r\n \"users\": [\r\n {\r\n \"userId\": \"u0001\",\r\n \"stage\":\"潜客\",\r\n \"stageTime\":\"2023-09-06 12:07:23\",\r\n \"sopTime\":\"2023-09-06 12:07:23\"\r\n },\r\n {\r\n \"userId\": \"u0002\",\r\n \"stage\":\"潜客\",\r\n \"stageTime\":\"2023-09-06 12:07:23\",\r\n \"sopTime\":\"2023-09-06 12:07:23\"\r\n }\r\n ]\r\n}', '1', null, null, '0');
INSERT INTO `node_tpl` VALUES ('3', '营销-潜客第一天', 'Java', 'Java', '{\r\n\"top\":150,\r\n\"left\":80,\r\n\"class\":\"eletype-e\"\r\n}', '{\r\n \"day\": {\r\n \"paramName\": \"day\",\r\n \"paramDesc\": \"潜客第?天\",\r\n \"valueType\": \"Integer\",\r\n \"defaultValue\": \"1\",\r\n \"required\": true\r\n },\r\n \"textContent\": {\r\n \"paramName\": \"textContent\",\r\n \"paramDesc\": \"营销文案\",\r\n \"valueType\": \"String\",\r\n \"defaultValue\": \"尊敬的${userName},优惠券领取url.cn/c134dqwe\",\r\n \"required\": true\r\n }\r\n}', '{\r\n \"source\": \"import com.alibaba.fastjson.JSON;\\r\\nimport com.alibaba.fastjson.JSONArray;\\r\\nimport com.alibaba.fastjson.JSONObject;\\r\\nimport com.mcg.plugin.assist.Console;\\r\\n\\r\\npublic class Controller {\\r\\n private Console console = new Console();\\r\\n\\r\\n public JSON execute(JSON param) {\\r\\n console.info(\\\"-----欢迎使用---------\\\");\\r\\n\\r\\n JSONObject result = new JSONObject();\\r\\n return result;\\r\\n }\\r\\n}\\r\\n\"\r\n}', '{\r\n \"users\": {\r\n \"u0001\": {\r\n \"userId\": \"u0001\",\r\n \"stage\":\"潜客\",\r\n \"stageTime\":\"2023-09-06 12:07:23\",\r\n \"sopTime\":\"2023-09-06 12:07:23\"\r\n },\r\n \"u0002\": {\r\n \"userId\": \"u0002\",\r\n \"stage\":\"潜客\",\r\n \"stageTime\":\"2023-09-06 12:07:23\",\r\n \"sopTime\":\"2023-09-06 12:07:23\"\r\n }\r\n }\r\n}', '1', '0 0 10 * * ?', '59 59 23 * * ?', '1');
INSERT INTO `node_tpl` VALUES ('4', '营销-潜客第二天', 'Java', 'Java', '{\r\n\"top\":150,\r\n\"left\":80,\r\n\"class\":\"eletype-e\"\r\n}', '{\r\n \"day\": {\r\n \"paramName\": \"day\",\r\n \"paramDesc\": \"潜客第?天\",\r\n \"valueType\": \"Integer\",\r\n \"defaultValue\": \"2\",\r\n \"required\": true\r\n },\r\n \"textContent\": {\r\n \"paramName\": \"textContent\",\r\n \"paramDesc\": \"营销文案\",\r\n \"valueType\": \"String\",\r\n \"defaultValue\": \"尊敬的${userName},优惠券领取url.cn/c134dqwe\",\r\n \"required\": true\r\n }\r\n}', '{\r\n \"source\": \"import com.alibaba.fastjson.JSON;\\r\\nimport com.alibaba.fastjson.JSONArray;\\r\\nimport com.alibaba.fastjson.JSONObject;\\r\\nimport com.mcg.plugin.assist.Console;\\r\\n\\r\\npublic class Controller {\\r\\n private Console console = new Console();\\r\\n\\r\\n public JSON execute(JSON param) {\\r\\n console.info(\\\"-----欢迎使用---------\\\");\\r\\n\\r\\n JSONObject result = new JSONObject();\\r\\n return result;\\r\\n }\\r\\n}\\r\\n\"\r\n}', '{\r\n \"users\": {\r\n \"u0001\": {\r\n \"userId\": \"u0001\",\r\n \"stage\":\"潜客\",\r\n \"stageTime\":\"2023-09-06 12:07:23\",\r\n \"sopTime\":\"2023-09-06 12:07:23\"\r\n },\r\n \"u0002\": {\r\n \"userId\": \"u0002\",\r\n \"stage\":\"潜客\",\r\n \"stageTime\":\"2023-09-06 12:07:23\",\r\n \"sopTime\":\"2023-09-06 12:07:23\"\r\n }\r\n }\r\n}', '1', '0 0 10 * * ?', '59 59 23 * * ?', '1');
INSERT INTO `node_tpl` VALUES ('5', '营销-有意向第一天', 'Java', 'Java', '{\r\n\"top\":150,\r\n\"left\":80,\r\n\"class\":\"eletype-e\"\r\n}', '{\r\n \"day\": {\r\n \"paramName\": \"day\",\r\n \"paramDesc\": \"有意向第?天\",\r\n \"valueType\": \"Integer\",\r\n \"defaultValue\": \"1\",\r\n \"required\": true\r\n },\r\n \"textContent\": {\r\n \"paramName\": \"textContent\",\r\n \"paramDesc\": \"营销文案\",\r\n \"valueType\": \"String\",\r\n \"defaultValue\": \"尊敬的${userName},优惠券领取url.cn/c134dqwe\",\r\n \"required\": true\r\n }\r\n}', '{\r\n \"source\": \"import com.alibaba.fastjson.JSON;\\r\\nimport com.alibaba.fastjson.JSONArray;\\r\\nimport com.alibaba.fastjson.JSONObject;\\r\\nimport com.mcg.plugin.assist.Console;\\r\\n\\r\\npublic class Controller {\\r\\n private Console console = new Console();\\r\\n\\r\\n public JSON execute(JSON param) {\\r\\n console.info(\\\"-----欢迎使用---------\\\");\\r\\n\\r\\n JSONObject result = new JSONObject();\\r\\n return result;\\r\\n }\\r\\n}\\r\\n\"\r\n}', '{\r\n \"users\": {\r\n \"u0001\": {\r\n \"userId\": \"u0001\",\r\n \"stage\":\"潜客\",\r\n \"stageTime\":\"2023-09-06 12:07:23\",\r\n \"sopTime\":\"2023-09-06 12:07:23\"\r\n },\r\n \"u0002\": {\r\n \"userId\": \"u0002\",\r\n \"stage\":\"潜客\",\r\n \"stageTime\":\"2023-09-06 12:07:23\",\r\n \"sopTime\":\"2023-09-06 12:07:23\"\r\n }\r\n }\r\n}', '1', '0 0 10 * * ?', '59 59 23 * * ?', '1');
INSERT INTO `node_tpl` VALUES ('6', '营销-有意向第二天', 'Java', 'Java', '{\r\n\"top\":150,\r\n\"left\":80,\r\n\"class\":\"eletype-e\"\r\n}', '{\r\n \"day\": {\r\n \"paramName\": \"day\",\r\n \"paramDesc\": \"有意向第?天\",\r\n \"valueType\": \"Integer\",\r\n \"defaultValue\": \"2\",\r\n \"required\": true\r\n },\r\n \"textContent\": {\r\n \"paramName\": \"textContent\",\r\n \"paramDesc\": \"营销文案\",\r\n \"valueType\": \"String\",\r\n \"defaultValue\": \"尊敬的${userName},优惠券领取url.cn/c134dqwe\",\r\n \"required\": true\r\n }\r\n}', '{\r\n \"source\": \"import com.alibaba.fastjson.JSON;\\r\\nimport com.alibaba.fastjson.JSONArray;\\r\\nimport com.alibaba.fastjson.JSONObject;\\r\\nimport com.mcg.plugin.assist.Console;\\r\\n\\r\\npublic class Controller {\\r\\n private Console console = new Console();\\r\\n\\r\\n public JSON execute(JSON param) {\\r\\n console.info(\\\"-----欢迎使用---------\\\");\\r\\n\\r\\n JSONObject result = new JSONObject();\\r\\n return result;\\r\\n }\\r\\n}\\r\\n\"\r\n}', '{\r\n \"users\": {\r\n \"u0001\": {\r\n \"userId\": \"u0001\",\r\n \"stage\":\"潜客\",\r\n \"stageTime\":\"2023-09-06 12:07:23\",\r\n \"sopTime\":\"2023-09-06 12:07:23\"\r\n },\r\n \"u0002\": {\r\n \"userId\": \"u0002\",\r\n \"stage\":\"潜客\",\r\n \"stageTime\":\"2023-09-06 12:07:23\",\r\n \"sopTime\":\"2023-09-06 12:07:23\"\r\n }\r\n }\r\n}', '1', '0 0 10 * * ?', '59 59 23 * * ?', '1');
INSERT INTO `node_tpl` VALUES ('7', 'SOP结束', 'END', '结束', '{\r\n\"top\":150,\r\n\"left\":80,\r\n\"class\":\"eletype-e\"\r\n}', null, null, '{\r\n \"users\": {\r\n \"u0001\": {\r\n \"userId\": \"u0001\",\r\n \"stage\":\"潜客\",\r\n \"stageTime\":\"2023-09-06 12:07:23\",\r\n \"sopTime\":\"2023-09-06 12:07:23\"\r\n },\r\n \"u0002\": {\r\n \"userId\": \"u0002\",\r\n \"stage\":\"潜客\",\r\n \"stageTime\":\"2023-09-06 12:07:23\",\r\n \"sopTime\":\"2023-09-06 12:07:23\"\r\n }\r\n }\r\n}', '1', null, null, '0');
INSERT INTO `node_tpl` VALUES ('8', '筛人-有意向', 'Java', 'Java', '{\r\n\"top\":150,\r\n\"left\":80,\r\n\"class\":\"eletype-e\"\r\n}', '{\r\n \"stage\": {\r\n \"paramName\": \"stage\",\r\n \"paramDesc\": \"有意向\",\r\n \"valueType\": \"String\",\r\n \"defaultValue\": \"有意向\",\r\n \"required\": true\r\n }\r\n}', '{\r\n \"source\": \"import com.alibaba.fastjson.JSON;\\r\\nimport com.alibaba.fastjson.JSONArray;\\r\\nimport com.alibaba.fastjson.JSONObject;\\r\\nimport com.mcg.plugin.assist.Console;\\r\\n\\r\\npublic class Controller {\\r\\n private Console console = new Console();\\r\\n\\r\\n public JSON execute(JSON param) {\\r\\n console.info(\\\"-----欢迎使用---------\\\");\\r\\n\\r\\n JSONObject result = new JSONObject();\\r\\n return result;\\r\\n }\\r\\n}\\r\\n\"\r\n}', '{\r\n \"users\": {\r\n \"u0001\": {\r\n \"userId\": \"u0001\",\r\n \"stage\":\"潜客\",\r\n \"stageTime\":\"2023-09-06 12:07:23\",\r\n \"sopTime\":\"2023-09-06 12:07:23\"\r\n },\r\n \"u0002\": {\r\n \"userId\": \"u0002\",\r\n \"stage\":\"潜客\",\r\n \"stageTime\":\"2023-09-06 12:07:23\",\r\n \"sopTime\":\"2023-09-06 12:07:23\"\r\n }\r\n }\r\n}', '1', '', '', '0');
INSERT INTO `node_tpl` VALUES ('9', '营销-旅程阶段刷新', 'Java', 'Java', '{\r\n\"top\":150,\r\n\"left\":80,\r\n\"class\":\"eletype-e\"\r\n}', '{\r\n \"day\": {\r\n \"paramName\": \"day\",\r\n \"paramDesc\": \"潜客第?天\",\r\n \"valueType\": \"Integer\",\r\n \"defaultValue\": \"1\",\r\n \"required\": true\r\n },\r\n \"textContent\": {\r\n \"paramName\": \"textContent\",\r\n \"paramDesc\": \"营销文案\",\r\n \"valueType\": \"String\",\r\n \"defaultValue\": \"尊敬的${userName},优惠券领取url.cn/c134dqwe\",\r\n \"required\": true\r\n }\r\n}', '{\r\n \"source\": \"import com.alibaba.fastjson.JSON;\\r\\nimport com.alibaba.fastjson.JSONArray;\\r\\nimport com.alibaba.fastjson.JSONObject;\\r\\nimport com.mcg.plugin.assist.Console;\\r\\n\\r\\npublic class Controller {\\r\\n private Console console = new Console();\\r\\n\\r\\n public JSON execute(JSON param) {\\r\\n console.info(\\\"-----欢迎使用---------\\\");\\r\\n\\r\\n JSONObject result = new JSONObject();\\r\\n return result;\\r\\n }\\r\\n}\\r\\n\"\r\n}', '{\r\n \"users\": {\r\n \"u0001\": {\r\n \"userId\": \"u0001\",\r\n \"stage\":\"潜客\",\r\n \"stageTime\":\"2023-09-06 12:07:23\",\r\n \"sopTime\":\"2023-09-06 12:07:23\"\r\n },\r\n \"u0002\": {\r\n \"userId\": \"u0002\",\r\n \"stage\":\"潜客\",\r\n \"stageTime\":\"2023-09-06 12:07:23\",\r\n \"sopTime\":\"2023-09-06 12:07:23\"\r\n }\r\n }\r\n}', '0', '0 */5 * * * ?', '59 59 23 * * ?', '0');
INSERT INTO `node_tpl` VALUES ('10', '圈人-全部', 'Sql查询', 'Sql查询', '{\r\n\"top\":150,\r\n\"left\":80,\r\n\"class\":\"eletype-e\"\r\n}', '', '{\r\n \"source\": \"select * from cdp.us ers where tag=\'xxx\'\",\r\n \"dataSourceId\":\"mysql-cdp\"\r\n} ', '{\r\n \"users\": [\r\n {\r\n \"userId\": \"u0001\",\r\n \"stage\":\"潜客\",\r\n \"stageTime\":\"2023-09-06 12:07:23\",\r\n \"sopTime\":\"2023-09-06 12:07:23\"\r\n },\r\n {\r\n \"userId\": \"u0002\",\r\n \"stage\":\"潜客\",\r\n \"stageTime\":\"2023-09-06 12:07:23\",\r\n \"sopTime\":\"2023-09-06 12:07:23\"\r\n }\r\n ]\r\n}', '1', '', '', '0');
-- ----------------------------
-- Table structure for sop_inst
-- ----------------------------
DROP TABLE IF EXISTS `sop_inst`;
CREATE TABLE `sop_inst` (
`inst_id` varchar(16) NOT NULL COMMENT '实例id,一般sop只允许一个实例。特殊情况可以根据输入参数来区分不同实例。实例名可以用于在cdp保存状态',
`grant_id` int(11) NOT NULL COMMENT '实例分组:当前场景下,分组id就是门店id',
`inst_name` varchar(32) NOT NULL COMMENT '实例名',
`inst_cron` varchar(32) NOT NULL COMMENT 'cron表达式,sop执行周期',
`inst_remark` varchar(255) DEFAULT NULL COMMENT 'sop简介',
`create_time` datetime DEFAULT NULL,
`update_time` datetime DEFAULT NULL,
`inst_status` tinyint(4) DEFAULT NULL COMMENT '启用状态:0,未启用;1,启用;-1,已删除/过期;',
`inst_param` text COMMENT '实例默认输入参数',
`inst_snapshot` text COMMENT '实例快照,每天任务均从快照取数,修改的数据写回快照,与快照表做冗余;',
`expire_time` datetime DEFAULT NULL COMMENT 'sop有效期,每个sop都设置一个有效期,到期自动停止。',
`batch_no` varchar(16) DEFAULT NULL COMMENT '当前生效的批次',
PRIMARY KEY (`inst_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='sop在某个门店下的实例,一般是单实例,也可以支持多实例';
-- ----------------------------
-- Records of sop_inst
-- ----------------------------
INSERT INTO `sop_inst` VALUES ('xblc7', '1', '膨胀金7月活动-续保旅程', '0 0 8 * * ?', null, '2023-08-01 16:36:32', '2023-08-01 16:36:32', '1', '{\r\n \"merchantId\": \"M153312087\",\r\n \"stages\": {\r\n \"stage1\": {\r\n \"value\": \"潜客\",\r\n \"editable\": false,\r\n \"conditions\": [\r\n \"链接(#膨胀金活动名称#) 反馈\",\r\n \"链接(#膨胀金活动名称#) 反馈\"\r\n ]\r\n },\r\n \"stage2\": {\r\n \"value\": \"高意向\",\r\n \"editable\": true,\r\n \"conditions\": [\r\n \"链接(#膨胀金活动名称#) 反馈\",\r\n \"链接(#膨胀金活动名称#) 反馈\"\r\n ]\r\n },\r\n \"stage3\": {\r\n \"value\": \"下单\",\r\n \"editable\": false,\r\n \"conditions\": [\r\n \"链接(#膨胀金活动名称#) 反馈\",\r\n \"链接(#膨胀金活动名称#) 反馈\"\r\n ]\r\n },\r\n \"stage4\": {\r\n \"value\": \"战败\",\r\n \"editable\": false,\r\n \"conditions\": [\r\n \"链接(#膨胀金活动名称#) 反馈\",\r\n \"链接(#膨胀金活动名称#) 反馈\"\r\n ]\r\n }\r\n },\r\n \"users\": [\r\n {\r\n \"userId\": \"u0001\",\r\n \"stage\": \"潜客\",\r\n \"stageTime\": \"2023-08-01 12:07:23\",\r\n \"sopTime\": \"2023-08-01 12:07:23\"\r\n },\r\n {\r\n \"userId\": \"u0002\",\r\n \"stage\": \"潜客\",\r\n \"stageTime\": \"2023-08-01 12:07:23\",\r\n \"sopTime\": \"2023-08-01 12:07:23\"\r\n }\r\n ]\r\n}', '{\r\n \"users\": [\r\n {\r\n \"userId\": \"u0001\",\r\n \"stage\": \"潜客\",\r\n \"stageTime\": \"2023-09-06 12:07:23\",\r\n \"sopTime\": \"2023-09-06 12:07:23\"\r\n },\r\n {\r\n \"userId\": \"u0002\",\r\n \"stage\": \"潜客\",\r\n \"stageTime\": \"2023-09-06 12:07:23\",\r\n \"sopTime\": \"2023-09-06 12:07:23\"\r\n }\r\n ]\r\n}', '2023-08-31 11:30:37', null);
INSERT INTO `sop_inst` VALUES ('xblc8', '1', '膨胀金8月活动-续保旅程', '0 0 8 * * ?', '', '2023-09-01 16:36:32', '2023-09-01 16:36:32', '1', '{\r\n \"merchantId\": \"M153312087\",\r\n \"stages\": {\r\n \"stage1\": {\r\n \"value\": \"潜客\",\r\n \"editable\": false,\r\n \"conditions\": [\r\n \"链接(#膨胀金活动名称#) 反馈\",\r\n \"链接(#膨胀金活动名称#) 反馈\"\r\n ]\r\n },\r\n \"stage2\": {\r\n \"value\": \"高意向\",\r\n \"editable\": true,\r\n \"conditions\": [\r\n \"链接(#膨胀金活动名称#) 反馈\",\r\n \"链接(#膨胀金活动名称#) 反馈\"\r\n ]\r\n },\r\n \"stage3\": {\r\n \"value\": \"下单\",\r\n \"editable\": false,\r\n \"conditions\": [\r\n \"链接(#膨胀金活动名称#) 反馈\",\r\n \"链接(#膨胀金活动名称#) 反馈\"\r\n ]\r\n },\r\n \"stage4\": {\r\n \"value\": \"战败\",\r\n \"editable\": false,\r\n \"conditions\": [\r\n \"链接(#膨胀金活动名称#) 反馈\",\r\n \"链接(#膨胀金活动名称#) 反馈\"\r\n ]\r\n }\r\n },\r\n \"users\": [\r\n {\r\n \"userId\": \"u0021\",\r\n \"stage\": \"潜客\",\r\n \"stageTime\": \"2023-09-06 12:07:23\",\r\n \"sopTime\": \"2023-09-06 12:07:23\"\r\n },\r\n {\r\n \"userId\": \"u0022\",\r\n \"stage\": \"潜客\",\r\n \"stageTime\": \"2023-09-06 12:07:23\",\r\n \"sopTime\": \"2023-09-06 12:07:23\"\r\n }\r\n ]\r\n}', '{\r\n \"users\": [\r\n {\r\n \"userId\": \"u0021\",\r\n \"stage\": \"潜客\",\r\n \"stageTime\": \"2023-09-06 12:07:23\",\r\n \"sopTime\": \"2023-09-06 12:07:23\"\r\n },\r\n {\r\n \"userId\": \"u0022\",\r\n \"stage\": \"潜客\",\r\n \"stageTime\": \"2023-09-06 12:07:23\",\r\n \"sopTime\": \"2023-09-06 12:07:23\"\r\n }\r\n ]\r\n}', '2023-09-30 11:30:44', null);
-- ----------------------------
-- Table structure for sop_inst_batch
-- ----------------------------
DROP TABLE IF EXISTS `sop_inst_batch`;
CREATE TABLE `sop_inst_batch` (
`batch_no` varchar(16) NOT NULL,
`inst_id` int(11) NOT NULL,
`snapshot` text NOT NULL COMMENT '执行快照',
`create_time` datetime DEFAULT NULL COMMENT '批次启动时间',
`update_time` datetime DEFAULT NULL COMMENT '批次最后时间',
PRIMARY KEY (`batch_no`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='sop执行快照';
-- ----------------------------
-- Records of sop_inst_batch
-- ----------------------------
-- ----------------------------
-- Table structure for sop_inst_link
-- ----------------------------
DROP TABLE IF EXISTS `sop_inst_link`;
CREATE TABLE `sop_inst_link` (
`link_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`inst_id` varchar(16) NOT NULL,
`source_id` int(11) NOT NULL COMMENT '节点任务名',
`target_id` int(11) NOT NULL COMMENT '节点任务名',
PRIMARY KEY (`link_id`)
) ENGINE=InnoDB AUTO_INCREMENT=25 DEFAULT CHARSET=utf8mb4 COMMENT='sop任务节点连接';
-- ----------------------------
-- Records of sop_inst_link
-- ----------------------------
INSERT INTO `sop_inst_link` VALUES ('1', 'xblc7', '1', '10');
INSERT INTO `sop_inst_link` VALUES ('2', 'xblc7', '10', '2');
INSERT INTO `sop_inst_link` VALUES ('3', 'xblc7', '10', '8');
INSERT INTO `sop_inst_link` VALUES ('4', 'xblc7', '2', '3');
INSERT INTO `sop_inst_link` VALUES ('5', 'xblc7', '2', '4');
INSERT INTO `sop_inst_link` VALUES ('6', 'xblc7', '8', '5');
INSERT INTO `sop_inst_link` VALUES ('7', 'xblc7', '8', '6');
INSERT INTO `sop_inst_link` VALUES ('8', 'xblc7', '3', '9');
INSERT INTO `sop_inst_link` VALUES ('9', 'xblc7', '4', '9');
INSERT INTO `sop_inst_link` VALUES ('10', 'xblc7', '5', '9');
INSERT INTO `sop_inst_link` VALUES ('11', 'xblc7', '6', '9');
INSERT INTO `sop_inst_link` VALUES ('12', 'xblc7', '9', '7');
INSERT INTO `sop_inst_link` VALUES ('13', 'xblc8', '1', '10');
INSERT INTO `sop_inst_link` VALUES ('14', 'xblc8', '10', '2');
INSERT INTO `sop_inst_link` VALUES ('15', 'xblc8', '10', '8');
INSERT INTO `sop_inst_link` VALUES ('16', 'xblc8', '2', '3');
INSERT INTO `sop_inst_link` VALUES ('17', 'xblc8', '2', '4');
INSERT INTO `sop_inst_link` VALUES ('18', 'xblc8', '8', '5');
INSERT INTO `sop_inst_link` VALUES ('19', 'xblc8', '8', '6');
INSERT INTO `sop_inst_link` VALUES ('20', 'xblc8', '3', '9');
INSERT INTO `sop_inst_link` VALUES ('21', 'xblc8', '4', '9');
INSERT INTO `sop_inst_link` VALUES ('22', 'xblc8', '5', '9');
INSERT INTO `sop_inst_link` VALUES ('23', 'xblc8', '6', '9');
INSERT INTO `sop_inst_link` VALUES ('24', 'xblc8', '9', '7');
-- ----------------------------
-- Table structure for sop_inst_node
-- ----------------------------
DROP TABLE IF EXISTS `sop_inst_node`;
CREATE TABLE `sop_inst_node` (
`inst_node_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '实例节点id',
`inst_id` varchar(16) NOT NULL,
`node_id` int(10) unsigned NOT NULL COMMENT '节点id',
`node_name` varchar(32) NOT NULL COMMENT '节点任务名',
`node_type` varchar(16) NOT NULL COMMENT '节点类型:可扩展,包括:start,end,java,python,js,',
`node_label` varchar(16) NOT NULL COMMENT '节点标签:Java、Js脚本、Sql查询等',
`node_key` varchar(32) NOT NULL COMMENT '节点的访问key',
`node_show` varchar(255) DEFAULT NULL COMMENT 'Json结构,记录节点位置和展示样式,提供给前端使用。包括top,left,class',
`node_param` text COMMENT '输入参数格式:Json,开始节点的输入参数全局共用',
`node_content` text COMMENT '节点源码,配合node_type使用,比如java源码,python脚本,sql脚本+数据源等',
`node_visible` tinyint(4) NOT NULL DEFAULT '1' COMMENT '节点可见状态',
`node_skip` tinyint(4) NOT NULL DEFAULT '0' COMMENT '是否跳过节点',
`node_cron` varchar(255) DEFAULT NULL COMMENT '节点调度表达式',
`node_expire_cron` varchar(255) DEFAULT NULL COMMENT '节点终止调度',
`node_status` int(4) NOT NULL DEFAULT '1' COMMENT '节点状态:0,停用;1,启用;',
PRIMARY KEY (`inst_node_id`)
) ENGINE=InnoDB AUTO_INCREMENT=28 DEFAULT CHARSET=utf8mb4 COMMENT='sop任务节点';
-- ----------------------------
-- Records of sop_inst_node
-- ----------------------------
INSERT INTO `sop_inst_node` VALUES ('1', 'xblc7', '1', 'SOP开始', 'START', '开始', '', '{\r\n\"top\":200,\r\n\"left\":30,\r\n\"class\":\"eletype-e\"\r\n}', null, null, '1', '0', null, null, '1');
INSERT INTO `sop_inst_node` VALUES ('2', 'xblc7', '2', '筛人-潜客', 'Java', 'Java', 'users', '{\r\n\"top\":150,\r\n\"left\":80,\r\n\"class\":\"eletype-e\"\r\n}', '{\r\n \"stage\": {\r\n \"paramName\": \"stage\",\r\n \"paramDesc\": \"潜客\",\r\n \"valueType\": \"String\",\r\n \"defaultValue\": \"潜客\",\r\n \"required\": true \r\n }\r\n}', '{\r\n \"source\": \"import com.alibaba.fastjson.JSON;\\r\\nimport com.alibaba.fastjson.JSONArray;\\r\\nimport com.alibaba.fastjson.JSONObject;\\r\\nimport com.mcg.plugin.assist.Console;\\r\\n\\r\\npublic class Controller {\\r\\n private Console console = new Console();\\r\\n\\r\\n public JSON execute(JSON param) {\\r\\n console.info(\\\"-----欢迎使用---------\\\");\\r\\n\\r\\n JSONObject result = new JSONObject();\\r\\n return result;\\r\\n }\\r\\n}\\r\\n\"\r\n}', '1', '0', '', '', '1');
INSERT INTO `sop_inst_node` VALUES ('3', 'xblc7', '3', '营销-潜客第一天', 'Java', 'Java', 'user1day1', '{\r\n\"top\":150,\r\n\"left\":80,\r\n\"class\":\"eletype-e\"\r\n}', '{\r\n \"day\": {\r\n \"paramName\": \"day\",\r\n \"paramDesc\": \"潜客第?天\",\r\n \"valueType\": \"Integer\",\r\n \"defaultValue\": \"1\",\r\n \"required\": true\r\n },\r\n \"textContent\": {\r\n \"paramName\": \"textContent\",\r\n \"paramDesc\": \"营销文案\",\r\n \"valueType\": \"String\",\r\n \"defaultValue\": \"尊敬的${userName},优惠券领取url.cn/c134dqwe\",\r\n \"required\": true\r\n }\r\n}', '{\r\n \"source\": \"import com.alibaba.fastjson.JSON;\\r\\nimport com.alibaba.fastjson.JSONArray;\\r\\nimport com.alibaba.fastjson.JSONObject;\\r\\nimport com.mcg.plugin.assist.Console;\\r\\n\\r\\npublic class Controller {\\r\\n private Console console = new Console();\\r\\n\\r\\n public JSON execute(JSON param) {\\r\\n console.info(\\\"-----欢迎使用---------\\\");\\r\\n\\r\\n JSONObject result = new JSONObject();\\r\\n return result;\\r\\n }\\r\\n}\\r\\n\"\r\n}', '1', '0', '0 0 10 * * ?', '59 59 23 * * ?', '1');
INSERT INTO `sop_inst_node` VALUES ('4', 'xblc7', '4', '营销-潜客第二天', 'Java', 'Java', 'user1day2', '{\r\n\"top\":150,\r\n\"left\":80,\r\n\"class\":\"eletype-e\"\r\n}', null, null, '1', '0', '0 0 10 * * ?', '59 59 23 * * ?', '1');
INSERT INTO `sop_inst_node` VALUES ('5', 'xblc7', '5', '营销-有意向第一天', 'Java', 'Java', 'user2day1', '{\r\n\"top\":150,\r\n\"left\":80,\r\n\"class\":\"eletype-e\"\r\n}', '{\r\n \"day\": {\r\n \"paramName\": \"day\",\r\n \"paramDesc\": \"有意向第?天\",\r\n \"valueType\": \"Integer\",\r\n \"defaultValue\": \"1\",\r\n \"required\": true\r\n },\r\n \"textContent\": {\r\n \"paramName\": \"textContent\",\r\n \"paramDesc\": \"营销文案\",\r\n \"valueType\": \"String\",\r\n \"defaultValue\": \"尊敬的${userName},优惠券领取url.cn/c134dqwe\",\r\n \"required\": true\r\n }\r\n}', '{\r\n \"source\": \"import com.alibaba.fastjson.JSON;\\r\\nimport com.alibaba.fastjson.JSONArray;\\r\\nimport com.alibaba.fastjson.JSONObject;\\r\\nimport com.mcg.plugin.assist.Console;\\r\\n\\r\\npublic class Controller {\\r\\n private Console console = new Console();\\r\\n\\r\\n public JSON execute(JSON param) {\\r\\n console.info(\\\"-----欢迎使用---------\\\");\\r\\n\\r\\n JSONObject result = new JSONObject();\\r\\n return result;\\r\\n }\\r\\n}\\r\\n\"\r\n}', '1', '0', '0 0 10 * * ?', '59 59 23 * * ?', '1');
INSERT INTO `sop_inst_node` VALUES ('6', 'xblc7', '6', '营销-有意向第二天', 'Java', 'Java', 'user2day2', '{\r\n\"top\":150,\r\n\"left\":80,\r\n\"class\":\"eletype-e\"\r\n}', '{\r\n \"day\": {\r\n \"paramName\": \"day\",\r\n \"paramDesc\": \"有意向第?天\",\r\n \"valueType\": \"Integer\",\r\n \"defaultValue\": \"2\",\r\n \"required\": true\r\n },\r\n \"textContent\": {\r\n \"paramName\": \"textContent\",\r\n \"paramDesc\": \"营销文案\",\r\n \"valueType\": \"String\",\r\n \"defaultValue\": \"尊敬的${userName},优惠券领取url.cn/c134dqwe\",\r\n \"required\": true\r\n }\r\n}', '{\r\n \"source\": \"import com.alibaba.fastjson.JSON;\\r\\nimport com.alibaba.fastjson.JSONArray;\\r\\nimport com.alibaba.fastjson.JSONObject;\\r\\nimport com.mcg.plugin.assist.Console;\\r\\n\\r\\npublic class Controller {\\r\\n private Console console = new Console();\\r\\n\\r\\n public JSON execute(JSON param) {\\r\\n console.info(\\\"-----欢迎使用---------\\\");\\r\\n\\r\\n JSONObject result = new JSONObject();\\r\\n return result;\\r\\n }\\r\\n}\\r\\n\"\r\n}', '1', '0', '0 0 10 * * ?', '59 59 23 * * ?', '1');
INSERT INTO `sop_inst_node` VALUES ('7', 'xblc7', '7', 'SOP结束', 'END', '结束', 'end', '{\r\n\"top\":150,\r\n\"left\":80,\r\n\"class\":\"eletype-e\"\r\n}', '', '', '1', '0', null, null, '1');
INSERT INTO `sop_inst_node` VALUES ('8', 'xblc7', '8', '筛人-有意向', 'Java', 'Java', 'user2', '{\r\n\"top\":150,\r\n\"left\":80,\r\n\"class\":\"eletype-e\"\r\n}', '{\r\n \"stage\": {\r\n \"paramName\": \"stage\",\r\n \"paramDesc\": \"有意向\",\r\n \"valueType\": \"String\",\r\n \"defaultValue\": \"有意向\",\r\n \"required\": true\r\n }\r\n}', '{\r\n \"source\": \"import com.alibaba.fastjson.JSON;\\r\\nimport com.alibaba.fastjson.JSONArray;\\r\\nimport com.alibaba.fastjson.JSONObject;\\r\\nimport com.mcg.plugin.assist.Console;\\r\\n\\r\\npublic class Controller {\\r\\n private Console console = new Console();\\r\\n\\r\\n public JSON execute(JSON param) {\\r\\n console.info(\\\"-----欢迎使用---------\\\");\\r\\n\\r\\n JSONObject result = new JSONObject();\\r\\n return result;\\r\\n }\\r\\n}\\r\\n\"\r\n}', '1', '0', null, null, '1');
INSERT INTO `sop_inst_node` VALUES ('9', 'xblc7', '9', '营销-旅程阶段刷新', 'Java', 'Java', '', '{\r\n\"top\":150,\r\n\"left\":80,\r\n\"class\":\"eletype-e\"\r\n}', '{\r\n \"day\": {\r\n \"paramName\": \"day\",\r\n \"paramDesc\": \"潜客第?天\",\r\n \"valueType\": \"Integer\",\r\n \"defaultValue\": \"1\",\r\n \"required\": true\r\n },\r\n \"textContent\": {\r\n \"paramName\": \"textContent\",\r\n \"paramDesc\": \"营销文案\",\r\n \"valueType\": \"String\",\r\n \"defaultValue\": \"尊敬的${userName},优惠券领取url.cn/c134dqwe\",\r\n \"required\": true\r\n }\r\n}', '{\r\n \"source\": \"import com.alibaba.fastjson.JSON;\\r\\nimport com.alibaba.fastjson.JSONArray;\\r\\nimport com.alibaba.fastjson.JSONObject;\\r\\nimport com.mcg.plugin.assist.Console;\\r\\n\\r\\npublic class Controller {\\r\\n private Console console = new Console();\\r\\n\\r\\n public JSON execute(JSON param) {\\r\\n console.info(\\\"-----欢迎使用---------\\\");\\r\\n\\r\\n JSONObject result = new JSONObject();\\r\\n return result;\\r\\n }\\r\\n}\\r\\n\"\r\n}', '0', '0', '0 */5 * * * ?', '59 59 23 * * ?', '1');
INSERT INTO `sop_inst_node` VALUES ('10', 'xblc7', '10', '圈人-全部', 'Sql查询', 'Sql查询', 'users', '{\r\n\"top\":150,\r\n\"left\":80,\r\n\"class\":\"eletype-e\"\r\n}', null, '{\r\n \"source\": \"select * from cdp.us ers where tag=\'xxx\'\",\r\n \"dataSourceId\":\"mysql-cdp\"\r\n} ', '1', '0', null, null, '1');
INSERT INTO `sop_inst_node` VALUES ('18', 'xblc8', '1', 'SOP开始', 'START', '开始', '', '{\r\n\"top\":200,\r\n\"left\":30,\r\n\"class\":\"eletype-e\"\r\n}', '', '', '1', '0', '0 0 10 * * ?', '59 59 23 * * ?', '1');
INSERT INTO `sop_inst_node` VALUES ('19', 'xblc8', '2', '筛人-潜客', 'Java', 'Java', 'users', '{\r\n\"top\":150,\r\n\"left\":80,\r\n\"class\":\"eletype-e\"\r\n}', '{\r\n \"stage\": {\r\n \"paramName\": \"stage\",\r\n \"paramDesc\": \"潜客\",\r\n \"valueType\": \"String\",\r\n \"defaultValue\": \"潜客\",\r\n \"required\": true \r\n }\r\n}', '{\r\n \"source\": \"import com.alibaba.fastjson.JSON;\\r\\nimport com.alibaba.fastjson.JSONArray;\\r\\nimport com.alibaba.fastjson.JSONObject;\\r\\nimport com.mcg.plugin.assist.Console;\\r\\n\\r\\npublic class Controller {\\r\\n private Console console = new Console();\\r\\n\\r\\n public JSON execute(JSON param) {\\r\\n console.info(\\\"-----欢迎使用---------\\\");\\r\\n\\r\\n JSONObject result = new JSONObject();\\r\\n return result;\\r\\n }\\r\\n}\\r\\n\"\r\n}', '1', '0', '', '', '1');
INSERT INTO `sop_inst_node` VALUES ('20', 'xblc8', '3', '营销-潜客第一天', 'Java', 'Java', 'user1day1', '{\r\n\"top\":150,\r\n\"left\":80,\r\n\"class\":\"eletype-e\"\r\n}', '{\r\n \"day\": {\r\n \"paramName\": \"day\",\r\n \"paramDesc\": \"潜客第?天\",\r\n \"valueType\": \"Integer\",\r\n \"defaultValue\": \"1\",\r\n \"required\": true\r\n },\r\n \"textContent\": {\r\n \"paramName\": \"textContent\",\r\n \"paramDesc\": \"营销文案\",\r\n \"valueType\": \"String\",\r\n \"defaultValue\": \"尊敬的${userName},优惠券领取url.cn/c134dqwe\",\r\n \"required\": true\r\n }\r\n}', '{\r\n \"source\": \"import com.alibaba.fastjson.JSON;\\r\\nimport com.alibaba.fastjson.JSONArray;\\r\\nimport com.alibaba.fastjson.JSONObject;\\r\\nimport com.mcg.plugin.assist.Console;\\r\\n\\r\\npublic class Controller {\\r\\n private Console console = new Console();\\r\\n\\r\\n public JSON execute(JSON param) {\\r\\n console.info(\\\"-----欢迎使用---------\\\");\\r\\n\\r\\n JSONObject result = new JSONObject();\\r\\n return result;\\r\\n }\\r\\n}\\r\\n\"\r\n}', '1', '0', '0 0 10 * * ?', '59 59 23 * * ?', '1');
INSERT INTO `sop_inst_node` VALUES ('22', 'xblc8', '4', '营销-潜客第二天', 'Java', 'Java', 'user1day2', '{\r\n\"top\":150,\r\n\"left\":80,\r\n\"class\":\"eletype-e\"\r\n}', '', '', '1', '0', '0 0 10 * * ?', '59 59 23 * * ?', '1');
INSERT INTO `sop_inst_node` VALUES ('23', 'xblc8', '5', '营销-有意向第一天', 'Java', 'Java', 'user2day1', '{\r\n\"top\":150,\r\n\"left\":80,\r\n\"class\":\"eletype-e\"\r\n}', '{\r\n \"day\": {\r\n \"paramName\": \"day\",\r\n \"paramDesc\": \"有意向第?天\",\r\n \"valueType\": \"Integer\",\r\n \"defaultValue\": \"1\",\r\n \"required\": true\r\n },\r\n \"textContent\": {\r\n \"paramName\": \"textContent\",\r\n \"paramDesc\": \"营销文案\",\r\n \"valueType\": \"String\",\r\n \"defaultValue\": \"尊敬的${userName},优惠券领取url.cn/c134dqwe\",\r\n \"required\": true\r\n }\r\n}', '{\r\n \"source\": \"import com.alibaba.fastjson.JSON;\\r\\nimport com.alibaba.fastjson.JSONArray;\\r\\nimport com.alibaba.fastjson.JSONObject;\\r\\nimport com.mcg.plugin.assist.Console;\\r\\n\\r\\npublic class Controller {\\r\\n private Console console = new Console();\\r\\n\\r\\n public JSON execute(JSON param) {\\r\\n console.info(\\\"-----欢迎使用---------\\\");\\r\\n\\r\\n JSONObject result = new JSONObject();\\r\\n return result;\\r\\n }\\r\\n}\\r\\n\"\r\n}', '1', '0', '0 0 10 * * ?', '59 59 23 * * ?', '1');
INSERT INTO `sop_inst_node` VALUES ('24', 'xblc8', '6', '营销-有意向第二天', 'Java', 'Java', 'user2day2', '{\r\n\"top\":150,\r\n\"left\":80,\r\n\"class\":\"eletype-e\"\r\n}', '{\r\n \"day\": {\r\n \"paramName\": \"day\",\r\n \"paramDesc\": \"有意向第?天\",\r\n \"valueType\": \"Integer\",\r\n \"defaultValue\": \"2\",\r\n \"required\": true\r\n },\r\n \"textContent\": {\r\n \"paramName\": \"textContent\",\r\n \"paramDesc\": \"营销文案\",\r\n \"valueType\": \"String\",\r\n \"defaultValue\": \"尊敬的${userName},优惠券领取url.cn/c134dqwe\",\r\n \"required\": true\r\n }\r\n}', '{\r\n \"source\": \"import com.alibaba.fastjson.JSON;\\r\\nimport com.alibaba.fastjson.JSONArray;\\r\\nimport com.alibaba.fastjson.JSONObject;\\r\\nimport com.mcg.plugin.assist.Console;\\r\\n\\r\\npublic class Controller {\\r\\n private Console console = new Console();\\r\\n\\r\\n public JSON execute(JSON param) {\\r\\n console.info(\\\"-----欢迎使用---------\\\");\\r\\n\\r\\n JSONObject result = new JSONObject();\\r\\n return result;\\r\\n }\\r\\n}\\r\\n\"\r\n}', '1', '0', '0 0 10 * * ?', '59 59 23 * * ?', '1');
INSERT INTO `sop_inst_node` VALUES ('25', 'xblc8', '7', 'SOP结束', 'END', '结束', 'end', '{\r\n\"top\":150,\r\n\"left\":80,\r\n\"class\":\"eletype-e\"\r\n}', '', '', '1', '0', '', '', '1');
INSERT INTO `sop_inst_node` VALUES ('26', 'xblc8', '8', '筛人-有意向', 'Java', 'Java', 'user2', '{\r\n\"top\":150,\r\n\"left\":80,\r\n\"class\":\"eletype-e\"\r\n}', '{\r\n \"stage\": {\r\n \"paramName\": \"stage\",\r\n \"paramDesc\": \"有意向\",\r\n \"valueType\": \"String\",\r\n \"defaultValue\": \"有意向\",\r\n \"required\": true\r\n }\r\n}', '{\r\n \"source\": \"import com.alibaba.fastjson.JSON;\\r\\nimport com.alibaba.fastjson.JSONArray;\\r\\nimport com.alibaba.fastjson.JSONObject;\\r\\nimport com.mcg.plugin.assist.Console;\\r\\n\\r\\npublic class Controller {\\r\\n private Console console = new Console();\\r\\n\\r\\n public JSON execute(JSON param) {\\r\\n console.info(\\\"-----欢迎使用---------\\\");\\r\\n\\r\\n JSONObject result = new JSONObject();\\r\\n return result;\\r\\n }\\r\\n}\\r\\n\"\r\n}', '1', '0', '', '', '1');
INSERT INTO `sop_inst_node` VALUES ('27', 'xblc8', '9', '营销-旅程阶段刷新', 'Java', 'Java', '', '{\r\n\"top\":150,\r\n\"left\":80,\r\n\"class\":\"eletype-e\"\r\n}', '{\r\n \"day\": {\r\n \"paramName\": \"day\",\r\n \"paramDesc\": \"潜客第?天\",\r\n \"valueType\": \"Integer\",\r\n \"defaultValue\": \"1\",\r\n \"required\": true\r\n },\r\n \"textContent\": {\r\n \"paramName\": \"textContent\",\r\n \"paramDesc\": \"营销文案\",\r\n \"valueType\": \"String\",\r\n \"defaultValue\": \"尊敬的${userName},优惠券领取url.cn/c134dqwe\",\r\n \"required\": true\r\n }\r\n}', '{\r\n \"source\": \"import com.alibaba.fastjson.JSON;\\r\\nimport com.alibaba.fastjson.JSONArray;\\r\\nimport com.alibaba.fastjson.JSONObject;\\r\\nimport com.mcg.plugin.assist.Console;\\r\\n\\r\\npublic class Controller {\\r\\n private Console console = new Console();\\r\\n\\r\\n public JSON execute(JSON param) {\\r\\n console.info(\\\"-----欢迎使用---------\\\");\\r\\n\\r\\n JSONObject result = new JSONObject();\\r\\n return result;\\r\\n }\\r\\n}\\r\\n\"\r\n}', '0', '0', '0 */5 * * * ?', '59 59 23 * * ?', '1');
INSERT INTO `sop_inst_node` VALUES ('28', 'xblc8', '10', '圈人-全部', 'Sql查询', 'Sql查询', 'users', '{\r\n\"top\":150,\r\n\"left\":80,\r\n\"class\":\"eletype-e\"\r\n}', '', '{\r\n \"source\": \"select * from cdp.us ers where tag=\'xxx\'\",\r\n \"dataSourceId\":\"mysql-cdp\"\r\n} ', '1', '0', null, null, '1');
-- ----------------------------
-- Table structure for sop_inst_node_batch
-- ----------------------------
DROP TABLE IF EXISTS `sop_inst_node_batch`;
CREATE TABLE `sop_inst_node_batch` (
`node_batch_no` varchar(16) NOT NULL,
`inst_node_id` int(11) NOT NULL,
`batch_no` varchar(32) DEFAULT NULL COMMENT '批次',
`snapshot` text NOT NULL COMMENT '执行快照',
`create_time` datetime DEFAULT NULL,
`update_time` datetime DEFAULT NULL,
PRIMARY KEY (`node_batch_no`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='sop节点执行快照';
-- ----------------------------
-- Records of sop_inst_node_batch
-- ----------------------------
-- ----------------------------
-- Table structure for sop_tpl
-- ----------------------------
DROP TABLE IF EXISTS `sop_tpl`;
CREATE TABLE `sop_tpl` (
`tpl_id` varchar(8) NOT NULL COMMENT '模板id,模板代码,建议使用模板名拼音首字母缩写,不要超过8位',
`tpl_name` varchar(32) NOT NULL COMMENT '模板名',
`tpl_cron` varchar(32) NOT NULL COMMENT 'cron表达式,sop执行周期',
`tpl_remark` varchar(255) DEFAULT NULL COMMENT 'sop简介',
`tpl_status` tinyint(4) NOT NULL COMMENT '启用状态:0,禁用;1,启用;',
`tpl_param_def` text COMMENT 'JSON结构,sop默认输入参数定义,可以在分配门店时配置的参数,比如旅程阶段列表',
`tpl_result_def` text,
`tpl_singleton` tinyint(4) NOT NULL COMMENT '是否单实例模式:0,多实例;1,单实例;',
`create_time` datetime NOT NULL,
`update_time` datetime NOT NULL,
PRIMARY KEY (`tpl_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='sop模板';
-- ----------------------------
-- Records of sop_tpl
-- ----------------------------
INSERT INTO `sop_tpl` VALUES ('XBLC', '续保旅程', '0 0 8 * * ?', '从膨胀金活动导出的用户进入续保旅程,可以多次导入形成多个实例', '1', '{\r\n \"merchantId\": {\r\n \"paramName\": \"merchantId\",\r\n \"paramDesc\": \"门店id,分配给门店时需要赋值\",\r\n \"valueType\": \"String\",\r\n \"defaultValue\": \"\",\r\n \"required\": true\r\n },\r\n \"stages\": {\r\n \"paramName\": \"stages\",\r\n \"paramDesc\": \"旅程阶段,值类型为Json\",\r\n \"valueType\": \"Json\",\r\n \"defaultValue\": {\r\n \"stage1\": {\r\n \"value\": \"潜客\",\r\n \"editable\": false,\r\n \"conditions\": [\"链接(#膨胀金活动名称#) 反馈\", \"链接(#膨胀金活动名称#) 反馈\"]\r\n },\r\n \"stage2\": {\r\n \"value\": \"高意向\",\r\n \"editable\": true,\r\n \"conditions\": [\"链接(#膨胀金活动名称#) 反馈\", \"链接(#膨胀金活动名称#) 反馈\"]\r\n },\r\n \"stage3\": {\r\n \"value\": \"下单\",\r\n \"editable\": false,\r\n \"conditions\": [\"链接(#膨胀金活动名称#) 反馈\", \"链接(#膨胀金活动名称#) 反馈\"]\r\n },\r\n \"stage4\": {\r\n \"value\": \"战败\",\r\n \"editable\": false,\r\n \"conditions\": [\"链接(#膨胀金活动名称#) 反馈\", \"链接(#膨胀金活动名称#) 反馈\"]\r\n }\r\n },\r\n \"required\": true\r\n },\r\n \"users\": {\r\n \"paramName\": \"users\",\r\n \"paramDesc\": \"通过膨胀金活动导入的用户信息\",\r\n \"valueType\": \"Json\",\r\n \"defaultValue\": {\r\n \"u0001\": {\r\n \"userId\": \"u0001\",\r\n \"userName\": \"张三\",\r\n \"followId\": \"跟进人id1\",\r\n \"textContent\": \"文案内容:尊敬的${userName},优惠券领取url.cn/dE32C1Ab7\"\r\n },\r\n \"u0002\": {\r\n \"userId\": \"u0002\",\r\n \"userName\": \"李四\",\r\n \"followId\": \"跟进人id2\",\r\n \"textContent\": \"文案内容:尊敬的${userName},优惠券领取url.cn/dE32C1Ab7\"\r\n }\r\n },\r\n \"required\": true\r\n }\r\n}', '{\r\n \"users\": {\r\n \"u0001\": {\r\n \"userId\": \"u0001\",\r\n \"stage\":\"潜客\",\r\n \"stageTime\":\"2023-09-06 12:07:23\",\r\n \"sopTime\":\"2023-09-06 12:07:23\"\r\n },\r\n \"u0002\": {\r\n \"userId\": \"u0002\",\r\n \"stage\":\"潜客\",\r\n \"stageTime\":\"2023-09-06 12:07:23\",\r\n \"sopTime\":\"2023-09-06 12:07:23\"\r\n }\r\n }\r\n}', '0', '2023-09-06 15:33:24', '2023-09-06 15:33:24');
-- ----------------------------
-- Table structure for sop_tpl_grant
-- ----------------------------
DROP TABLE IF EXISTS `sop_tpl_grant`;
CREATE TABLE `sop_tpl_grant` (
`grant_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '授权id',
`group_id` varchar(16) NOT NULL COMMENT '实例分组:当前场景下,分组id就是门店id',
`group_name` varchar(32) DEFAULT NULL,
`tpl_id` varchar(8) NOT NULL COMMENT '模板id',
`create_time` datetime DEFAULT NULL,
`update_time` datetime DEFAULT NULL,
`grant_status` tinyint(4) DEFAULT NULL COMMENT '授权状态:0,未启用;1,启用;',
PRIMARY KEY (`grant_id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COMMENT='sop模板针对某个分组(门店)的授权';
-- ----------------------------
-- Records of sop_tpl_grant
-- ----------------------------
INSERT INTO `sop_tpl_grant` VALUES ('1', 'M153312087', '成都丰田', 'XBLC', '2023-09-07 11:05:13', '2023-09-07 11:05:17', '1');
-- ----------------------------
-- Table structure for sop_tpl_link
-- ----------------------------
DROP TABLE IF EXISTS `sop_tpl_link`;
CREATE TABLE `sop_tpl_link` (
`link_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`tpl_id` varchar(16) NOT NULL,
`source_id` int(11) NOT NULL COMMENT '任务节点链接起点',
`target_id` int(11) NOT NULL COMMENT '任务节点链接终点',
PRIMARY KEY (`link_id`)
) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=utf8mb4 COMMENT='sop任务节点连接';
-- ----------------------------
-- Records of sop_tpl_link
-- ----------------------------
INSERT INTO `sop_tpl_link` VALUES ('1', 'XBLC', '1', '10');
INSERT INTO `sop_tpl_link` VALUES ('2', 'XBLC', '10', '2');
INSERT INTO `sop_tpl_link` VALUES ('3', 'XBLC', '10', '8');
INSERT INTO `sop_tpl_link` VALUES ('4', 'XBLC', '2', '3');
INSERT INTO `sop_tpl_link` VALUES ('5', 'XBLC', '2', '4');
INSERT INTO `sop_tpl_link` VALUES ('6', 'XBLC', '8', '5');
INSERT INTO `sop_tpl_link` VALUES ('7', 'XBLC', '8', '6');
INSERT INTO `sop_tpl_link` VALUES ('8', 'XBLC', '3', '9');
INSERT INTO `sop_tpl_link` VALUES ('9', 'XBLC', '4', '9');
INSERT INTO `sop_tpl_link` VALUES ('10', 'XBLC', '5', '9');
INSERT INTO `sop_tpl_link` VALUES ('11', 'XBLC', '6', '9');
INSERT INTO `sop_tpl_link` VALUES ('12', 'XBLC', '9', '7');
-- ----------------------------
-- Table structure for sop_tpl_node
-- ----------------------------
DROP TABLE IF EXISTS `sop_tpl_node`;
CREATE TABLE `sop_tpl_node` (
`node_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '节点id',
`tpl_id` varchar(8) NOT NULL COMMENT 'sop模板代码',
`node_name` varchar(32) NOT NULL COMMENT '节点任务描述',
`node_type` varchar(16) NOT NULL COMMENT '节点类型:可扩展,包括:start,end,java,python,js,',
`node_label` varchar(16) NOT NULL COMMENT '节点标签:Java、Js脚本、Sql查询等',
`node_show` varchar(255) DEFAULT NULL COMMENT 'Json结构,记录节点位置和展示样式,提供给前端使用。包括top,left,class',
`node_param_def` text COMMENT '输入参数格式:Json,开始节点的输入参数全局共用',
`node_content_def` text COMMENT '节点源码,配合node_type使用,比如java源码,python脚本,sql脚本+数据源等',
`node_key` varchar(32) DEFAULT NULL COMMENT '节点的访问key,复制时不可变',
`node_result_def` text COMMENT '节点输出数据格式模板,主要用于后续节点参考',
`node_visible` tinyint(4) DEFAULT NULL COMMENT '节点可见状态,复制时不可变',
`node_cron` varchar(64) DEFAULT NULL COMMENT '调度表达式,为空则立即执行,执行前记得检查sop批次状态',
`node_expire_cron` varchar(64) DEFAULT NULL COMMENT '节点终止调度,为空则立即执行',
`node_skipable` tinyint(4) DEFAULT NULL COMMENT '节点是否可以跳过,复制时不可变',
PRIMARY KEY (`node_id`)
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8mb4 COMMENT='sop任务节点';
-- ----------------------------
-- Records of sop_tpl_node
-- ----------------------------
INSERT INTO `sop_tpl_node` VALUES ('1', 'XBLC', 'SOP开始', 'START', '开始', '{\r\n\"top\":200,\r\n\"left\":30,\r\n\"class\":\"eletype-e\"\r\n}', null, null, 'start', null, '1', null, null, '0');
INSERT INTO `sop_tpl_node` VALUES ('2', 'XBLC', '筛人-潜客', 'Java', 'Java', '{\r\n\"top\":150,\r\n\"left\":80,\r\n\"class\":\"eletype-e\"\r\n}', '{\r\n \"stage\": {\r\n \"paramName\": \"stage\",\r\n \"paramDesc\": \"潜客\",\r\n \"valueType\": \"String\",\r\n \"defaultValue\": \"潜客\",\r\n \"required\": true\r\n }\r\n}', '{\r\n \"source\": \"import com.alibaba.fastjson.JSON;\\r\\nimport com.alibaba.fastjson.JSONArray;\\r\\nimport com.alibaba.fastjson.JSONObject;\\r\\nimport com.mcg.plugin.assist.Console;\\r\\n\\r\\npublic class Controller {\\r\\n private Console console = new Console();\\r\\n\\r\\n public JSON execute(JSON param) {\\r\\n console.info(\\\"-----欢迎使用---------\\\");\\r\\n\\r\\n JSONObject result = new JSONObject();\\r\\n return result;\\r\\n }\\r\\n}\\r\\n\"\r\n}', 'users', '{\r\n \"users\": [\r\n {\r\n \"userId\": \"u0001\",\r\n \"stage\":\"潜客\",\r\n \"stageTime\":\"2023-09-06 12:07:23\",\r\n \"sopTime\":\"2023-09-06 12:07:23\"\r\n },\r\n {\r\n \"userId\": \"u0002\",\r\n \"stage\":\"潜客\",\r\n \"stageTime\":\"2023-09-06 12:07:23\",\r\n \"sopTime\":\"2023-09-06 12:07:23\"\r\n }\r\n ]\r\n}', '1', null, null, '0');
INSERT INTO `sop_tpl_node` VALUES ('3', 'XBLC', '营销-潜客第一天', 'Java', 'Java', '{\r\n\"top\":150,\r\n\"left\":80,\r\n\"class\":\"eletype-e\"\r\n}', '{\r\n \"day\": {\r\n \"paramName\": \"day\",\r\n \"paramDesc\": \"潜客第?天\",\r\n \"valueType\": \"Integer\",\r\n \"defaultValue\": \"1\",\r\n \"required\": true\r\n },\r\n \"textContent\": {\r\n \"paramName\": \"textContent\",\r\n \"paramDesc\": \"营销文案\",\r\n \"valueType\": \"String\",\r\n \"defaultValue\": \"尊敬的${userName},优惠券领取url.cn/c134dqwe\",\r\n \"required\": true\r\n }\r\n}', '{\r\n \"source\": \"import com.alibaba.fastjson.JSON;\\r\\nimport com.alibaba.fastjson.JSONArray;\\r\\nimport com.alibaba.fastjson.JSONObject;\\r\\nimport com.mcg.plugin.assist.Console;\\r\\n\\r\\npublic class Controller {\\r\\n private Console console = new Console();\\r\\n\\r\\n public JSON execute(JSON param) {\\r\\n console.info(\\\"-----欢迎使用---------\\\");\\r\\n\\r\\n JSONObject result = new JSONObject();\\r\\n return result;\\r\\n }\\r\\n}\\r\\n\"\r\n}', 'user1day1', '{\r\n \"users\": {\r\n \"u0001\": {\r\n \"userId\": \"u0001\",\r\n \"stage\":\"潜客\",\r\n \"stageTime\":\"2023-09-06 12:07:23\",\r\n \"sopTime\":\"2023-09-06 12:07:23\"\r\n },\r\n \"u0002\": {\r\n \"userId\": \"u0002\",\r\n \"stage\":\"潜客\",\r\n \"stageTime\":\"2023-09-06 12:07:23\",\r\n \"sopTime\":\"2023-09-06 12:07:23\"\r\n }\r\n }\r\n}', '1', '0 0 10 * * ?', '59 59 23 * * ?', '1');
INSERT INTO `sop_tpl_node` VALUES ('4', 'XBLC', '营销-潜客第二天', 'Java', 'Java', '{\r\n\"top\":150,\r\n\"left\":80,\r\n\"class\":\"eletype-e\"\r\n}', '{\r\n \"day\": {\r\n \"paramName\": \"day\",\r\n \"paramDesc\": \"潜客第?天\",\r\n \"valueType\": \"Integer\",\r\n \"defaultValue\": \"2\",\r\n \"required\": true\r\n },\r\n \"textContent\": {\r\n \"paramName\": \"textContent\",\r\n \"paramDesc\": \"营销文案\",\r\n \"valueType\": \"String\",\r\n \"defaultValue\": \"尊敬的${userName},优惠券领取url.cn/c134dqwe\",\r\n \"required\": true\r\n }\r\n}', '{\r\n \"source\": \"import com.alibaba.fastjson.JSON;\\r\\nimport com.alibaba.fastjson.JSONArray;\\r\\nimport com.alibaba.fastjson.JSONObject;\\r\\nimport com.mcg.plugin.assist.Console;\\r\\n\\r\\npublic class Controller {\\r\\n private Console console = new Console();\\r\\n\\r\\n public JSON execute(JSON param) {\\r\\n console.info(\\\"-----欢迎使用---------\\\");\\r\\n\\r\\n JSONObject result = new JSONObject();\\r\\n return result;\\r\\n }\\r\\n}\\r\\n\"\r\n}', 'user1day2', '{\r\n \"users\": {\r\n \"u0001\": {\r\n \"userId\": \"u0001\",\r\n \"stage\":\"潜客\",\r\n \"stageTime\":\"2023-09-06 12:07:23\",\r\n \"sopTime\":\"2023-09-06 12:07:23\"\r\n },\r\n \"u0002\": {\r\n \"userId\": \"u0002\",\r\n \"stage\":\"潜客\",\r\n \"stageTime\":\"2023-09-06 12:07:23\",\r\n \"sopTime\":\"2023-09-06 12:07:23\"\r\n }\r\n }\r\n}', '1', '0 0 10 * * ?', '59 59 23 * * ?', '1');
INSERT INTO `sop_tpl_node` VALUES ('5', 'XBLC', '营销-有意向第一天', 'Java', 'Java', '{\r\n\"top\":150,\r\n\"left\":80,\r\n\"class\":\"eletype-e\"\r\n}', '{\r\n \"day\": {\r\n \"paramName\": \"day\",\r\n \"paramDesc\": \"有意向第?天\",\r\n \"valueType\": \"Integer\",\r\n \"defaultValue\": \"1\",\r\n \"required\": true\r\n },\r\n \"textContent\": {\r\n \"paramName\": \"textContent\",\r\n \"paramDesc\": \"营销文案\",\r\n \"valueType\": \"String\",\r\n \"defaultValue\": \"尊敬的${userName},优惠券领取url.cn/c134dqwe\",\r\n \"required\": true\r\n }\r\n}', '{\r\n \"source\": \"import com.alibaba.fastjson.JSON;\\r\\nimport com.alibaba.fastjson.JSONArray;\\r\\nimport com.alibaba.fastjson.JSONObject;\\r\\nimport com.mcg.plugin.assist.Console;\\r\\n\\r\\npublic class Controller {\\r\\n private Console console = new Console();\\r\\n\\r\\n public JSON execute(JSON param) {\\r\\n console.info(\\\"-----欢迎使用---------\\\");\\r\\n\\r\\n JSONObject result = new JSONObject();\\r\\n return result;\\r\\n }\\r\\n}\\r\\n\"\r\n}', 'user2day1', '{\r\n \"users\": {\r\n \"u0001\": {\r\n \"userId\": \"u0001\",\r\n \"stage\":\"潜客\",\r\n \"stageTime\":\"2023-09-06 12:07:23\",\r\n \"sopTime\":\"2023-09-06 12:07:23\"\r\n },\r\n \"u0002\": {\r\n \"userId\": \"u0002\",\r\n \"stage\":\"潜客\",\r\n \"stageTime\":\"2023-09-06 12:07:23\",\r\n \"sopTime\":\"2023-09-06 12:07:23\"\r\n }\r\n }\r\n}', '1', '0 0 10 * * ?', '59 59 23 * * ?', '1');
INSERT INTO `sop_tpl_node` VALUES ('6', 'XBLC', '营销-有意向第二天', 'Java', 'Java', '{\r\n\"top\":150,\r\n\"left\":80,\r\n\"class\":\"eletype-e\"\r\n}', '{\r\n \"day\": {\r\n \"paramName\": \"day\",\r\n \"paramDesc\": \"有意向第?天\",\r\n \"valueType\": \"Integer\",\r\n \"defaultValue\": \"2\",\r\n \"required\": true\r\n },\r\n \"textContent\": {\r\n \"paramName\": \"textContent\",\r\n \"paramDesc\": \"营销文案\",\r\n \"valueType\": \"String\",\r\n \"defaultValue\": \"尊敬的${userName},优惠券领取url.cn/c134dqwe\",\r\n \"required\": true\r\n }\r\n}', '{\r\n \"source\": \"import com.alibaba.fastjson.JSON;\\r\\nimport com.alibaba.fastjson.JSONArray;\\r\\nimport com.alibaba.fastjson.JSONObject;\\r\\nimport com.mcg.plugin.assist.Console;\\r\\n\\r\\npublic class Controller {\\r\\n private Console console = new Console();\\r\\n\\r\\n public JSON execute(JSON param) {\\r\\n console.info(\\\"-----欢迎使用---------\\\");\\r\\n\\r\\n JSONObject result = new JSONObject();\\r\\n return result;\\r\\n }\\r\\n}\\r\\n\"\r\n}', 'user2day2', '{\r\n \"users\": {\r\n \"u0001\": {\r\n \"userId\": \"u0001\",\r\n \"stage\":\"潜客\",\r\n \"stageTime\":\"2023-09-06 12:07:23\",\r\n \"sopTime\":\"2023-09-06 12:07:23\"\r\n },\r\n \"u0002\": {\r\n \"userId\": \"u0002\",\r\n \"stage\":\"潜客\",\r\n \"stageTime\":\"2023-09-06 12:07:23\",\r\n \"sopTime\":\"2023-09-06 12:07:23\"\r\n }\r\n }\r\n}', '1', '0 0 10 * * ?', '59 59 23 * * ?', '1');
INSERT INTO `sop_tpl_node` VALUES ('7', 'XBLC', 'SOP结束', 'END', '结束', '{\r\n\"top\":150,\r\n\"left\":80,\r\n\"class\":\"eletype-e\"\r\n}', null, null, 'end', '{\r\n \"users\": {\r\n \"u0001\": {\r\n \"userId\": \"u0001\",\r\n \"stage\":\"潜客\",\r\n \"stageTime\":\"2023-09-06 12:07:23\",\r\n \"sopTime\":\"2023-09-06 12:07:23\"\r\n },\r\n \"u0002\": {\r\n \"userId\": \"u0002\",\r\n \"stage\":\"潜客\",\r\n \"stageTime\":\"2023-09-06 12:07:23\",\r\n \"sopTime\":\"2023-09-06 12:07:23\"\r\n }\r\n }\r\n}', '1', null, null, '0');
INSERT INTO `sop_tpl_node` VALUES ('8', 'XBLC', '筛人-有意向', 'Java', 'Java', '{\r\n\"top\":150,\r\n\"left\":80,\r\n\"class\":\"eletype-e\"\r\n}', '{\r\n \"stage\": {\r\n \"paramName\": \"stage\",\r\n \"paramDesc\": \"有意向\",\r\n \"valueType\": \"String\",\r\n \"defaultValue\": \"有意向\",\r\n \"required\": true\r\n }\r\n}', '{\r\n \"source\": \"import com.alibaba.fastjson.JSON;\\r\\nimport com.alibaba.fastjson.JSONArray;\\r\\nimport com.alibaba.fastjson.JSONObject;\\r\\nimport com.mcg.plugin.assist.Console;\\r\\n\\r\\npublic class Controller {\\r\\n private Console console = new Console();\\r\\n\\r\\n public JSON execute(JSON param) {\\r\\n console.info(\\\"-----欢迎使用---------\\\");\\r\\n\\r\\n JSONObject result = new JSONObject();\\r\\n return result;\\r\\n }\\r\\n}\\r\\n\"\r\n}', 'user2', '{\r\n \"users\": {\r\n \"u0001\": {\r\n \"userId\": \"u0001\",\r\n \"stage\":\"潜客\",\r\n \"stageTime\":\"2023-09-06 12:07:23\",\r\n \"sopTime\":\"2023-09-06 12:07:23\"\r\n },\r\n \"u0002\": {\r\n \"userId\": \"u0002\",\r\n \"stage\":\"潜客\",\r\n \"stageTime\":\"2023-09-06 12:07:23\",\r\n \"sopTime\":\"2023-09-06 12:07:23\"\r\n }\r\n }\r\n}', '1', '', '', '0');
INSERT INTO `sop_tpl_node` VALUES ('9', 'XBLC', '营销-旅程阶段刷新', 'Java', 'Java', '{\r\n\"top\":150,\r\n\"left\":80,\r\n\"class\":\"eletype-e\"\r\n}', '{\r\n \"day\": {\r\n \"paramName\": \"day\",\r\n \"paramDesc\": \"潜客第?天\",\r\n \"valueType\": \"Integer\",\r\n \"defaultValue\": \"1\",\r\n \"required\": true\r\n },\r\n \"textContent\": {\r\n \"paramName\": \"textContent\",\r\n \"paramDesc\": \"营销文案\",\r\n \"valueType\": \"String\",\r\n \"defaultValue\": \"尊敬的${userName},优惠券领取url.cn/c134dqwe\",\r\n \"required\": true\r\n }\r\n}', '{\r\n \"source\": \"import com.alibaba.fastjson.JSON;\\r\\nimport com.alibaba.fastjson.JSONArray;\\r\\nimport com.alibaba.fastjson.JSONObject;\\r\\nimport com.mcg.plugin.assist.Console;\\r\\n\\r\\npublic class Controller {\\r\\n private Console console = new Console();\\r\\n\\r\\n public JSON execute(JSON param) {\\r\\n console.info(\\\"-----欢迎使用---------\\\");\\r\\n\\r\\n JSONObject result = new JSONObject();\\r\\n return result;\\r\\n }\\r\\n}\\r\\n\"\r\n}', '', '{\r\n \"users\": {\r\n \"u0001\": {\r\n \"userId\": \"u0001\",\r\n \"stage\":\"潜客\",\r\n \"stageTime\":\"2023-09-06 12:07:23\",\r\n \"sopTime\":\"2023-09-06 12:07:23\"\r\n },\r\n \"u0002\": {\r\n \"userId\": \"u0002\",\r\n \"stage\":\"潜客\",\r\n \"stageTime\":\"2023-09-06 12:07:23\",\r\n \"sopTime\":\"2023-09-06 12:07:23\"\r\n }\r\n }\r\n}', '0', '0 */5 * * * ?', '59 59 23 * * ?', '0');
INSERT INTO `sop_tpl_node` VALUES ('10', 'XBLC', '圈人-全部', 'Sql查询', 'Sql查询', '{\r\n\"top\":150,\r\n\"left\":80,\r\n\"class\":\"eletype-e\"\r\n}', '', '{\r\n \"source\": \"select * from cdp.us ers where tag=\'xxx\'\",\r\n \"dataSourceId\":\"mysql-cdp\"\r\n} ', 'users', '{\r\n \"users\": [\r\n {\r\n \"userId\": \"u0001\",\r\n \"stage\":\"潜客\",\r\n \"stageTime\":\"2023-09-06 12:07:23\",\r\n \"sopTime\":\"2023-09-06 12:07:23\"\r\n },\r\n {\r\n \"userId\": \"u0002\",\r\n \"stage\":\"潜客\",\r\n \"stageTime\":\"2023-09-06 12:07:23\",\r\n \"sopTime\":\"2023-09-06 12:07:23\"\r\n }\r\n ]\r\n}', '1', '', '', '0');