diff --git a/backend/src/main/resources/db/changelog/changes/v1.0.0-data.sql b/backend/src/main/resources/db/changelog/changes/v1.0.0-data.sql index 1a4e30fc..e7ff00e5 100644 --- a/backend/src/main/resources/db/changelog/changes/v1.0.0-data.sql +++ b/backend/src/main/resources/db/changelog/changes/v1.0.0-data.sql @@ -7,22 +7,26 @@ INSERT INTO sys_tenant (id, create_time, code, name, address, contact_name, cont VALUES (1, NOW(), 'admin', '系统管理租户', '北京市朝阳区', '管理员', '13800138000', 'admin@system.com', 1); -- 初始化部门数据 -INSERT INTO sys_department (id, create_time, code, name, description, sort, enabled) -VALUES (1, NOW(), 'ROOT', '根部门', '系统根部门', 0, 1); - INSERT INTO sys_department (id, create_time, code, name, description, parent_id, sort, enabled) VALUES -(2, NOW(), 'IT', '信息技术部', '负责公司IT系统的规划、建设和运维', 1, 1, 1), -(3, NOW(), 'DEV', '研发部', '负责产品研发和技术创新', 1, 2, 1), -(4, NOW(), 'OPS', '运维部', '负责系统运维和技术支持', 1, 3, 1); +(1, NOW(), 'ROOT', '总公司', '总公司', NULL, 0, 1), +(5, NOW(), 'DL', '大连', NULL, 1, 1, 1), +(6, NOW(), 'CD', '成都', NULL, 1, 2, 1), +(7, NOW(), 'SZ', '深圳', NULL, 1, 3, 1); -- 初始化用户数据(密码统一为:123456) INSERT INTO sys_user (id, create_time, username, password, nickname, email, phone, department_id, enabled) VALUES -(1, NOW(), 'admin', '$2a$10$viWVqfZwQxViLQDk7hhVg.ENYT.3zUFf.aBetlarImKPSS0V2gbSa', '超级管理员', 'admin@system.com', '13800138000', 1, 1), -(2, NOW(), 'it_manager', '$2a$10$viWVqfZwQxViLQDk7hhVg.ENYT.3zUFf.aBetlarImKPSS0V2gbSa', 'IT经理', 'it@system.com', '13800138001', 2, 1), -(3, NOW(), 'dev_manager', '$2a$10$viWVqfZwQxViLQDk7hhVg.ENYT.3zUFf.aBetlarImKPSS0V2gbSa', '研发经理', 'dev@system.com', '13800138002', 3, 1), -(4, NOW(), 'ops_manager', '$2a$10$viWVqfZwQxViLQDk7hhVg.ENYT.3zUFf.aBetlarImKPSS0V2gbSa', '运维经理', 'ops@system.com', '13800138003', 4, 1); +(1, NOW(), 'admin', '$2a$10$5jQmYewM2slT.OFeNjnQGOQrImu0aeXVxHxWsV8BCJ.cQiOHBHpVS', '超级管理员', 'admin@system.com', '13800138000', 1, 1), +(5, NOW(), 'tangfengmin', '$2a$10$Ela/xvMnUjpI5fqgXwF1sebpbxNAOaBo2Ar5hVqyAQvTZm/r.btqa', '汤峰岷', 'tangfengmin@iscmtech.com', NULL, 5, 1), +(6, NOW(), 'shengzeqiang', '$2a$10$jeuU3FvTya3ZbS28yvVafu5W5pBc.s8/ZGNHQ7pkhHNp/VsI2wpw2', '盛泽强', 'shengzeqiang@iscmtech.com', NULL, 5, 1), +(7, NOW(), 'wengao', '$2a$10$b/ybO46p/R5e2hDAsNF66un8RpnpWEjXvVs6udbTIAR.Yo9o2HGHO', '文高', 'wengao@iscmtech.com', NULL, 5, 1), +(8, NOW(), 'lvchunlin', '$2a$10$xcnezz8RHbx4SqNVMNn/RuHPzJ/nV.r1jTxx0bl87R.9N0p1j0dQW', '吕春林', 'lvchunlin@iscmtech.com', NULL, 5, 1), +(9, NOW(), 'yinliyan', '$2a$10$N1Sk0wEK/0qs.0/JzANbOOqPUT.gaWhjfZu4oO4PgCXg6ElfZH826', '尹丽妍', 'yinliyan@iscmtech.com', NULL, 5, 1), +(10, NOW(), 'maye', '$2a$10$YPhZjBKxHLNYXzMS6mnc7Of3pPT.6DhBArkJLbCPKgaTiLDWrr58y', '马也', 'maye@iscmtech.com', NULL, 5, 1), +(11, NOW(), 'dengqichen', '$2a$10$fUdDZ33099YboexF/SNQT.55mXzK3Kejb82yc76iCdl25.uqAatkW', '邓骐辰', 'dengqichen@iscmtech.com', NULL, 5, 1), +(12, NOW(), 'wangdongzhu', '$2a$10$OErv/EvBXUocMutXZJe3C.k1gq9/8rrF63pz8mWRBLoORGb/8ELIO', '王栋柱', 'wangdongzhu@iscmtech.com', NULL, 5, 1), +(13, NOW(), 'yangzhenfu', '$2a$10$.WBc0pXTQnrDn2IUm.eRneH9jfu7TIZg2na.K3WaluvjIEts2Iasm', '杨振夫', 'yangzhenfu@iscmtech.com', '15842461837', 5, 1); -- 初始化系统参数 INSERT INTO sys_param (id, create_time, code, name, value, type, description, enabled) @@ -135,21 +139,26 @@ VALUES -- 初始化用户角色关联 INSERT INTO sys_user_role (user_id, role_id) VALUES -( 1, 1), -( 2, 2), -(3, 2), -(4, 3); +(1, 1), -- admin - 管理员 +(5, 3), -- tangfengmin - 开发 +(6, 3), -- shengzeqiang - 开发 +(7, 3), -- wengao - 开发 +(8, 3), -- lvchunlin - 开发 +(9, 3), -- yinliyan - 开发 +(10, 3), -- maye - 开发 +(11, 1), -- dengqichen - 管理员 +(12, 3), -- wangdongzhu - 开发 +(13, 3); -- yangzhenfu - 开发 -- 初始化角色菜单关联 -INSERT INTO sys_role_menu (role_id, menu_id) -SELECT 1, id FROM sys_menu; -- 管理员拥有所有菜单权限 - INSERT INTO sys_role_menu (role_id, menu_id) VALUES --- 运维拥有工作台、运维管理和资源管理权限 +-- 管理员角色(拥有所有菜单) +(1, 1), (1, 2), (1, 3), (1, 4), (1, 5), (1, 6), (1, 7), (1, 99), (1, 100), (1, 101), (1, 102), (1, 104), (1, 200), (1, 201), (1, 202), (1, 203), (1, 204), (1, 205), (1, 206), (1, 300), (1, 301), (1, 302), (1, 303), (1, 304), (1, 1011), (1, 1041), (1, 1042), +-- 运维角色 (2, 99), (2, 200), (2, 201), (2, 202), (2, 203), (2, 204), (2, 205), (2, 300), (2, 301), (2, 302), (2, 303), (2, 304), --- 开发拥有工作台、工作流管理及子菜单、运维管理及应用管理(后端自动补全父菜单,但显式声明更清晰) -(3, 99), (3, 100), (3, 101), (3, 102), (3, 104), (3, 200), (3, 202); +-- 开发角色(只有工作台) +(3, 99); -- ==================== 初始化权限数据 ==================== DELETE FROM sys_permission WHERE id < 10000; @@ -521,27 +530,18 @@ DELETE FROM sys_role_permission; -- 管理员拥有所有权限 INSERT INTO sys_role_permission (role_id, permission_id) -SELECT 1, id FROM sys_permission WHERE id < 10000; +VALUES +(1, 1), (1, 2), (1, 3), (1, 4), (1, 5), (1, 6), (1, 7), (1, 8), (1, 11), (1, 12), (1, 13), (1, 14), (1, 15), (1, 16), (1, 17), (1, 18), (1, 21), (1, 22), (1, 23), (1, 24), (1, 25), (1, 26), (1, 27), (1, 31), (1, 32), (1, 33), (1, 34), (1, 35), (1, 41), (1, 42), (1, 43), (1, 44), (1, 45), (1, 46), (1, 51), (1, 52), (1, 101), (1, 102), (1, 103), (1, 104), (1, 105), (1, 111), (1, 112), (1, 113), (1, 114), (1, 115), (1, 121), (1, 122), (1, 123), (1, 124), (1, 125), (1, 126), (1, 127), (1, 128), (1, 129), (1, 130), (1, 131), (1, 141), (1, 142), (1, 143), (1, 144), (1, 145), (1, 151), (1, 152), (1, 153), (1, 154), (1, 155), (1, 156), (1, 157), (1, 158), (1, 159), (1, 201), (1, 202), (1, 203), (1, 204), (1, 205), (1, 206), (1, 207), (1, 211), (1, 212), (1, 213), (1, 221), (1, 222), (1, 223), (1, 231), (1, 232), (1, 233), (1, 234), (1, 235), (1, 236), (1, 301), (1, 302), (1, 303), (1, 304), (1, 305), (1, 306), (1, 307), (1, 311), (1, 312), (1, 313), (1, 314), (1, 315), (1, 321), (1, 322), (1, 323), (1, 324), (1, 325), (1, 326), (1, 501), (1, 502), (1, 503), (1, 504), (1, 505), (1, 506), (1, 2061), (1, 2062), (1, 2063), (1, 2064), (1, 2065), (1, 2066), (1, 2067); --- 运维角色权限(运维管理权限) +-- 运维角色权限 INSERT INTO sys_role_permission (role_id, permission_id) -SELECT 2, id FROM sys_permission WHERE code LIKE 'deploy:%'; +VALUES +(2, 101), (2, 102), (2, 103), (2, 104), (2, 105), (2, 111), (2, 112), (2, 113), (2, 114), (2, 115), (2, 121), (2, 122), (2, 123), (2, 124), (2, 125), (2, 126), (2, 127), (2, 128), (2, 129), (2, 130), (2, 131), (2, 141), (2, 142), (2, 143), (2, 144), (2, 145), (2, 151), (2, 152), (2, 153), (2, 154), (2, 155), (2, 156), (2, 157), (2, 158), (2, 159); --- 开发角色权限(应用管理权限) +-- 开发角色权限 INSERT INTO sys_role_permission (role_id, permission_id) -SELECT 3, id FROM sys_permission WHERE code LIKE 'deploy:application:%'; - --- ==================== 分配角色给用户 ==================== -DELETE FROM sys_user_role; - --- admin 用户拥有管理员角色 -INSERT INTO sys_user_role (user_id, role_id) VALUES (1, 1); - --- ops_manager 拥有运维角色 -INSERT INTO sys_user_role (user_id, role_id) VALUES (4, 2); - --- dev_manager 拥有开发角色 -INSERT INTO sys_user_role (user_id, role_id) VALUES (3, 3); +VALUES +(3, 501), (3, 502), (3, 503), (3, 504), (3, 505), (3, 506); -- 初始化权限模板 INSERT INTO sys_permission_template (id, create_time, code, name, type, description, enabled) @@ -565,22 +565,41 @@ VALUES (2, 304); -- 基础权限模板关联三方系统菜单 -- 3. 生产环境建议通过管理界面添加外部系统,避免在SQL中暴露明文密码 -- -------------------------------------------------------------------------------------- --- 初始化外部系统(示例数据,生产环境请删除或修改) +-- 初始化外部系统(密码和Token已加密) INSERT INTO sys_external_system ( id, create_by, create_time, deleted, update_by, update_time, version, name, type, url, remark, sort, enabled, auth_type, username, password, token, sync_status, last_sync_time, last_connect_time, config -) VALUES ( - 1, 'admin', '2023-12-01 00:00:00', 0, 'admin', '2023-12-01 00:00:00', 0, - '链宇JENKINS', 'JENKINS', 'https://ly-jenkins.iscmtech.com', '链宇JENKINS', 1, 1, - 'BASIC', 'admin', 'Lianyu!@#~123456', NULL, -- 密码为明文,首次编辑会自动加密 - 'SUCCESS', '2023-12-01 00:00:00', '2023-12-01 00:00:00', '{}' -), ( - 2, 'admin', '2024-12-03 10:35:58.932966', 0, 'admin', '2024-12-03 10:35:58.932966', 0, - '链宇GIT', 'GIT', 'https://ly-gitlab.iscmtech.com/', NULL, 1, 1, - 'TOKEN', NULL, NULL, 'cNSud7D1GmYQKEMco7s5', -- Token为明文,首次编辑会自动加密 - NULL, NULL, NULL, '{}' -); +) VALUES +(1, 'admin', '2023-12-01 00:00:00', 0, 'admin', NOW(), 9, + '链宇JENKINS', 'JENKINS', 'https://ly-jenkins.iscmtech.com', '链宇JENKINS', 1, 1, + 'BASIC', 'admin', 'b2d6f7e59ba92d0e7e5924018cfd91d61c1faf16b38daaaad27b9b273068c45ce9ace612c33800454db4c8099a5802ae', NULL, + 'SUCCESS', '2023-12-01 00:00:00', NOW(), NULL), + +(2, 'admin', '2024-12-03 10:35:58.932966', 0, 'admin', NOW(), 12, + '链宇GIT', 'GIT', 'https://ly-gitlab.iscmtech.com/', NULL, 1, 1, + 'TOKEN', NULL, NULL, 'a966e69226d353d020f8e21021cf88b0e688768720afc34bc7cb544bf42aa4ff77ce4c2f8b8fa52b19c2bfd4ef7d310c', + NULL, NULL, NOW(), NULL), + +(3, 'admin', '2025-11-11 13:59:15.047', 0, 'admin', NOW(), 12, + '隆基JENKINS(代理)', 'JENKINS', 'https://develop1.iscmtech.com/longi/jenkins/', NULL, 1, 1, + 'BASIC', 'ibpuser', 'a3d0c50bcb2eef22230d0be1699d03f940c9fbe930a3b172cd34da193f96fefe', NULL, + NULL, NULL, NOW(), NULL), + +(4, 'admin', '2025-11-11 14:00:11.193', 0, 'admin', NOW(), 18, + '隆基GIT(代理)', 'GIT', 'https://develop1.iscmtech.com/longi/git/', 'bLxnkjN4Tq3W7zSwumsW', 1, 1, + 'TOKEN', 'admin', '0e4b34f53cbc8a337f92925256d0bfa2343c318521cebcc897b3a7b3f280ef8db6e5d90f2a70bba07bc7972d552fb50ffe143d7e7e1bd6ce8362e52dde500dcbebdf54b53ee06c2d7c49959d20786abf64bae5702f9e2c4a762d33d72c3c441a64066d97377a3a1190511e083dcdc178c60fc05d0c54ceaf15edbefc1b46f55a9d229bc1d88a6c0102251f25d30c490ea19158351acfb799d87c0be98ad1d2d13731ec0395bf81f54c7d51160039e6fb647562f68c0208a535519e2b52b08c7641e1c173695d7de4c2051ac35d9188103886e8ac9202a3410c44016bb336bbd1', 'd8c67ef9009640cff636ebde8f5ff19b3ae352ab068cec2159f6ea42193664794a191eb5e4ad2852f42d21c27922307e', + NULL, NULL, NOW(), NULL), + +(5, 'admin', '2025-11-11 14:00:53.000', 0, 'admin', NOW(), 7, + '链宇本地JENKINS', 'JENKINS', 'http://192.168.2.201:9096/', NULL, 1, 1, + 'BASIC', 'admin', '1953e9314f6e81d616f7e4e6d0aab0c581b25581280be8858d602cfe81d698ee782de42eeb8e0d288d60414bbbb5cd89', NULL, + NULL, NULL, NOW(), NULL), + +(6, 'admin', '2025-11-20 11:17:09.611', 0, 'admin', NOW(), 3, + '供应计划GIT', 'GIT', 'http://192.168.1.74:18888', NULL, 1, 1, + 'TOKEN', 'admin', '1efa55a082da05c7b744ab09aa819f3950627215d0352e0f0197880ec2c9f75b', '9aa1357bf0823ee2027818ff07a850d9bd82fc07d62e03ad42250a6dce9c6417c5cb01caf65f5e77b85f2c4936fc1209', + NULL, NULL, NOW(), NULL); -- -------------------------------------------------------------------------------------- -- 初始化工作流相关数据 @@ -596,647 +615,7 @@ VALUES ('审批流程', 'APPROVAL', '纯审批流程', 'AuditOutlined', 5, '["MANUAL"]', 1, 'system', NOW(), 'system', NOW(), 0, 0), ('其他', 'OTHER', '其他类型流程', 'AppstoreOutlined', 99, '["MANUAL"]', 1, 'system', NOW(), 'system', NOW(), 0, 0); --- 工作流定义测试数据 -INSERT INTO workflow_definition ( - -- 基础信息 - name, `key`, process_definition_id, flow_version, description, category_id, form_definition_id, - -- 流程配置 - graph, - -- 流程属性 - status, - -- 审计字段 - create_time, update_time, create_by, update_by, deleted, version -) VALUES --- 简单脚本流程:开始 -> 脚本任务 -> 结束 -( - '简单脚本流程', 'simple_script_flow', null, 1, '一个包含脚本任务的简单流程', 1, null, - '{ - "nodes" : [ { - "id" : "startEvent1", - "code" : "START_EVENT", - "type" : "START_EVENT", - "name" : "开始", - "graph" : { - "shape" : "circle", - "size" : { - "width" : 40, - "height" : 40 - }, - "style" : { - "fill" : "#e8f7ff", - "stroke" : "#1890ff", - "icon" : "play-circle", - "iconColor" : "#1890ff", - "strokeWidth" : 2 - }, - "ports" : { - "groups" : { - "out" : { - "position" : "right", - "attrs" : { - "circle" : { - "r" : 4, - "fill" : "#ffffff", - "stroke" : "#1890ff" - } - } - } - }, - "types" : [ "out" ] - }, - "position" : { - "x" : 100, - "y" : 100 - } - }, - "config" : { - "name" : "开始节点", - "description" : "启动流程" - } - }, { - "id" : "scriptTask1", - "code" : "SCRIPT_TASK", - "type" : "SCRIPT_TASK", - "name" : "执行脚本", - "graph" : { - "shape" : "rect", - "size" : { - "width" : 40, - "height" : 40 - }, - "style" : { - "fill" : "#fff1f0", - "stroke" : "#ff4d4f", - "icon" : "code", - "iconColor" : "#ff4d4f", - "strokeWidth" : 2 - }, - "ports" : { - "groups" : { - "in" : { - "position" : "left", - "attrs" : { - "circle" : { - "r" : 4, - "fill" : "#ffffff", - "stroke" : "#1890ff" - } - } - }, - "out" : { - "position" : "right", - "attrs" : { - "circle" : { - "r" : 4, - "fill" : "#ffffff", - "stroke" : "#1890ff" - } - } - } - }, - "types" : [ "in", "out" ] - }, - "position" : { - "x" : 300, - "y" : 100 - } - }, - "config" : { - "name" : "脚本任务", - "description" : "执行一个简单的Shell脚本", - "language" : "shell", - "script" : "echo ''Hello World''" - } - }, { - "id" : "endEvent1", - "code" : "END_EVENT", - "type" : "END_EVENT", - "name" : "结束", - "graph" : { - "shape" : "circle", - "size" : { - "width" : 40, - "height" : 40 - }, - "style" : { - "fill" : "#fff1f0", - "stroke" : "#ff4d4f", - "icon" : "stop", - "iconColor" : "#ff4d4f", - "strokeWidth" : 2 - }, - "ports" : { - "groups" : { - "in" : { - "position" : "left", - "attrs" : { - "circle" : { - "r" : 4, - "fill" : "#ffffff", - "stroke" : "#1890ff" - } - } - } - }, - "types" : [ "in" ] - }, - "position" : { - "x" : 500, - "y" : 100 - } - }, - "config" : { - "name" : "结束节点", - "description" : "流程结束" - } - } ], - "edges" : [ { - "id" : "flow1", - "from" : "startEvent1", - "to" : "scriptTask1", - "name" : "开始到脚本", - "config" : { - "type" : "sequence" - }, - "properties" : null - }, { - "id" : "flow2", - "from" : "scriptTask1", - "to" : "endEvent1", - "name" : "脚本到结束", - "config" : { - "type" : "sequence" - }, - "properties" : null - } ] -}', - 'DRAFT', - NOW(), NOW(), NULL, NULL, 0, 0 -), - --- 复杂业务流程:开始 -> 脚本任务A -> 脚本任务B -> 结束 -( - '复杂业务流程', 'complex_business_flow', null, 1, '包含多个脚本任务节点的业务流程', 1, null, - '{ - "nodes" : [ { - "id" : "startEvent1", - "code" : "START_EVENT", - "type" : "START_EVENT", - "name" : "开始", - "graph" : { - "shape" : "circle", - "size" : { - "width" : 40, - "height" : 40 - }, - "style" : { - "fill" : "#e8f7ff", - "stroke" : "#1890ff", - "icon" : "play-circle", - "iconColor" : "#1890ff", - "strokeWidth" : 2 - }, - "ports" : { - "groups" : { - "out" : { - "position" : "right", - "attrs" : { - "circle" : { - "r" : 4, - "fill" : "#ffffff", - "stroke" : "#1890ff" - } - } - } - }, - "types" : [ "out" ] - }, - "position" : { - "x" : 100, - "y" : 100 - } - }, - "config" : { - "name" : "开始节点", - "description" : "启动流程" - } - }, { - "id" : "scriptTask1", - "code" : "SCRIPT_TASK", - "type" : "SCRIPT_TASK", - "name" : "数据处理", - "graph" : { - "shape" : "rect", - "size" : { - "width" : 40, - "height" : 40 - }, - "style" : { - "fill" : "#fff1f0", - "stroke" : "#ff4d4f", - "icon" : "code", - "iconColor" : "#ff4d4f", - "strokeWidth" : 2 - }, - "ports" : { - "groups" : { - "in" : { - "position" : "left", - "attrs" : { - "circle" : { - "r" : 4, - "fill" : "#ffffff", - "stroke" : "#1890ff" - } - } - }, - "out" : { - "position" : "right", - "attrs" : { - "circle" : { - "r" : 4, - "fill" : "#ffffff", - "stroke" : "#1890ff" - } - } - } - }, - "types" : [ "in", "out" ] - }, - "position" : { - "x" : 300, - "y" : 100 - } - }, - "config" : { - "name" : "脚本任务A", - "description" : "数据处理", - "language" : "shell", - "script" : "process_data.sh" - } - }, { - "id" : "scriptTask2", - "code" : "SCRIPT_TASK", - "type" : "SCRIPT_TASK", - "name" : "生成报告", - "graph" : { - "shape" : "rect", - "size" : { - "width" : 40, - "height" : 40 - }, - "style" : { - "fill" : "#fff1f0", - "stroke" : "#ff4d4f", - "icon" : "code", - "iconColor" : "#ff4d4f", - "strokeWidth" : 2 - }, - "ports" : { - "groups" : { - "in" : { - "position" : "left", - "attrs" : { - "circle" : { - "r" : 4, - "fill" : "#ffffff", - "stroke" : "#1890ff" - } - } - }, - "out" : { - "position" : "right", - "attrs" : { - "circle" : { - "r" : 4, - "fill" : "#ffffff", - "stroke" : "#1890ff" - } - } - } - }, - "types" : [ "in", "out" ] - }, - "position" : { - "x" : 500, - "y" : 100 - } - }, - "config" : { - "name" : "脚本任务B", - "description" : "生成报告", - "language" : "shell", - "script" : "generate_report.sh" - } - }, { - "id" : "endEvent1", - "code" : "END_EVENT", - "type" : "END_EVENT", - "name" : "结束", - "graph" : { - "shape" : "circle", - "size" : { - "width" : 40, - "height" : 40 - }, - "style" : { - "fill" : "#fff1f0", - "stroke" : "#ff4d4f", - "icon" : "stop", - "iconColor" : "#ff4d4f", - "strokeWidth" : 2 - }, - "ports" : { - "groups" : { - "in" : { - "position" : "left", - "attrs" : { - "circle" : { - "r" : 4, - "fill" : "#ffffff", - "stroke" : "#1890ff" - } - } - } - }, - "types" : [ "in" ] - }, - "position" : { - "x" : 700, - "y" : 100 - } - }, - "config" : { - "name" : "结束节点", - "description" : "流程结束" - } - } ], - "edges" : [ { - "id" : "flow1", - "from" : "startEvent1", - "to" : "scriptTask1", - "name" : "开始到处理", - "config" : { - "type" : "sequence" - }, - "properties" : null - }, { - "id" : "flow2", - "from" : "scriptTask1", - "to" : "scriptTask2", - "name" : "处理到报告", - "config" : { - "type" : "sequence" - }, - "properties" : null - }, { - "id" : "flow3", - "from" : "scriptTask2", - "to" : "endEvent1", - "name" : "报告到结束", - "config" : { - "type" : "sequence" - }, - "properties" : null - } ] -}', - 'DRAFT', - NOW(), NOW(), NULL, NULL, 0, 0 -); - - --- -------------------------------------------------------------------------------------- --- 初始化工作流节点定义数据 --- -------------------------------------------------------------------------------------- --- 初始化工作流节点定义数据 -INSERT INTO workflow_node_definition ( - node_type, node_code, node_name, description, category, - ui_variables, panel_variables_schema, local_variables_schema, - form_variables_schema, enabled, - create_time, create_by, update_time, update_by, version, deleted -) VALUES --- 开始节点 -( - 'START_EVENT', 'START_EVENT', '开始节点', '工作流的起点', 'EVENT', - '{ - "shape": "circle", - "size": {"width": 40, "height": 40}, - "style": { - "fill": "#e8f7ff", - "stroke": "#1890ff", - "strokeWidth": 2, - "icon": "play-circle", - "iconColor": "#1890ff" - }, - "ports": { - "groups": { - "out": { - "position": "right", - "attrs": { - "circle": {"r": 4, "fill": "#ffffff", "stroke": "#1890ff"} - } - } - } - } - }', - '{ - "type": "object", - "properties": { - "code": {"type": "string", "title": "节点Code"}, - "name": {"type": "string", "title": "节点名称"}, - "description": {"type": "string", "title": "节点描述"} - }, - "required": ["code", "name"] - }', - '{}', - '{"formItems": []}', - 1, - NOW(), 'system', NOW(), 'system', 1, 0 -), --- 结束节点 -( - 'END_EVENT', 'END_EVENT', '结束节点', '工作流的终点', 'EVENT', - '{ - "shape": "circle", - "size": {"width": 40, "height": 40}, - "style": { - "fill": "#fff1f0", - "stroke": "#ff4d4f", - "strokeWidth": 2, - "icon": "stop", - "iconColor": "#ff4d4f" - }, - "ports": { - "groups": { - "in": { - "position": "left", - "attrs": { - "circle": {"r": 4, "fill": "#ffffff", "stroke": "#1890ff"} - } - } - } - } - }', - '{ - "type": "object", - "properties": { - "code": {"type": "string", "title": "节点Code"}, - "name": {"type": "string", "title": "节点名称"}, - "description": {"type": "string", "title": "节点描述"} - }, - "required": ["code", "name"] - }', - '{}', - '{"formItems": []}', - 1, - NOW(), 'system', NOW(), 'system', 1, 0 -), --- 脚本任务节点 -( - 'SCRIPT_TASK', 'SCRIPT_TASK', '脚本任务', '脚本执行任务', 'TASK', - '{ - "shape": "rect", - "size": {"width": 120, "height": 60}, - "style": { - "fill": "#ffffff", - "stroke": "#1890ff", - "strokeWidth": 2, - "icon": "code", - "iconColor": "#1890ff" - }, - "ports": { - "groups": { - "in": { - "position": "left", - "attrs": { - "circle": {"r": 4, "fill": "#ffffff", "stroke": "#1890ff"} - } - }, - "out": { - "position": "right", - "attrs": { - "circle": {"r": 4, "fill": "#ffffff", "stroke": "#1890ff"} - } - } - } - } - }', - '{ - "type": "object", - "properties": { - "code": {"type": "string", "title": "节点Code"}, - "name": {"type": "string", "title": "节点名称"}, - "description": {"type": "string", "title": "节点描述"}, - "script": { - "type": "string", - "title": "脚本内容", - "format": "textarea", - "description": "需要执行的脚本内容" - }, - "language": { - "type": "string", - "title": "脚本语言", - "default": "shell", - "enum": ["shell", "python", "javascript"], - "enumNames": ["Shell脚本", "Python脚本", "JavaScript脚本"] - }, - "interpreter": { - "type": "string", - "title": "解释器路径", - "description": "脚本解释器的路径,例如:/bin/bash" - }, - "workingDirectory": { - "type": "string", - "title": "工作目录", - "default": "/tmp" - }, - "delegate": { - "type": "string", - "title": "执行委派者", - "default": "${shellTaskDelegate}" - } - }, - "required": ["code", "name", "script", "language", "delegate"] - }', - '{ - "environment": {"type": "object", "additionalProperties": {"type": "string"}} - }', - '{"formItems": []}', - 1, - NOW(), 'system', NOW(), 'system', 1, 0 -); - --- -------------------------------------------------------------------------------------- --- 初始化项目管理数据 --- -------------------------------------------------------------------------------------- - --- 初始化项目组数据 --- 注意:以下数据已注释,需要时请取消注释并修改为实际数据 --- INSERT INTO deploy_project_group (id, create_by, create_time, tenant_code, type, project_group_code, project_group_name, project_group_desc, enabled, sort) --- VALUES --- (1, 'admin', NOW(), 'admin', 'PRODUCT', 'DEMO', '示例项目组', '用于演示的项目组', 1, 1), --- (2, 'admin', NOW(), 'admin', 'PRODUCT', 'PLATFORM', '平台项目组', '平台相关的项目组', 1, 2); - --- 初始化应用数据 --- 注意:以下数据已注释,需要时请取消注释并修改为实际数据 --- INSERT INTO deploy_application ( --- id, create_by, create_time, --- project_group_id, app_code, app_name, app_desc, enabled, --- repo_url, repo_branch, repo_type, build_type, dev_language, dev_framework, sort --- ) --- VALUES --- ( --- 1, 'admin', NOW(), --- 1, 'DEMO-APP', '示例应用', '用于演示的应用', 1, --- 'https://github.com/demo/demo-app.git', 'main', 'GIT', 'MAVEN', 'JAVA', 'SPRING_BOOT', 1 --- ), --- ( --- 2, 'admin', NOW(), --- 1, 'DEMO-WEB', '示例前端', '用于演示的前端应用', 1, --- 'https://github.com/demo/demo-web.git', 'main', 'GIT', 'NPM', 'NODEJS', 'VUE', 2 --- ), --- ( --- 3, 'admin', NOW(), --- 2, 'PLATFORM-API', '平台API', '平台后端服务', 1, --- 'https://github.com/platform/platform-api.git', 'main', 'GIT', 'MAVEN', 'JAVA', 'SPRING_BOOT', 1 --- ), --- ( --- 4, 'admin', NOW(), --- 2, 'PLATFORM-WEB', '平台前端', '平台前端应用', 1, --- 'https://github.com/platform/platform-web.git', 'main', 'GIT', 'NPM', 'NODEJS', 'VUE', 2 --- ); - --- -------------------------------------------------------------------------------------- --- 初始化通知渠道数据 --- -------------------------------------------------------------------------------------- - --- 企业微信通知渠道示例 -INSERT INTO sys_notification_channel -(name, channel_type, config, enabled, description, create_by, create_time, update_by, update_time, version, deleted) -VALUES -('研发部企业微信群', 'WEWORK', - '{"webhookUrl":"https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=example-key-please-replace"}', - 0, - '研发部通知群,用于部署通知(示例数据,请修改为实际的Webhook地址)', - 'admin', NOW(), 'admin', NOW(), 0, 0); - --- 飞书、邮件等其他渠道类型暂未启用,等后续开启相应枚举后再添加示例数据 --- ('运维飞书告警群', 'FEISHU', --- '{"webhookUrl":"https://open.feishu.cn/open-apis/bot/v2/hook/example-hook-id","secret":"example-secret"}', --- 'DISABLED', --- '运维团队告警通知(示例数据,请修改为实际配置)', --- 'admin', NOW(), 'admin', NOW(), 0, 0), --- --- ('管理员邮件通知', 'EMAIL', --- '{"smtpHost":"smtp.qq.com","smtpPort":465,"username":"notify@example.com","password":"example-password","fromEmail":"notify@example.com","ssl":true}', --- 'DISABLED', --- '管理员邮件通知渠道(示例数据,请修改为实际配置)', --- 'admin', NOW(), 'admin', NOW(), 0, 0); - --- -------------------------------------------------------------------------------------- --- 初始化表单分类数据 --- -------------------------------------------------------------------------------------- - +-- 表单分类初始数据 INSERT INTO form_category (name, code, description, icon, sort, enabled, create_by, create_time, update_by, update_time, version, deleted) VALUES ('审批表单', 'APPROVAL', '用于审批流程的表单', 'CheckCircleOutlined', 1, 1, 'system', NOW(), 'system', NOW(), 0, 0), @@ -1244,75 +623,103 @@ VALUES ('问卷调查', 'SURVEY', '用于问卷调查的表单', 'FormOutlined', 3, 1, 'system', NOW(), 'system', NOW(), 0, 0), ('其他', 'OTHER', '其他类型的表单', 'FileOutlined', 99, 1, 'system', NOW(), 'system', NOW(), 0, 0); +-- 表单定义数据(schema字段已压缩为单行JSON) +INSERT INTO form_definition ( + id, name, `key`, form_version, category_id, description, `schema`, tags, status, is_template, + create_by, create_time, update_by, update_time, version, deleted +) VALUES +(2, '部署表单', 'deploy-form', 1, 4, '', '{"fields":[{"id":"field_1762752319676_e1xws30b1","name":"grid_1762752319676","type":"grid","label":"栅格布局","gutter":16,"columns":3,"children":[[],[{"id":"field_1762752361412_f30h9gjou","name":"jenkins.serverId","type":"input","label":"JENKINS服务器","hidden":true,"required":false,"placeholder":"请输入"}],[]],"columnSpans":[4,16,4]},{"id":"field_1762752334430_66a0kzims","name":"grid_1762752319676_copy_1762752334430","type":"grid","label":"栅格布局","gutter":16,"columns":3,"children":[[],[{"id":"field_1762752390005_a50w8lszi","name":"jenkins.jobName","type":"input","label":"jobName","hidden":true,"placeholder":"请输入"}],[]],"columnSpans":[4,16,4]},{"id":"field_1762752335032_8bky41k4c","name":"grid_1762752319676_copy_1762752335032","type":"grid","label":"栅格布局","gutter":16,"columns":3,"children":[[],[{"id":"field_1762752418342_8inxz8rvi","name":"jenkins.branch","type":"input","label":"分支","hidden":true,"placeholder":"请输入"}],[]],"columnSpans":[4,16,4]},{"id":"field_1762752335398_5xhewg0zq","name":"grid_1762752319676_copy_1762752335398","type":"grid","label":"栅格布局","gutter":16,"columns":3,"children":[[],[{"id":"field_1762752438046_6twc4raqr","name":"teamId","type":"input","label":"teamId","hidden":true,"placeholder":"请输入"}],[]],"columnSpans":[4,16,4]},{"id":"field_1762752335577_0x4amo9qf","name":"grid_1762752319676_copy_1762752335577","type":"grid","label":"栅格布局","gutter":16,"columns":3,"children":[[],[{"id":"field_1762752448941_i82959069","name":"teamApplicationId","type":"input","label":"teamApplicationId","hidden":true,"placeholder":"请输入"}],[]],"columnSpans":[4,16,4]},{"id":"field_1762752335769_0qiosnz76","name":"grid_1762752319676_copy_1762752335769","type":"grid","label":"栅格布局","gutter":16,"columns":3,"children":[[],[{"id":"field_1762752459828_bepmj343m","name":"applicationId","type":"input","label":"applicationId","hidden":true,"placeholder":"请输入"}],[]],"columnSpans":[4,16,4]},{"id":"field_1762752335942_131m2qjq6","name":"grid_1762752319676_copy_1762752335942","type":"grid","label":"栅格布局","gutter":16,"columns":3,"children":[[],[{"id":"field_1762752474328_73gkcmzq7","name":"applicationCode","type":"input","label":"applicationCode","hidden":true,"placeholder":"请输入"}],[]],"columnSpans":[4,16,4]},{"id":"field_1762752336090_89by9g7th","name":"grid_1762752319676_copy_1762752336090","type":"grid","label":"栅格布局","gutter":16,"columns":3,"children":[[],[{"id":"field_1762752482872_wz9x42mw3","name":"applicationName","type":"input","label":"applicationName","hidden":true,"placeholder":"请输入"}],[]],"columnSpans":[4,16,4]},{"id":"field_1762752336283_f3bxgxm6r","name":"grid_1762752319676_copy_1762752336283","type":"grid","label":"栅格布局","gutter":16,"columns":3,"children":[[],[{"id":"field_1762752497372_cdy3hw5wv","name":"environmentId","type":"input","label":"environmentId","hidden":true,"placeholder":"请输入"}],[]],"columnSpans":[4,16,4]},{"id":"field_1762752336459_m385kcntl","name":"grid_1762752319676_copy_1762752336459","type":"grid","label":"栅格布局","gutter":16,"columns":3,"children":[[],[{"id":"field_1762752491499_1x19c8nii","name":"environmentCode","type":"input","label":"environmentCode","hidden":true,"placeholder":"请输入"}],[]],"columnSpans":[4,16,4]},{"id":"field_1762752336623_ucx26c6gz","name":"grid_1762752319676_copy_1762752336623","type":"grid","label":"栅格布局","gutter":16,"columns":3,"children":[[],[{"id":"field_1762752517722_cf7urti6m","name":"environmentName","type":"input","label":"environmentName","hidden":true,"placeholder":"请输入"}],[]],"columnSpans":[4,16,4]},{"id":"field_1762752336800_0oyor17da","name":"grid_1762752319676_copy_1762752336800","type":"grid","label":"栅格布局","gutter":16,"columns":3,"children":[[],[{"id":"field_1762752531624_3ts5glb6a","name":"approval.required","type":"input","label":"approval.required","hidden":true,"placeholder":"请输入"}],[]],"columnSpans":[4,16,4]},{"id":"field_1762752336961_wvkhpamoc","name":"grid_1762752319676_copy_1762752336961","type":"grid","label":"栅格布局","gutter":16,"columns":3,"children":[[],[{"id":"field_1762752551116_45izftfxb","name":"approval.userNames","type":"input","label":"approval.userNames","hidden":true,"placeholder":"请输入"}],[]],"columnSpans":[4,16,4]},{"id":"field_1762752337312_p7sycmpz7","name":"grid_1762752319676_copy_1762752337312","type":"grid","label":"栅格布局","gutter":16,"columns":3,"children":[[],[{"id":"field_1762752593304_st091maez","name":"notification.notificationChannelId","type":"input","label":"notification.notificationChannelId","hidden":true,"placeholder":"请输入"}],[]],"columnSpans":[4,16,4]},{"id":"field_1763083334603_4lilw52rl","name":"grid_1762752319676_copy_1762752337137_copy_1763083311988_copy_1763083334603","type":"grid","label":"栅格布局","gutter":16,"columns":3,"children":[[],[{"id":"field_1763083334603_7k9h8bbjo","name":"notification.preApprovalNotificationEnabled","type":"input","label":"notification.preApprovalNotificationEnabled","hidden":true,"placeholder":"请输入"}],[]],"columnSpans":[4,16,4]},{"id":"field_1762752337137_j3c61hpyo","name":"grid_1762752319676_copy_1762752337137","type":"grid","label":"栅格布局","gutter":16,"columns":3,"children":[[],[{"id":"field_1762752611613_53p41q60n","name":"notification.diffNotificationTemplateId","type":"input","label":"notification.diffNotificationTemplateId","hidden":true,"placeholder":"请输入"}],[]],"columnSpans":[4,16,4]},{"id":"field_1763083311988_gv2xmdyx8","name":"grid_1762752319676_copy_1762752337137_copy_1763083311988","type":"grid","label":"栅格布局","gutter":16,"columns":3,"children":[[],[{"id":"field_1763083311988_i1e1wgifa","name":"notification.preApprovalNotificationTemplateId","type":"input","label":"notification.preApprovalNotificationTemplateId","hidden":true,"placeholder":"请输入"}],[]],"columnSpans":[4,16,4]},{"id":"field_1763083335787_v48wsdpfo","name":"grid_1762752319676_copy_1762752337137_copy_1763083311988_copy_1763083335787","type":"grid","label":"栅格布局","gutter":16,"columns":3,"children":[[],[{"id":"field_1763083335787_ooy472ae9","name":"notification.buildNotificationEnabled","type":"input","label":"notification.buildNotificationEnabled","hidden":true,"placeholder":"请输入"}],[]],"columnSpans":[4,16,4]},{"id":"field_1763083336723_tgg9f4mmm","name":"grid_1762752319676_copy_1762752337137_copy_1763083311988_copy_1763083336723","type":"grid","label":"栅格布局","gutter":16,"columns":3,"children":[[],[{"id":"field_1763083336723_89tbrzif1","name":"notification.buildNotificationTemplateId","type":"input","label":"notification.buildNotificationTemplateId","hidden":true,"placeholder":"请输入"}],[]],"columnSpans":[4,16,4]},{"id":"field_1763083337546_m3ll1juva","name":"grid_1762752319676_copy_1762752337137_copy_1763083311988_copy_1763083337546","type":"grid","label":"栅格布局","gutter":16,"columns":3,"children":[[],[{"id":"field_1763083337546_gkmdgnrua","name":"notification.buildFailureFileEnabled","type":"input","label":"notification.buildFailureFileEnabled","hidden":true,"placeholder":"请输入"}],[]],"columnSpans":[4,16,4]},{"id":"field_1764840600568_1wx1u41dn","name":"grid_1762752611613_copy_1763175632590_copy_1764840600568","type":"grid","label":"栅格布局","gutter":16,"columns":3,"children":[[],[{"id":"field_1764840600568_y86iq0p2p","name":"sourceRepository.systemId","type":"input","label":"sourceRepository.systemId","hidden":true,"required":true,"placeholder":"请输入","validationRules":[]}],[]],"columnSpans":[4,16,4]},{"id":"field_1764840651019_4hfu2no9x","name":"grid_1762752611613_copy_1763175632590_copy_1764840600568_copy_1764840651019","type":"grid","label":"栅格布局","gutter":16,"columns":3,"children":[[],[{"id":"field_1764840651019_4pqkrtq51","name":"sourceRepository.projectId","type":"input","label":"sourceRepository.projectId","hidden":true,"required":true,"placeholder":"请输入","validationRules":[]}],[]],"columnSpans":[4,16,4]},{"id":"field_1764840687061_oklskdh7l","name":"grid_1762752611613_copy_1763175632590_copy_1764840600568_copy_1764840651019_copy_1764840687061","type":"grid","label":"栅格布局","gutter":16,"columns":3,"children":[[],[{"id":"field_1764840687061_rrzoz2r6v","name":"sourceRepository.branch","type":"input","label":"sourceRepository.branch","hidden":true,"required":true,"placeholder":"请输入","validationRules":[]}],[]],"columnSpans":[4,16,4]},{"id":"field_1764840701760_kh8d6xuh0","name":"grid_1762752611613_copy_1763175632590_copy_1764840600568_copy_1764840651019_copy_1764840687061_copy_1764840701760","type":"grid","label":"栅格布局","gutter":16,"columns":3,"children":[[],[{"id":"field_1764840701760_h6nsr16i7","name":"targetRepository.projectId","type":"input","label":"targetRepository.projectId","hidden":true,"required":true,"placeholder":"请输入","validationRules":[]}],[]],"columnSpans":[4,16,4]},{"id":"field_1764840701235_mefcrmow6","name":"grid_1762752611613_copy_1763175632590_copy_1764840600568_copy_1764840651019_copy_1764840687061_copy_1764840701235","type":"grid","label":"栅格布局","gutter":16,"columns":3,"children":[[],[{"id":"field_1764840701235_rqipw1duz","name":"targetRepository.systemId","type":"input","label":"targetRepository.systemId","hidden":true,"required":true,"placeholder":"请输入","validationRules":[]}],[]],"columnSpans":[4,16,4]},{"id":"field_1764840702192_00wdhyb8p","name":"grid_1762752611613_copy_1763175632590_copy_1764840600568_copy_1764840651019_copy_1764840687061_copy_1764840702192","type":"grid","label":"栅格布局","gutter":16,"columns":3,"children":[[],[{"id":"field_1764840702192_ueel90096","name":"targetRepository.branch","type":"input","label":"targetRepository.branch","hidden":true,"required":true,"placeholder":"请输入","validationRules":[]}],[]],"columnSpans":[4,16,4]},{"id":"field_1762752611613_7fwwwheii","name":"grid_1762752611613","type":"grid","label":"栅格布局","gutter":16,"columns":3,"children":[[],[{"id":"field_1762752617388_qisqw9kxo","name":"deployUser","type":"input","label":"部署人","hidden":true,"required":true,"placeholder":"请输入"}],[]],"columnSpans":[4,16,4]},{"id":"field_1763175632590_dxl45pyit","name":"grid_1762752611613_copy_1763175632590","type":"grid","label":"栅格布局","gutter":16,"columns":3,"children":[[],[{"id":"field_1763175632590_ifgs4x8zm","name":"deployRemark","type":"input","label":"部署内容","required":true,"placeholder":"请输入","validationRules":[{"type":"pattern","value":"/^\\\\[(task|bugfix)-\\\\d+\\\\].+$/","message":"请填写正确的[task-x]或者[bugfix-x]","trigger":"blur"}]}],[]],"columnSpans":[4,16,4]}],"version":"1.0","formConfig":{"size":"middle","labelAlign":"top"}}', + NULL, 'PUBLISHED', 0, 'admin', NOW(), 'admin', NOW(), 0, 0); + +-- 工作流定义数据(graph字段已压缩为单行JSON) +-- 注意:graph字段包含完整的流程图配置,数据较大 +INSERT INTO `deploy-ease-platform`.`workflow_definition` (`id`, `name`, `key`, `category_id`, `form_definition_id`, `process_definition_id`, `flow_version`, `description`, `bpmn_xml`, `graph`, `status`, `create_by`, `create_time`, `deleted`, `update_by`, `update_time`, `version`) VALUES (1, 'JENKINS部署项目流程', 'jenkins-deploy-project-workflow', 2, 2, '', 1, '', '', '{\"edges\": [{\"id\": \"eid_a56acab7_5877_489d_a798_40ac0e3f7269\", \"to\": \"sid_20005e1e_f5e1_4ae7_a2cd_18e58434e095\", \"from\": \"sid_f1188946_c6ff_4480_964e_82f65fdcc514\", \"name\": \"${approval.required == \'true\'}\", \"config\": {\"type\": \"sequence\", \"condition\": {\"type\": \"EXPRESSION\", \"priority\": 10, \"expression\": \"${approval.required == \'true\'}\"}}, \"vertices\": [{\"x\": -307, \"y\": -457}, {\"x\": -150, \"y\": -630}, {\"x\": 8, \"y\": -802}]}, {\"id\": \"eid_3a6a1429_8b9e_4b99_a762_3a99e6edc511\", \"to\": \"sid_ef9e9d5a_a6ac_4140_bac7_1747f0eab188\", \"from\": \"sid_f1188946_c6ff_4480_964e_82f65fdcc514\", \"name\": \"\", \"config\": {\"type\": \"sequence\", \"condition\": {\"type\": \"DEFAULT\", \"priority\": 10}}, \"vertices\": [{\"x\": -214, \"y\": -154}, {\"x\": 38, \"y\": -22}, {\"x\": 289, \"y\": 109}]}, {\"id\": \"eid_e80dd7a8_d81a_43b4_8dd4_9a5fa21d80dd\", \"to\": \"sid_ef9e9d5a_a6ac_4140_bac7_1747f0eab188\", \"from\": \"sid_20005e1e_f5e1_4ae7_a2cd_18e58434e095\", \"name\": \"${sid_20005e1e_f5e1_4ae7_a2cd_18e58434e095.outputs.approvalResult == \'APPROVED\'}\", \"config\": {\"type\": \"sequence\", \"condition\": {\"type\": \"EXPRESSION\", \"priority\": 10, \"expression\": \"${sid_20005e1e_f5e1_4ae7_a2cd_18e58434e095.outputs.approvalResult == \'APPROVED\'}\"}}, \"vertices\": []}, {\"id\": \"eid_3eecd0ca_81e2_460f_a650_7ac2edc45bc8\", \"to\": \"sid_90bb343a_9bf9_48c4_be7c_334aeb71bf9d\", \"from\": \"sid_ef9e9d5a_a6ac_4140_bac7_1747f0eab188\", \"name\": \"\", \"config\": {\"type\": \"sequence\", \"condition\": {\"type\": \"DEFAULT\", \"priority\": 10}}, \"vertices\": []}, {\"id\": \"eid_1291d31c_5edf_475d_8f85_fd3ac232f487\", \"to\": \"sid_90bb343a_9bf9_48c4_be7c_334aeb71bf9d\", \"from\": \"sid_20005e1e_f5e1_4ae7_a2cd_18e58434e095\", \"name\": \"\", \"config\": {\"type\": \"sequence\", \"condition\": {\"type\": \"DEFAULT\", \"priority\": 10}}, \"vertices\": []}, {\"id\": \"eid_ee1b5152_2eb0_4013_9ab6_8d88561d2801\", \"to\": \"sid_e5f930da_062e_4819_b976_8d8172c7f14a\", \"from\": \"sid_dc8b078d_be3e_4644_b8c5_ed077e32dab2\", \"name\": \"\", \"config\": {\"type\": \"sequence\", \"condition\": {\"type\": \"DEFAULT\", \"priority\": 10}}, \"vertices\": []}, {\"id\": \"eid_ac3aca2b_a52a_4a91_a880_73a6757d030f\", \"to\": \"sid_0d0eb0be_a427_4966_8114_475ebeb5e724\", \"from\": \"sid_e5f930da_062e_4819_b976_8d8172c7f14a\", \"name\": \"\", \"config\": {\"type\": \"sequence\", \"condition\": {\"type\": \"DEFAULT\", \"priority\": 10}}, \"vertices\": []}, {\"id\": \"eid_d206c7b5_d839_4a53_ad24_976d91466f94\", \"to\": \"sid_f1188946_c6ff_4480_964e_82f65fdcc514\", \"from\": \"sid_0d0eb0be_a427_4966_8114_475ebeb5e724\", \"name\": \"\", \"config\": {\"type\": \"sequence\", \"condition\": {\"type\": \"DEFAULT\", \"priority\": 999}}, \"vertices\": []}, {\"id\": \"eid_bd62e311_dd06_418d_ba98_e5e6cdb7a083\", \"to\": \"sid_ee2f5ea0_48d3_40dd_8ba3_5595ad49eb63\", \"from\": \"sid_0d0eb0be_a427_4966_8114_475ebeb5e724\", \"name\": \"${sid_e5f930da_062e_4819_b976_8d8172c7f14a.outputs.status == \'FAILURE\'}\", \"config\": {\"type\": \"sequence\", \"condition\": {\"type\": \"EXPRESSION\", \"priority\": 10, \"expression\": \"${sid_e5f930da_062e_4819_b976_8d8172c7f14a.outputs.hasDifference == true}\"}}, \"vertices\": []}, {\"id\": \"eid_ce499e46_99db_4519_867c_d9d65a53b62e\", \"to\": \"sid_f1188946_c6ff_4480_964e_82f65fdcc514\", \"from\": \"sid_ee2f5ea0_48d3_40dd_8ba3_5595ad49eb63\", \"name\": \"\", \"config\": {\"type\": \"sequence\", \"condition\": {\"type\": \"DEFAULT\", \"priority\": 10}}, \"vertices\": []}], \"nodes\": [{\"id\": \"sid_dc8b078d_be3e_4644_b8c5_ed077e32dab2\", \"configs\": {\"nodeCode\": \"START_EVENT\", \"nodeName\": \"开始\", \"description\": \"工作流的起始节点\"}, \"outputs\": [], \"nodeCode\": \"START_EVENT\", \"nodeName\": \"开始\", \"nodeType\": \"START_EVENT\", \"position\": {\"x\": -2025, \"y\": -225}, \"inputMapping\": {}}, {\"id\": \"sid_ef9e9d5a_a6ac_4140_bac7_1747f0eab188\", \"configs\": {\"nodeCode\": \"JENKINS_BUILD\", \"nodeName\": \"Jenkins构建\", \"description\": \"通过Jenkins执行构建任务\"}, \"outputs\": [{\"enum\": [\"SUCCESS\", \"FAILURE\"], \"name\": \"status\", \"type\": \"string\", \"title\": \"执行状态\", \"example\": \"SUCCESS\", \"required\": true, \"description\": \"节点执行的最终状态\"}, {\"enum\": [\"SUCCESS\", \"FAILURE\", \"ABORTED\", \"NOT_FOUND\"], \"name\": \"buildStatus\", \"type\": \"string\", \"title\": \"构建状态\", \"example\": null, \"required\": true, \"description\": \"节点执行的最终状态\"}, {\"enum\": null, \"name\": \"buildNumber\", \"type\": \"number\", \"title\": \"构建编号\", \"example\": 123, \"required\": true, \"description\": \"Jenkins构建的唯一编号\"}, {\"enum\": null, \"name\": \"buildUrl\", \"type\": \"string\", \"title\": \"构建URL\", \"example\": \"http://jenkins.example.com/job/app/123/\", \"required\": true, \"description\": \"Jenkins构建页面的访问地址\"}, {\"enum\": null, \"name\": \"artifactUrl\", \"type\": \"string\", \"title\": \"构建产物地址\", \"example\": \"http://jenkins.example.com/job/app/123/artifact/target/app-1.0.0.jar\", \"required\": false, \"description\": \"构建生成的jar/war包下载地址\"}, {\"enum\": null, \"name\": \"gitCommitId\", \"type\": \"string\", \"title\": \"Git提交ID\", \"example\": \"a3f5e8d2c4b1a5e9f2d3e7b8c9d1a2f3e4b5c6d7\", \"required\": true, \"description\": \"本次构建使用的Git提交哈希值\"}, {\"enum\": null, \"name\": \"buildDuration\", \"type\": \"number\", \"title\": \"构建时长\", \"example\": 120, \"required\": true, \"description\": \"构建执行的时长(秒)\"}, {\"enum\": null, \"name\": \"buildDurationMillis\", \"type\": \"number\", \"title\": \"构建时长(毫秒)\", \"example\": 158000, \"required\": false, \"description\": \"构建执行的时长(毫秒)\"}, {\"enum\": null, \"name\": \"buildDurationFormatted\", \"type\": \"string\", \"title\": \"构建时长(格式)\", \"example\": \"00:02:39\", \"required\": false, \"description\": \"构建执行的时长(格式:HH:mm:ss)\"}, {\"enum\": null, \"name\": \"buildEndTimeMillis\", \"type\": \"number\", \"title\": \"部署结束时间(ms)\", \"example\": 1700000000000, \"required\": false, \"description\": \"部署结束时间(毫秒)\"}, {\"enum\": null, \"name\": \"buildEndTime\", \"type\": \"string\", \"title\": \"部署结束时间\", \"example\": \"2025-11-14 15:30:00\", \"required\": false, \"description\": \"部署结束时间(格式化)\"}], \"nodeCode\": \"JENKINS_BUILD\", \"nodeName\": \"Jenkins构建\", \"nodeType\": \"JENKINS_BUILD\", \"position\": {\"x\": 435, \"y\": -315}, \"inputMapping\": {\"jobName\": \"${jenkins.jobName}\", \"serverId\": \"${jenkins.serverId}\", \"continueOnFailure\": true}}, {\"id\": \"sid_90bb343a_9bf9_48c4_be7c_334aeb71bf9d\", \"configs\": {\"nodeCode\": \"END_EVENT\", \"nodeName\": \"结束\", \"description\": \"工作流的结束节点\"}, \"outputs\": [], \"nodeCode\": \"END_EVENT\", \"nodeName\": \"结束\", \"nodeType\": \"END_EVENT\", \"position\": {\"x\": 2100, \"y\": -210}, \"inputMapping\": {}}, {\"id\": \"sid_20005e1e_f5e1_4ae7_a2cd_18e58434e095\", \"configs\": {\"nodeCode\": \"APPROVAL\", \"nodeName\": \"审批部署\", \"description\": \"人工审批节点,支持多种审批模式\"}, \"outputs\": [{\"enum\": [\"SUCCESS\", \"FAILURE\"], \"name\": \"status\", \"type\": \"string\", \"title\": \"执行状态\", \"example\": \"SUCCESS\", \"required\": true, \"description\": \"节点执行的最终状态\"}, {\"enum\": [\"APPROVED\", \"REJECTED\", \"TIMEOUT\"], \"name\": \"approvalResult\", \"type\": \"string\", \"title\": \"审批结果\", \"example\": \"APPROVED\", \"required\": true, \"description\": \"审批的最终结果\"}, {\"enum\": null, \"name\": \"approver\", \"type\": \"string\", \"title\": \"审批人\", \"example\": \"张三\", \"required\": true, \"description\": \"实际执行审批的用户\"}, {\"enum\": null, \"name\": \"approverUserId\", \"type\": \"number\", \"title\": \"审批人ID\", \"example\": 1001, \"required\": true, \"description\": \"审批人的用户ID\"}, {\"enum\": null, \"name\": \"approvalTime\", \"type\": \"string\", \"title\": \"审批时间\", \"example\": \"2025-10-23T10:30:00Z\", \"required\": true, \"description\": \"审批完成的时间\"}, {\"enum\": null, \"name\": \"approvalComment\", \"type\": \"string\", \"title\": \"审批意见\", \"example\": \"同意发布到生产环境\", \"required\": false, \"description\": \"审批人填写的意见\"}, {\"enum\": null, \"name\": \"approvalDuration\", \"type\": \"number\", \"title\": \"审批用时(秒)\", \"example\": 3600, \"required\": true, \"description\": \"从创建到完成审批的时长\"}, {\"enum\": null, \"name\": \"allApprovers\", \"type\": \"array\", \"title\": \"所有审批人\", \"example\": [{\"time\": \"2025-10-23T10:30:00Z\", \"result\": \"APPROVED\", \"userId\": 1001, \"comment\": \"同意\", \"userName\": \"张三\"}], \"required\": false, \"description\": \"参与审批的所有人员列表(会签/或签时),格式:[{userId, userName, result, comment, time}]\"}], \"nodeCode\": \"APPROVAL\", \"nodeName\": \"审批部署\", \"nodeType\": \"APPROVAL\", \"position\": {\"x\": -45, \"y\": -900}, \"inputMapping\": {\"allowAddSign\": false, \"approvalMode\": \"ANY\", \"approverType\": \"VARIABLE\", \"allowDelegate\": false, \"approvalTitle\": \"部署工单\", \"timeoutAction\": \"NONE\", \"requireComment\": false, \"approvalContent\": \"部署工单待审批\", \"timeoutDuration\": 0, \"approverVariable\": \"${approval.userNames}\", \"continueOnFailure\": true}}, {\"id\": \"sid_f1188946_c6ff_4480_964e_82f65fdcc514\", \"configs\": {\"nodeCode\": \"GATEWAY\", \"nodeName\": \"是否需要审批\", \"description\": \"流程分支控制节点,支持排他、并行、包容三种模式\"}, \"outputs\": [{\"enum\": [\"SUCCESS\", \"FAILURE\"], \"name\": \"status\", \"type\": \"string\", \"title\": \"执行状态\", \"example\": \"SUCCESS\", \"required\": true, \"description\": \"节点执行的最终状态\"}, {\"enum\": null, \"name\": \"selectedBranches\", \"type\": \"array\", \"title\": \"已选分支\", \"example\": [\"branch_1\", \"branch_2\"], \"required\": true, \"description\": \"实际执行的分支ID列表(排他网关返回1个,并行网关返回多个,包容网关返回1-N个)\"}, {\"enum\": null, \"name\": \"gatewayType\", \"type\": \"string\", \"title\": \"网关类型\", \"example\": \"EXCLUSIVE\", \"required\": true, \"description\": \"当前网关的类型\"}, {\"enum\": null, \"name\": \"evaluationResults\", \"type\": \"object\", \"title\": \"条件评估结果\", \"example\": {\"branch_1\": true, \"branch_2\": false}, \"required\": false, \"description\": \"各分支条件的评估结果(仅当启用日志时)\"}], \"nodeCode\": \"GATEWAY\", \"nodeName\": \"是否需要审批\", \"nodeType\": \"GATEWAY_NODE\", \"position\": {\"x\": -570, \"y\": -300}, \"inputMapping\": {\"gatewayType\": \"exclusiveGateway\"}}, {\"id\": \"sid_e5f930da_062e_4819_b976_8d8172c7f14a\", \"configs\": {\"nodeCode\": \"GIT_SYNC_CHECK\", \"nodeName\": \"Git同步检测\", \"description\": \"检测源分支与目标分支的同步状态\"}, \"outputs\": [{\"enum\": [\"SUCCESS\", \"FAILURE\"], \"name\": \"status\", \"type\": \"string\", \"title\": \"执行状态\", \"example\": \"SUCCESS\", \"required\": true, \"description\": \"节点执行的最终状态\"}, {\"enum\": null, \"name\": \"hasDifference\", \"type\": \"boolean\", \"title\": \"是否存在差异\", \"example\": true, \"required\": true, \"description\": \"源分支和目标分支是否存在代码差异\"}, {\"enum\": null, \"name\": \"commitsAhead\", \"type\": \"number\", \"title\": \"源分支领先提交数\", \"example\": 5, \"required\": true, \"description\": \"源分支比目标分支多出的提交数量\"}, {\"enum\": null, \"name\": \"commitsBehind\", \"type\": \"number\", \"title\": \"目标分支领先提交数\", \"example\": 0, \"required\": true, \"description\": \"目标分支比源分支多出的提交数量\"}, {\"enum\": null, \"name\": \"differenceCommits\", \"type\": \"array\", \"title\": \"差异提交列表\", \"example\": [{\"author\": \"张三\", \"message\": \"feat: 添加新功能\", \"commitId\": \"a3f5e8d\", \"commitTime\": \"2025-12-04 10:30:00\"}], \"required\": false, \"description\": \"差异提交详情列表(最多显示20条)\"}, {\"enum\": null, \"name\": \"sourceLatestCommit\", \"type\": \"string\", \"title\": \"源分支最新提交SHA\", \"example\": \"a3f5e8d2c4b1a5e9f2d3e7b8c9d1a2f3e4b5c6d7\", \"required\": true, \"description\": \"源分支最新提交的完整SHA值\"}, {\"enum\": null, \"name\": \"targetLatestCommit\", \"type\": \"string\", \"title\": \"目标分支最新提交SHA\", \"example\": \"b2e4c7f8d1a3e5b9c2d6f9a8e7d1c4b5a3f6e8d2\", \"required\": true, \"description\": \"目标分支最新提交的完整SHA值\"}, {\"enum\": null, \"name\": \"checkDetail\", \"type\": \"string\", \"title\": \"检查结果详情\", \"example\": \"源分支 \'develop\' 领先目标分支 \'master\' 5个提交,需要同步代码\", \"required\": true, \"description\": \"检查结果的详细说明(用于通知模板)\"}], \"nodeCode\": \"GIT_SYNC_CHECK\", \"nodeName\": \"Git同步检测\", \"nodeType\": \"GIT_SYNC_CHECK\", \"position\": {\"x\": -1815, \"y\": -345}, \"inputMapping\": {\"sourceBranch\": \"${sourceRepository.branch}\", \"targetBranch\": \"${targetRepository.branch}\", \"continueOnFailure\": true, \"sourceGitSystemId\": \"${sourceRepository.systemId}\", \"targetGitSystemId\": \"${targetRepository.systemId}\", \"sourceGitProjectId\": \"${sourceRepository.projectId}\", \"targetGitProjectId\": \"${targetRepository.projectId}\"}}, {\"id\": \"sid_0d0eb0be_a427_4966_8114_475ebeb5e724\", \"configs\": {\"nodeCode\": \"GATEWAY\", \"nodeName\": \"代码同步检查网关\", \"description\": \"流程分支控制节点,支持排他、并行、包容三种模式\"}, \"outputs\": [{\"enum\": [\"SUCCESS\", \"FAILURE\"], \"name\": \"status\", \"type\": \"string\", \"title\": \"执行状态\", \"example\": \"SUCCESS\", \"required\": true, \"description\": \"节点执行的最终状态\"}, {\"enum\": null, \"name\": \"selectedBranches\", \"type\": \"array\", \"title\": \"已选分支\", \"example\": [\"branch_1\", \"branch_2\"], \"required\": true, \"description\": \"实际执行的分支ID列表(排他网关返回1个,并行网关返回多个,包容网关返回1-N个)\"}, {\"enum\": null, \"name\": \"gatewayType\", \"type\": \"string\", \"title\": \"网关类型\", \"example\": \"EXCLUSIVE\", \"required\": true, \"description\": \"当前网关的类型\"}, {\"enum\": null, \"name\": \"evaluationResults\", \"type\": \"object\", \"title\": \"条件评估结果\", \"example\": {\"branch_1\": true, \"branch_2\": false}, \"required\": false, \"description\": \"各分支条件的评估结果(仅当启用日志时)\"}], \"nodeCode\": \"GATEWAY\", \"nodeName\": \"代码同步检查网关\", \"nodeType\": \"GATEWAY_NODE\", \"position\": {\"x\": -1275, \"y\": -300}, \"inputMapping\": {\"gatewayType\": \"exclusiveGateway\"}}, {\"id\": \"sid_ee2f5ea0_48d3_40dd_8ba3_5595ad49eb63\", \"configs\": {\"nodeCode\": \"NOTIFICATION\", \"nodeName\": \"Git同步检测异常通知\", \"description\": \"发送通知消息到指定渠道\"}, \"outputs\": [{\"enum\": [\"SUCCESS\", \"FAILURE\"], \"name\": \"status\", \"type\": \"string\", \"title\": \"执行状态\", \"example\": \"SUCCESS\", \"required\": true, \"description\": \"节点执行的最终状态\"}], \"nodeCode\": \"NOTIFICATION\", \"nodeName\": \"Git同步检测异常通知\", \"nodeType\": \"NOTIFICATION\", \"position\": {\"x\": -885, \"y\": 60}, \"inputMapping\": {\"channelId\": \"${notification.notificationChannelId}\", \"continueOnFailure\": true, \"notificationTemplateId\": 10}}]}', 'DRAFT', 'admin', '2025-11-10 13:22:43.048596', b'0', 'dengqichen', '2025-12-05 12:37:31.431187', 83); +INSERT INTO `deploy-ease-platform`.`workflow_definition` (`id`, `name`, `key`, `category_id`, `form_definition_id`, `process_definition_id`, `flow_version`, `description`, `bpmn_xml`, `graph`, `status`, `create_by`, `create_time`, `deleted`, `update_by`, `update_time`, `version`) VALUES (2, '国产化部署流程', 'localization-deploy-workflow', 2, 2, '', 1, '', '', '{\"edges\": [{\"id\": \"eid_353a1306_8521_4a45_851e_b5d1715e16d5\", \"to\": \"sid_d7bd35dc_37cc_4868_9c8a_9c854d5d6bbf\", \"from\": \"sid_d377019d_5dd0_4e24_9dc7_c81be855ad89\", \"name\": \"\", \"config\": {\"type\": \"sequence\", \"condition\": {\"type\": \"DEFAULT\", \"priority\": 10}}, \"vertices\": []}, {\"id\": \"eid_cc5d51f1_e380_4748_92e9_f4c86f0f06ba\", \"to\": \"sid_25103e74_107b_4cb8_98d8_8265e3e09fa0\", \"from\": \"sid_d7bd35dc_37cc_4868_9c8a_9c854d5d6bbf\", \"name\": \"\", \"config\": {\"type\": \"sequence\", \"condition\": {\"type\": \"DEFAULT\", \"priority\": 10}}, \"vertices\": []}, {\"id\": \"eid_ce83cb80_bd13_43ba_98b0_916ce9eca8c7\", \"to\": \"sid_a2de62df_0b29_4d2d_8a82_43a1aaf2566a\", \"from\": \"sid_d7bd35dc_37cc_4868_9c8a_9c854d5d6bbf\", \"name\": \"${notification.deployNotificationEnabled == \'true\'}\", \"config\": {\"type\": \"sequence\", \"condition\": {\"type\": \"EXPRESSION\", \"priority\": 10, \"expression\": \"${notification.buildNotificationEnabled == \'true\'}\"}}, \"vertices\": []}, {\"id\": \"eid_cb5f1775_919f_4313_a665_0de1a3a16d76\", \"to\": \"sid_e881dab6_4ec1_44d1_81d1_f68a1bca582a\", \"from\": \"sid_6c622e3c_4eec_44a9_b00b_8933dc89b98c\", \"name\": \"\", \"config\": {\"type\": \"sequence\", \"condition\": {\"type\": \"DEFAULT\", \"priority\": 10}}, \"vertices\": []}, {\"id\": \"eid_2afd01f2_b2c7_4336_b05e_6ebdd8977ef4\", \"to\": \"sid_d377019d_5dd0_4e24_9dc7_c81be855ad89\", \"from\": \"sid_e881dab6_4ec1_44d1_81d1_f68a1bca582a\", \"name\": \"${notification.buildNotificationEnabled == \'true\'}\", \"config\": {\"type\": \"sequence\", \"condition\": {\"type\": \"EXPRESSION\", \"priority\": 10, \"expression\": \"${notification.buildNotificationEnabled == \'true\'}\"}}, \"vertices\": []}, {\"id\": \"eid_b91cf09f_4816_4665_aed2_0644017e6938\", \"to\": \"sid_d7bd35dc_37cc_4868_9c8a_9c854d5d6bbf\", \"from\": \"sid_e881dab6_4ec1_44d1_81d1_f68a1bca582a\", \"name\": \"\", \"config\": {\"type\": \"sequence\", \"condition\": {\"type\": \"DEFAULT\", \"priority\": 10}}, \"vertices\": []}], \"nodes\": [{\"id\": \"sid_6c622e3c_4eec_44a9_b00b_8933dc89b98c\", \"configs\": {\"nodeCode\": \"START_EVENT\", \"nodeName\": \"开始\", \"description\": \"工作流的起始节点\"}, \"outputs\": [], \"nodeCode\": \"START_EVENT\", \"nodeName\": \"开始\", \"nodeType\": \"START_EVENT\", \"position\": {\"x\": -480, \"y\": -15}, \"inputMapping\": {}}, {\"id\": \"sid_d7bd35dc_37cc_4868_9c8a_9c854d5d6bbf\", \"configs\": {\"nodeCode\": \"HTTP_REQUEST\", \"nodeName\": \"HTTP请求\", \"description\": \"发送HTTP/HTTPS请求并解析响应\"}, \"outputs\": [{\"enum\": [\"SUCCESS\", \"FAILURE\"], \"name\": \"status\", \"type\": \"string\", \"title\": \"执行状态\", \"example\": \"SUCCESS\", \"required\": true, \"description\": \"节点执行的最终状态\"}, {\"enum\": null, \"name\": \"statusCode\", \"type\": \"number\", \"title\": \"HTTP状态码\", \"example\": 200, \"required\": true, \"description\": \"响应的HTTP状态码(如 200, 404, 500)\"}, {\"enum\": null, \"name\": \"isSuccess\", \"type\": \"boolean\", \"title\": \"是否成功\", \"example\": true, \"required\": true, \"description\": \"状态码为2xx时返回true\"}, {\"enum\": null, \"name\": \"responseBody\", \"type\": \"object\", \"title\": \"响应体\", \"example\": {\"data\": {}, \"status\": \"success\"}, \"required\": false, \"description\": \"响应内容,JSON格式会自动解析为对象\"}, {\"enum\": null, \"name\": \"responseTime\", \"type\": \"number\", \"title\": \"响应时间(毫秒)\", \"example\": 150, \"required\": true, \"description\": \"请求耗时(毫秒)\"}, {\"enum\": null, \"name\": \"errorMessage\", \"type\": \"string\", \"title\": \"错误信息\", \"example\": \"Connection timeout\", \"required\": false, \"description\": \"失败时的错误描述\"}, {\"enum\": null, \"name\": \"responseHeaders\", \"type\": \"object\", \"title\": \"响应头\", \"example\": {\"content-type\": \"application/json\"}, \"required\": false, \"description\": \"HTTP响应头信息\"}], \"nodeCode\": \"HTTP_REQUEST\", \"nodeName\": \"HTTP请求\", \"nodeType\": \"HTTP_REQUEST\", \"position\": {\"x\": 885, \"y\": 120}, \"inputMapping\": {\"url\": \"http://124.127.238.38:8080/api/deploy\", \"body\": \"{\\n \\\"appName\\\": \\\"themetis-planner-workbench-server\\\"\\n}\", \"method\": \"POST\", \"headers\": [{\"key\": \"Content-Type\", \"value\": \"application/json\"}], \"timeout\": 300000, \"verifySsl\": false, \"queryParams\": [], \"followRedirects\": true, \"responseBodyType\": \"JSON\", \"continueOnFailure\": true}}, {\"id\": \"sid_25103e74_107b_4cb8_98d8_8265e3e09fa0\", \"configs\": {\"nodeCode\": \"END_EVENT\", \"nodeName\": \"结束\", \"description\": \"工作流的结束节点\"}, \"outputs\": [], \"nodeCode\": \"END_EVENT\", \"nodeName\": \"结束\", \"nodeType\": \"END_EVENT\", \"position\": {\"x\": 2250, \"y\": 240}, \"inputMapping\": {}}, {\"id\": \"sid_d377019d_5dd0_4e24_9dc7_c81be855ad89\", \"configs\": {\"nodeCode\": \"NOTIFICATION\", \"nodeName\": \"构建部署通知\", \"description\": \"发送通知消息到指定渠道\"}, \"outputs\": [{\"enum\": [\"SUCCESS\", \"FAILURE\"], \"name\": \"status\", \"type\": \"string\", \"title\": \"执行状态\", \"example\": \"SUCCESS\", \"required\": true, \"description\": \"节点执行的最终状态\"}], \"nodeCode\": \"NOTIFICATION\", \"nodeName\": \"构建部署通知\", \"nodeType\": \"NOTIFICATION\", \"position\": {\"x\": 420, \"y\": -420}, \"inputMapping\": {\"channelId\": \"${notification.notificationChannelId}\", \"continueOnFailure\": true, \"notificationTemplateId\": \"${notification.buildNotificationTemplateId}\"}}, {\"id\": \"sid_a2de62df_0b29_4d2d_8a82_43a1aaf2566a\", \"configs\": {\"nodeCode\": \"NOTIFICATION\", \"nodeName\": \"部署结束通知\", \"description\": \"发送通知消息到指定渠道\"}, \"outputs\": [{\"enum\": [\"SUCCESS\", \"FAILURE\"], \"name\": \"status\", \"type\": \"string\", \"title\": \"执行状态\", \"example\": \"SUCCESS\", \"required\": true, \"description\": \"节点执行的最终状态\"}], \"nodeCode\": \"NOTIFICATION\", \"nodeName\": \"部署结束通知\", \"nodeType\": \"NOTIFICATION\", \"position\": {\"x\": 1350, \"y\": -405}, \"inputMapping\": {\"channelId\": \"${notification.notificationChannelId}\", \"continueOnFailure\": true, \"notificationTemplateId\": \"${notification.buildNotificationTemplateId}\"}}, {\"id\": \"sid_e881dab6_4ec1_44d1_81d1_f68a1bca582a\", \"configs\": {\"nodeCode\": \"GATEWAY\", \"nodeName\": \"网关节点\", \"description\": \"流程分支控制节点,支持排他、并行、包容三种模式\"}, \"outputs\": [{\"enum\": [\"SUCCESS\", \"FAILURE\"], \"name\": \"status\", \"type\": \"string\", \"title\": \"执行状态\", \"example\": \"SUCCESS\", \"required\": true, \"description\": \"节点执行的最终状态\"}, {\"enum\": null, \"name\": \"selectedBranches\", \"type\": \"array\", \"title\": \"已选分支\", \"example\": [\"branch_1\", \"branch_2\"], \"required\": true, \"description\": \"实际执行的分支ID列表(排他网关返回1个,并行网关返回多个,包容网关返回1-N个)\"}, {\"enum\": null, \"name\": \"gatewayType\", \"type\": \"string\", \"title\": \"网关类型\", \"example\": \"EXCLUSIVE\", \"required\": true, \"description\": \"当前网关的类型\"}, {\"enum\": null, \"name\": \"evaluationResults\", \"type\": \"object\", \"title\": \"条件评估结果\", \"example\": {\"branch_1\": true, \"branch_2\": false}, \"required\": false, \"description\": \"各分支条件的评估结果(仅当启用日志时)\"}], \"nodeCode\": \"GATEWAY\", \"nodeName\": \"网关节点\", \"nodeType\": \"GATEWAY_NODE\", \"position\": {\"x\": -165, \"y\": -90}, \"inputMapping\": {\"gatewayType\": \"exclusiveGateway\"}}]}', 'DRAFT', 'admin', '2025-11-20 10:55:07.233905', b'0', 'admin', '2025-11-28 10:41:28.440845', 62); -- -------------------------------------------------------------------------------------- --- 初始化团队管理数据 +-- 初始化项目管理数据 -- -------------------------------------------------------------------------------------- - --- 初始化团队数据 -INSERT INTO deploy_team (id, team_code, team_name, description, owner_id, owner_name, enabled, sort, create_by, create_time, update_by, update_time, version, deleted) -VALUES -(1, 'PLATFORM_TEAM', '平台研发团队', '负责基础平台和框架的开发维护', 1, '超级管理员', 1, 1, 'admin', NOW(), 'admin', NOW(), 1, 0), -(2, 'DEVOPS_TEAM', 'DevOps团队', '负责CI/CD和运维自动化', 4, '运维经理', 1, 2, 'admin', NOW(), 'admin', NOW(), 1, 0); - --- 初始化团队成员数据 -INSERT INTO deploy_team_member (team_id, user_id, user_name, role_in_team, join_time, create_by, create_time, update_by, update_time, version, deleted) -VALUES --- 平台研发团队成员 -(1, 1, 'admin', '负责人', NOW(), 'admin', NOW(), 'admin', NOW(), 1, 0), -(1, 3, 'dev_manager', '开发', NOW(), 'admin', NOW(), 'admin', NOW(), 1, 0), --- DevOps团队成员 -(2, 4, 'ops_manager', '负责人', NOW(), 'admin', NOW(), 'admin', NOW(), 1, 0), -(2, 2, 'it_manager', '运维', NOW(), 'admin', NOW(), 'admin', NOW(), 1, 0); +INSERT INTO `deploy-ease-platform`.`deploy_application_category` (`id`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`, `code`, `name`, `description`, `icon`, `enabled`, `sort`) VALUES (1, 'admin', '2025-11-28 10:08:28.877894', 'admin', '2025-11-28 10:08:28.877894', 1, b'0', 'DL-SCP', '需求计划', '', '', b'1', 0); +INSERT INTO `deploy-ease-platform`.`deploy_application_category` (`id`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`, `code`, `name`, `description`, `icon`, `enabled`, `sort`) VALUES (2, 'admin', '2025-11-28 10:29:16.584727', 'admin', '2025-11-28 10:29:16.584727', 1, b'0', 'SZ-ISCP', '供应计划', '', '', b'1', 0); --- ==================================================================== --- 定时任务初始化数据 --- ==================================================================== +INSERT INTO `deploy-ease-platform`.`deploy_application` (`id`, `app_code`, `app_name`, `app_desc`, `language`, `application_category_id`, `enabled`, `sort`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (1, 'scp-meta', '元数据', '', 0, 1, b'1', 0, 'admin', '2025-11-28 10:08:34.967658', 'admin', '2025-11-28 10:08:34.967658', 1, b'0'); +INSERT INTO `deploy-ease-platform`.`deploy_application` (`id`, `app_code`, `app_name`, `app_desc`, `language`, `application_category_id`, `enabled`, `sort`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (2, 'scp-longi-module', 'scp-longi-module', '', 0, 1, b'1', 0, 'admin', '2025-11-28 10:08:59.950725', 'admin', '2025-11-28 10:08:59.950725', 1, b'0'); +INSERT INTO `deploy-ease-platform`.`deploy_application` (`id`, `app_code`, `app_name`, `app_desc`, `language`, `application_category_id`, `enabled`, `sort`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (3, 'scp-longi', 'scp-longi', '', 0, 1, b'1', 0, 'admin', '2025-11-28 10:09:11.365394', 'admin', '2025-11-28 10:09:11.365394', 1, b'0'); +INSERT INTO `deploy-ease-platform`.`deploy_application` (`id`, `app_code`, `app_name`, `app_desc`, `language`, `application_category_id`, `enabled`, `sort`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (4, 'themetis-planner-workbench-server', 'themetis-planner-workbench-server', '', 0, 2, b'1', 0, 'admin', '2025-11-28 10:29:29.897673', 'admin', '2025-11-28 10:29:29.897673', 1, b'0'); +INSERT INTO `deploy-ease-platform`.`deploy_application` (`id`, `app_code`, `app_name`, `app_desc`, `language`, `application_category_id`, `enabled`, `sort`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (5, 'scp-font-pro', 'scp-font-pro', '', 1, 1, b'1', 0, 'admin', '2025-11-28 15:46:05.410824', 'admin', '2025-11-28 15:46:05.410824', 1, b'0'); +INSERT INTO `deploy-ease-platform`.`deploy_application` (`id`, `app_code`, `app_name`, `app_desc`, `language`, `application_category_id`, `enabled`, `sort`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (6, 'scp-ws', 'scp-ws', '', 0, 1, b'1', 0, 'admin', '2025-11-28 16:01:57.400206', 'admin', '2025-11-28 16:01:57.400206', 1, b'0'); +INSERT INTO `deploy-ease-platform`.`deploy_application` (`id`, `app_code`, `app_name`, `app_desc`, `language`, `application_category_id`, `enabled`, `sort`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (7, 'scp-data-center', 'scp-data-center', '', 0, 1, b'1', 0, 'admin', '2025-11-28 16:13:10.161610', 'admin', '2025-11-28 16:13:10.161610', 1, b'0'); +INSERT INTO `deploy-ease-platform`.`deploy_application` (`id`, `app_code`, `app_name`, `app_desc`, `language`, `application_category_id`, `enabled`, `sort`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (8, 'scp-dsl', 'scp-dsl', '', 0, 1, b'1', 0, 'admin', '2025-11-28 16:16:29.754832', 'admin', '2025-11-28 16:16:29.754832', 1, b'0'); +INSERT INTO `deploy-ease-platform`.`deploy_application` (`id`, `app_code`, `app_name`, `app_desc`, `language`, `application_category_id`, `enabled`, `sort`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (9, 'scp-idaas-bsm', 'scp-idaas-bsm', '', 0, 1, b'1', 0, 'admin', '2025-11-28 16:16:36.477402', 'admin', '2025-11-28 16:16:36.477402', 1, b'0'); +INSERT INTO `deploy-ease-platform`.`deploy_application` (`id`, `app_code`, `app_name`, `app_desc`, `language`, `application_category_id`, `enabled`, `sort`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (10, 'scp-gateway', 'scp-gateway', '', 0, 1, b'1', 0, 'admin', '2025-11-28 16:16:55.518881', 'admin', '2025-11-28 16:16:55.518881', 1, b'0'); +INSERT INTO `deploy-ease-platform`.`deploy_application` (`id`, `app_code`, `app_name`, `app_desc`, `language`, `application_category_id`, `enabled`, `sort`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (11, 'scp-performance-batch', 'scp-performance-batch', '', 0, 1, b'1', 0, 'admin', '2025-11-28 16:21:27.910602', 'admin', '2025-11-28 16:21:27.910602', 1, b'0'); +INSERT INTO `deploy-ease-platform`.`deploy_application` (`id`, `app_code`, `app_name`, `app_desc`, `language`, `application_category_id`, `enabled`, `sort`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (12, 'scp-process', 'scp-process', '', 0, 1, b'1', 0, 'admin', '2025-11-28 16:21:47.020640', 'admin', '2025-11-28 16:21:47.020640', 1, b'0'); +INSERT INTO `deploy-ease-platform`.`deploy_application` (`id`, `app_code`, `app_name`, `app_desc`, `language`, `application_category_id`, `enabled`, `sort`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (13, 'scp-service-manager', 'scp-service-manager', '', 0, 1, b'1', 0, 'admin', '2025-11-28 16:22:03.715733', 'admin', '2025-11-28 16:22:03.715733', 1, b'0'); +INSERT INTO `deploy-ease-platform`.`deploy_application` (`id`, `app_code`, `app_name`, `app_desc`, `language`, `application_category_id`, `enabled`, `sort`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (14, 'scp-customization-engine', 'scp-customization-engine', '', 0, 1, b'1', 0, 'admin', '2025-11-28 17:29:39.541943', 'admin', '2025-11-28 17:29:39.541943', 1, b'0'); --- 初始化定时任务分类数据 -INSERT INTO schedule_job_category (id, code, name, description, icon, color, enabled, sort, create_by, create_time, update_by, update_time, version, deleted) -VALUES -(1, 'DATA_CLEAN', '数据清理', '定期清理系统历史数据和临时文件', 'DeleteOutlined', '#ff4d4f', 1, 1, 'system', '2024-01-01 00:00:00', 'system', '2024-01-01 00:00:00', 1, 0), -(2, 'DATA_SYNC', '数据同步', '同步外部系统数据到本地', 'SyncOutlined', '#1890ff', 1, 2, 'system', '2024-01-01 00:00:00', 'system', '2024-01-01 00:00:00', 1, 0), -(3, 'REPORT', '报表生成', '定期生成和发送各类统计报表', 'BarChartOutlined', '#52c41a', 1, 3, 'system', '2024-01-01 00:00:00', 'system', '2024-01-01 00:00:00', 1, 0), -(4, 'MONITOR', '系统监控', '监控系统健康状态和性能指标', 'EyeOutlined', '#faad14', 1, 4, 'system', '2024-01-01 00:00:00', 'system', '2024-01-01 00:00:00', 1, 0), -(5, 'BACKUP', '备份任务', '定期备份数据库和重要文件', 'DatabaseOutlined', '#722ed1', 1, 5, 'system', '2024-01-01 00:00:00', 'system', '2024-01-01 00:00:00', 1, 0); --- 初始化定时任务数据 -INSERT INTO schedule_job (id, job_name, job_description, category_id, bean_name, method_name, method_params, - cron_expression, status, concurrent, timeout_seconds, retry_count, - create_by, create_time, update_by, update_time, version, deleted) -VALUES --- 数据清理任务 -(1, '工作流历史数据清理', '清理90天前已完成或已取消的工作流实例数据', 1, 'workflowCleanJob', 'execute', - '{"retentionDays": 90}', '0 0 2 * * ?', 'ENABLED', 0, 3600, 2, - 'system', '2024-01-01 00:00:00', 'system', '2024-01-01 00:00:00', 1, 0), +INSERT INTO `deploy-ease-platform`.`deploy_environment` (`id`, `tenant_code`, `env_code`, `env_name`, `env_desc`, `enabled`, `sort`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (1, NULL, 'LONGI-DEV', '隆基DEV', NULL, b'1', 1, 'admin', '2025-11-28 10:11:12.804868', 'admin', '2025-11-28 14:42:41.315990', 2, b'0'); +INSERT INTO `deploy-ease-platform`.`deploy_environment` (`id`, `tenant_code`, `env_code`, `env_name`, `env_desc`, `enabled`, `sort`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (2, NULL, 'LONGI-UAT', '隆基UAT', NULL, b'1', 1, 'admin', '2025-11-28 10:11:17.795710', 'admin', '2025-11-28 14:42:38.324552', 3, b'0'); +INSERT INTO `deploy-ease-platform`.`deploy_environment` (`id`, `tenant_code`, `env_code`, `env_name`, `env_desc`, `enabled`, `sort`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (5, NULL, 'LOCALIZATION_DEV', '国产化DEV', NULL, b'1', 1, 'admin', '2025-11-19 17:29:00.822949', 'admin', '2025-11-19 17:29:00.822949', 1, b'0'); +INSERT INTO `deploy-ease-platform`.`deploy_environment` (`id`, `tenant_code`, `env_code`, `env_name`, `env_desc`, `enabled`, `sort`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`) VALUES (6, NULL, 'DEMO1', 'DEMO1', NULL, b'1', 1, 'admin', '2025-11-28 12:20:33.164973', 'admin', '2025-11-28 12:20:33.164973', 1, b'0'); --- Git数据同步任务(需要先配置外部系统,修改externalSystemId参数) -(2, 'Git仓库组同步', '定期同步Git仓库组信息,每天凌晨2点执行', 2, 'repositoryGroupServiceImpl', 'syncGroups', - '{"externalSystemId": 1}', '0 0 2 * * ?', 'DISABLED', 0, 3600, 2, - 'system', '2024-01-01 00:00:00', 'system', '2024-01-01 00:00:00', 1, 0), -(3, 'Git项目同步', '定期同步Git项目信息,每天凌晨3点执行', 2, 'repositoryProjectServiceImpl', 'syncProjects', - '{"externalSystemId": 1}', '0 0 3 * * ?', 'DISABLED', 0, 3600, 2, - 'system', '2024-01-01 00:00:00', 'system', '2024-01-01 00:00:00', 1, 0), +INSERT INTO `deploy-ease-platform`.`deploy_team` (`id`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`, `team_code`, `team_name`, `description`, `owner_id`, `owner_name`, `enabled`, `sort`, `development_mode`, `enable_git_sync_check`) VALUES (3, 'admin', '2025-11-18 14:22:29.988115', 'admin', '2025-11-18 14:22:29.988115', 1, b'0', 'DP_SCP', '需求计划', '', 1, '超级管理员', b'1', 0, 'STANDARD', b'0'); +INSERT INTO `deploy-ease-platform`.`deploy_team` (`id`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`, `team_code`, `team_name`, `description`, `owner_id`, `owner_name`, `enabled`, `sort`, `development_mode`, `enable_git_sync_check`) VALUES (4, 'admin', '2025-11-18 14:28:53.763047', 'admin', '2025-12-04 20:20:05.023768', 2, b'0', 'DL_SCP_LONGI', '隆基项目', '', 1, '超级管理员', b'1', 0, 'SYNC_MODE', b'1'); +INSERT INTO `deploy-ease-platform`.`deploy_team` (`id`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`, `team_code`, `team_name`, `description`, `owner_id`, `owner_name`, `enabled`, `sort`, `development_mode`, `enable_git_sync_check`) VALUES (5, 'admin', '2025-11-19 17:27:27.703054', 'admin', '2025-12-04 20:19:58.964934', 3, b'0', 'LOCALIZATION', '国产化改造', '', 1, '超级管理员', b'1', 0, 'STANDARD', b'0'); -(4, 'Git分支同步', '定期同步Git仓库分支信息,每5分钟执行一次', 2, 'repositoryBranchServiceImpl', 'syncBranches', - '{"externalSystemId": 1}', '0 */5 * * * ?', 'DISABLED', 0, 3600, 2, - 'system', '2024-01-01 00:00:00', 'system', '2024-01-01 00:00:00', 1, 0), +INSERT INTO `deploy-ease-platform`.`deploy_team_member` (`id`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`, `team_id`, `user_id`, `user_name`, `role_in_team`, `join_time`) VALUES (25, 'admin', '2025-12-04 19:09:03.062446', 'admin', '2025-12-04 19:09:03.062446', 1, b'0', 5, 5, '汤峰岷', '', '2025-12-04 19:09:03.058297'); +INSERT INTO `deploy-ease-platform`.`deploy_team_member` (`id`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`, `team_id`, `user_id`, `user_name`, `role_in_team`, `join_time`) VALUES (26, 'admin', '2025-12-04 19:09:03.062450', 'admin', '2025-12-04 19:09:03.062450', 1, b'0', 5, 11, '邓骐辰', '', '2025-12-04 19:09:03.058368'); +INSERT INTO `deploy-ease-platform`.`deploy_team_member` (`id`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`, `team_id`, `user_id`, `user_name`, `role_in_team`, `join_time`) VALUES (27, 'admin', '2025-12-04 19:10:37.440882', 'admin', '2025-12-04 19:10:37.440882', 1, b'0', 4, 13, '杨振夫', '', '2025-12-04 19:10:37.440516'); +INSERT INTO `deploy-ease-platform`.`deploy_team_member` (`id`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`, `team_id`, `user_id`, `user_name`, `role_in_team`, `join_time`) VALUES (28, 'admin', '2025-12-04 19:10:37.441230', 'admin', '2025-12-04 19:10:37.441230', 1, b'0', 4, 10, '马也', '', '2025-12-04 19:10:37.440978'); +INSERT INTO `deploy-ease-platform`.`deploy_team_member` (`id`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`, `team_id`, `user_id`, `user_name`, `role_in_team`, `join_time`) VALUES (29, 'admin', '2025-12-04 19:10:37.441371', 'admin', '2025-12-04 19:10:37.441371', 1, b'0', 4, 11, '邓骐辰', '', '2025-12-04 19:10:37.441173'); +INSERT INTO `deploy-ease-platform`.`deploy_team_member` (`id`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`, `team_id`, `user_id`, `user_name`, `role_in_team`, `join_time`) VALUES (30, 'admin', '2025-12-04 19:10:37.441314', 'admin', '2025-12-04 19:10:37.441314', 1, b'0', 4, 8, '吕春林', '', '2025-12-04 19:10:37.441078'); +INSERT INTO `deploy-ease-platform`.`deploy_team_member` (`id`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`, `team_id`, `user_id`, `user_name`, `role_in_team`, `join_time`) VALUES (31, 'admin', '2025-12-04 19:10:37.444005', 'admin', '2025-12-04 19:10:37.444005', 1, b'0', 4, 9, '尹丽妍', '', '2025-12-04 19:10:37.443756'); +INSERT INTO `deploy-ease-platform`.`deploy_team_member` (`id`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`, `team_id`, `user_id`, `user_name`, `role_in_team`, `join_time`) VALUES (32, 'admin', '2025-12-04 19:10:37.484587', 'admin', '2025-12-04 19:10:37.484587', 1, b'0', 4, 7, '文高', '', '2025-12-04 19:10:37.484202'); +INSERT INTO `deploy-ease-platform`.`deploy_team_member` (`id`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`, `team_id`, `user_id`, `user_name`, `role_in_team`, `join_time`) VALUES (33, 'admin', '2025-12-04 19:10:37.485678', 'admin', '2025-12-04 19:10:37.485678', 1, b'0', 4, 6, '盛泽强', '', '2025-12-04 19:10:37.485398'); +INSERT INTO `deploy-ease-platform`.`deploy_team_member` (`id`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`, `team_id`, `user_id`, `user_name`, `role_in_team`, `join_time`) VALUES (34, 'admin', '2025-12-04 19:10:37.527170', 'admin', '2025-12-04 19:10:37.527170', 1, b'0', 4, 5, '汤峰岷', '', '2025-12-04 19:10:37.526830'); +INSERT INTO `deploy-ease-platform`.`deploy_team_member` (`id`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`, `team_id`, `user_id`, `user_name`, `role_in_team`, `join_time`) VALUES (35, 'admin', '2025-12-05 09:24:30.148875', 'admin', '2025-12-05 09:24:30.148875', 1, b'0', 3, 5, '汤峰岷', '', '2025-12-05 09:24:30.142079'); +INSERT INTO `deploy-ease-platform`.`deploy_team_member` (`id`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`, `team_id`, `user_id`, `user_name`, `role_in_team`, `join_time`) VALUES (36, 'admin', '2025-12-05 09:24:30.148879', 'admin', '2025-12-05 09:24:30.148879', 1, b'0', 3, 11, '邓骐辰', '', '2025-12-05 09:24:30.142081'); --- Jenkins数据同步任务(需要先配置外部系统,修改externalSystemId参数) -(5, 'Jenkins视图同步', '定期同步Jenkins视图信息,每天凌晨4点执行', 2, 'jenkinsViewServiceImpl', 'syncViews', - '{"externalSystemId": 1}', '0 0 4 * * ?', 'DISABLED', 0, 3600, 2, - 'system', '2024-01-01 00:00:00', 'system', '2024-01-01 00:00:00', 1, 0), +INSERT INTO `deploy-ease-platform`.`deploy_team_application` (`id`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`, `team_id`, `application_id`, `environment_id`, `build_type`, `source_git_system_id`, `source_git_project_id`, `source_branch`, `target_git_system_id`, `target_git_project_id`, `target_branch`, `deploy_system_id`, `deploy_job`, `workflow_definition_id`) VALUES (2, 'admin', '2025-11-18 14:30:47.848255', 'admin', '2025-12-05 10:47:45.574294', 1, b'0', 4, 2, 2, 'JENKINS', 2, 497, 'release/1.4.0', 4, 401, 'release/1.4.1', 3, 'ibp-uat-scp-longi-module', 1); +INSERT INTO `deploy-ease-platform`.`deploy_team_application` (`id`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`, `team_id`, `application_id`, `environment_id`, `build_type`, `source_git_system_id`, `source_git_project_id`, `source_branch`, `target_git_system_id`, `target_git_project_id`, `target_branch`, `deploy_system_id`, `deploy_job`, `workflow_definition_id`) VALUES (9, 'admin', '2025-11-18 15:23:12.158810', 'admin', '2025-12-05 10:47:36.816787', 1, b'0', 4, 1, 2, 'JENKINS', 4, 413, 'release/1.4.0', NULL, NULL, NULL, 3, 'ibp-uat-scp-meta', 1); +INSERT INTO `deploy-ease-platform`.`deploy_team_application` (`id`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`, `team_id`, `application_id`, `environment_id`, `build_type`, `source_git_system_id`, `source_git_project_id`, `source_branch`, `target_git_system_id`, `target_git_project_id`, `target_branch`, `deploy_system_id`, `deploy_job`, `workflow_definition_id`) VALUES (17, 'admin', '2025-11-18 16:42:21.756363', 'admin', '2025-12-05 10:46:50.568240', 1, b'0', 4, 5, 2, 'JENKINS', 4, 423, 'release/1.4.0', NULL, NULL, NULL, 3, 'ibp-uat-scp-font-pro', 1); +INSERT INTO `deploy-ease-platform`.`deploy_team_application` (`id`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`, `team_id`, `application_id`, `environment_id`, `build_type`, `source_git_system_id`, `source_git_project_id`, `source_branch`, `target_git_system_id`, `target_git_project_id`, `target_branch`, `deploy_system_id`, `deploy_job`, `workflow_definition_id`) VALUES (27, 'admin', '2025-12-04 19:10:09.425523', 'admin', '2025-12-04 19:10:09.425523', 1, b'0', 4, 14, 1, 'JENKINS', 2, 504, 'release/1.7.0', NULL, NULL, NULL, 3, 'ibp-dev-scp-customization-engine', 1); +INSERT INTO `deploy-ease-platform`.`deploy_team_application` (`id`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`, `team_id`, `application_id`, `environment_id`, `build_type`, `source_git_system_id`, `source_git_project_id`, `source_branch`, `target_git_system_id`, `target_git_project_id`, `target_branch`, `deploy_system_id`, `deploy_job`, `workflow_definition_id`) VALUES (28, 'admin', '2025-12-04 19:11:38.244722', 'admin', '2025-12-04 19:11:38.244722', 1, b'0', 4, 13, 1, 'JENKINS', 2, 305, 'release/1.7.0', NULL, NULL, NULL, 3, 'ibp-dev-scp-service-manager', 1); +INSERT INTO `deploy-ease-platform`.`deploy_team_application` (`id`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`, `team_id`, `application_id`, `environment_id`, `build_type`, `source_git_system_id`, `source_git_project_id`, `source_branch`, `target_git_system_id`, `target_git_project_id`, `target_branch`, `deploy_system_id`, `deploy_job`, `workflow_definition_id`) VALUES (29, 'admin', '2025-12-04 19:12:24.696705', 'admin', '2025-12-04 20:20:49.017301', 1, b'0', 4, 3, 1, 'JENKINS', 2, 465, 'release/1.7.0', 4, 402, 'release/1.7.0', 3, 'ibp-dev-scp-longi', 1); +INSERT INTO `deploy-ease-platform`.`deploy_team_application` (`id`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`, `team_id`, `application_id`, `environment_id`, `build_type`, `source_git_system_id`, `source_git_project_id`, `source_branch`, `target_git_system_id`, `target_git_project_id`, `target_branch`, `deploy_system_id`, `deploy_job`, `workflow_definition_id`) VALUES (30, 'admin', '2025-12-04 19:13:08.173502', 'admin', '2025-12-04 20:20:31.589592', 1, b'0', 4, 2, 1, 'JENKINS', 2, 497, 'release/1.7.0', 4, 401, 'release/1.7.0', 3, 'ibp-dev-scp-longi-module', 1); +INSERT INTO `deploy-ease-platform`.`deploy_team_application` (`id`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`, `team_id`, `application_id`, `environment_id`, `build_type`, `source_git_system_id`, `source_git_project_id`, `source_branch`, `target_git_system_id`, `target_git_project_id`, `target_branch`, `deploy_system_id`, `deploy_job`, `workflow_definition_id`) VALUES (31, 'admin', '2025-12-04 19:18:59.291444', 'admin', '2025-12-04 19:18:59.291444', 1, b'0', 4, 12, 1, 'JENKINS', 2, 344, 'release/1.7.0', NULL, NULL, NULL, 3, 'ibp-dev-scp-process', 1); +INSERT INTO `deploy-ease-platform`.`deploy_team_application` (`id`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`, `team_id`, `application_id`, `environment_id`, `build_type`, `source_git_system_id`, `source_git_project_id`, `source_branch`, `target_git_system_id`, `target_git_project_id`, `target_branch`, `deploy_system_id`, `deploy_job`, `workflow_definition_id`) VALUES (32, 'admin', '2025-12-04 19:20:55.485667', 'admin', '2025-12-04 19:20:55.485667', 1, b'0', 4, 11, 1, 'JENKINS', 2, 557, 'release/1.7.0', NULL, NULL, NULL, 3, 'ibp-dev-scp-performance-batch', 1); +INSERT INTO `deploy-ease-platform`.`deploy_team_application` (`id`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`, `team_id`, `application_id`, `environment_id`, `build_type`, `source_git_system_id`, `source_git_project_id`, `source_branch`, `target_git_system_id`, `target_git_project_id`, `target_branch`, `deploy_system_id`, `deploy_job`, `workflow_definition_id`) VALUES (33, 'admin', '2025-12-04 19:21:21.900973', 'admin', '2025-12-05 15:34:47.258688', 1, b'0', 4, 10, 1, 'JENKINS', 2, 337, 'release/1.7.0', 4, 420, 'release/1.7.0', 3, 'ibp-dev-scp-gateway', 1); +INSERT INTO `deploy-ease-platform`.`deploy_team_application` (`id`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`, `team_id`, `application_id`, `environment_id`, `build_type`, `source_git_system_id`, `source_git_project_id`, `source_branch`, `target_git_system_id`, `target_git_project_id`, `target_branch`, `deploy_system_id`, `deploy_job`, `workflow_definition_id`) VALUES (34, 'admin', '2025-12-04 19:21:50.294575', 'admin', '2025-12-05 15:34:32.379824', 1, b'0', 4, 9, 1, 'JENKINS', 2, 336, 'release/1.7.0', 4, 418, 'release/1.7.0', 3, 'ibp-dev-scp-idaas-bsm', 1); +INSERT INTO `deploy-ease-platform`.`deploy_team_application` (`id`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`, `team_id`, `application_id`, `environment_id`, `build_type`, `source_git_system_id`, `source_git_project_id`, `source_branch`, `target_git_system_id`, `target_git_project_id`, `target_branch`, `deploy_system_id`, `deploy_job`, `workflow_definition_id`) VALUES (35, 'admin', '2025-12-04 19:22:17.531630', 'admin', '2025-12-05 15:34:16.589899', 1, b'0', 4, 8, 1, 'JENKINS', 2, 345, 'release/1.7.0', 4, 423, 'release/1.7.0', 3, 'ibp-dev-scp-dsl', 1); +INSERT INTO `deploy-ease-platform`.`deploy_team_application` (`id`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`, `team_id`, `application_id`, `environment_id`, `build_type`, `source_git_system_id`, `source_git_project_id`, `source_branch`, `target_git_system_id`, `target_git_project_id`, `target_branch`, `deploy_system_id`, `deploy_job`, `workflow_definition_id`) VALUES (36, 'admin', '2025-12-04 19:23:04.667975', 'admin', '2025-12-05 15:33:58.878161', 1, b'0', 4, 7, 1, 'JENKINS', 2, 304, 'release/1.7.0', 4, 412, 'release/1.7.0', 3, 'ibp-dev-scp-data-center', 1); +INSERT INTO `deploy-ease-platform`.`deploy_team_application` (`id`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`, `team_id`, `application_id`, `environment_id`, `build_type`, `source_git_system_id`, `source_git_project_id`, `source_branch`, `target_git_system_id`, `target_git_project_id`, `target_branch`, `deploy_system_id`, `deploy_job`, `workflow_definition_id`) VALUES (37, 'admin', '2025-12-04 19:23:28.251621', 'admin', '2025-12-05 15:29:14.964587', 1, b'0', 4, 6, 1, 'JENKINS', 2, 300, 'release/1.7.0', 4, 410, 'release/1.7.0', 3, 'ibp-dev-scp-ws', 1); +INSERT INTO `deploy-ease-platform`.`deploy_team_application` (`id`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`, `team_id`, `application_id`, `environment_id`, `build_type`, `source_git_system_id`, `source_git_project_id`, `source_branch`, `target_git_system_id`, `target_git_project_id`, `target_branch`, `deploy_system_id`, `deploy_job`, `workflow_definition_id`) VALUES (38, 'admin', '2025-12-04 19:40:31.763919', 'admin', '2025-12-05 15:33:32.769781', 1, b'0', 4, 1, 1, 'JENKINS', 2, 288, 'release/1.7.0', 4, 413, 'release/1.7.0', 3, 'ibp-dev-scp-meta', 1); +INSERT INTO `deploy-ease-platform`.`deploy_team_application` (`id`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`, `team_id`, `application_id`, `environment_id`, `build_type`, `source_git_system_id`, `source_git_project_id`, `source_branch`, `target_git_system_id`, `target_git_project_id`, `target_branch`, `deploy_system_id`, `deploy_job`, `workflow_definition_id`) VALUES (39, 'admin', '2025-12-04 19:40:53.909207', 'admin', '2025-12-04 20:30:37.740560', 1, b'0', 4, 5, 1, 'JENKINS', 2, 315, 'release/1.7.0', 4, 422, 'release/1.7.0', 3, 'ibp-dev-scp-font-pro', 1); +INSERT INTO `deploy-ease-platform`.`deploy_team_application` (`id`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`, `team_id`, `application_id`, `environment_id`, `build_type`, `source_git_system_id`, `source_git_project_id`, `source_branch`, `target_git_system_id`, `target_git_project_id`, `target_branch`, `deploy_system_id`, `deploy_job`, `workflow_definition_id`) VALUES (40, 'admin', '2025-12-04 19:41:40.065710', 'admin', '2025-12-04 20:31:53.734092', 1, b'0', 4, 14, 2, 'JENKINS', 2, 504, 'release/1.4.0', NULL, NULL, NULL, 3, 'ibp-uat-scp-customization-engine', 1); +INSERT INTO `deploy-ease-platform`.`deploy_team_application` (`id`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`, `team_id`, `application_id`, `environment_id`, `build_type`, `source_git_system_id`, `source_git_project_id`, `source_branch`, `target_git_system_id`, `target_git_project_id`, `target_branch`, `deploy_system_id`, `deploy_job`, `workflow_definition_id`) VALUES (41, 'admin', '2025-12-04 19:42:01.283787', 'admin', '2025-12-04 20:31:48.348075', 1, b'0', 4, 13, 2, 'JENKINS', 2, 305, 'release/1.4.0', NULL, NULL, NULL, 3, 'ibp-uat-scp-service-manager', 1); +INSERT INTO `deploy-ease-platform`.`deploy_team_application` (`id`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`, `team_id`, `application_id`, `environment_id`, `build_type`, `source_git_system_id`, `source_git_project_id`, `source_branch`, `target_git_system_id`, `target_git_project_id`, `target_branch`, `deploy_system_id`, `deploy_job`, `workflow_definition_id`) VALUES (42, 'admin', '2025-12-04 19:42:28.004902', 'admin', '2025-12-04 20:31:39.551265', 1, b'0', 4, 12, 2, 'JENKINS', 2, 344, 'release/1.4.0', NULL, NULL, NULL, 3, 'ibp-uat-scp-process', 1); +INSERT INTO `deploy-ease-platform`.`deploy_team_application` (`id`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`, `team_id`, `application_id`, `environment_id`, `build_type`, `source_git_system_id`, `source_git_project_id`, `source_branch`, `target_git_system_id`, `target_git_project_id`, `target_branch`, `deploy_system_id`, `deploy_job`, `workflow_definition_id`) VALUES (46, 'admin', '2025-12-04 19:44:08.065817', 'admin', '2025-12-04 20:30:11.666332', 1, b'0', 4, 8, 2, 'JENKINS', 2, 345, 'release/1.4.0', NULL, NULL, NULL, 3, 'ibp-uat-scp-dsl', 1); +INSERT INTO `deploy-ease-platform`.`deploy_team_application` (`id`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`, `team_id`, `application_id`, `environment_id`, `build_type`, `source_git_system_id`, `source_git_project_id`, `source_branch`, `target_git_system_id`, `target_git_project_id`, `target_branch`, `deploy_system_id`, `deploy_job`, `workflow_definition_id`) VALUES (47, 'admin', '2025-12-05 09:28:55.520814', 'admin', '2025-12-05 09:28:55.520814', 1, b'0', 5, 4, 5, 'NATIVE', 6, 38, 'release/1.0-localization', NULL, NULL, NULL, NULL, '', 2); +INSERT INTO `deploy-ease-platform`.`deploy_team_application` (`id`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`, `team_id`, `application_id`, `environment_id`, `build_type`, `source_git_system_id`, `source_git_project_id`, `source_branch`, `target_git_system_id`, `target_git_project_id`, `target_branch`, `deploy_system_id`, `deploy_job`, `workflow_definition_id`) VALUES (48, 'admin', '2025-12-05 10:54:40.297756', 'admin', '2025-12-05 10:59:40.124501', 1, b'0', 4, 6, 2, 'JENKINS', 2, 300, 'release/1.4.0', NULL, NULL, NULL, 3, 'ibp-uat-scp-ws', 1); +INSERT INTO `deploy-ease-platform`.`deploy_team_application` (`id`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`, `team_id`, `application_id`, `environment_id`, `build_type`, `source_git_system_id`, `source_git_project_id`, `source_branch`, `target_git_system_id`, `target_git_project_id`, `target_branch`, `deploy_system_id`, `deploy_job`, `workflow_definition_id`) VALUES (49, 'admin', '2025-12-05 10:55:22.717425', 'admin', '2025-12-05 10:59:34.820206', 1, b'0', 4, 9, 2, 'JENKINS', 2, 336, 'release/1.4.0', NULL, NULL, NULL, 3, 'ibp-uat-scp-idaas-bsm', 1); +INSERT INTO `deploy-ease-platform`.`deploy_team_application` (`id`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`, `team_id`, `application_id`, `environment_id`, `build_type`, `source_git_system_id`, `source_git_project_id`, `source_branch`, `target_git_system_id`, `target_git_project_id`, `target_branch`, `deploy_system_id`, `deploy_job`, `workflow_definition_id`) VALUES (50, 'admin', '2025-12-05 10:55:53.362572', 'admin', '2025-12-05 10:59:27.165652', 1, b'0', 4, 10, 2, 'JENKINS', 2, 337, 'release/1.4.0', NULL, NULL, NULL, 3, 'ibp-uat-scp-gateway', 1); +INSERT INTO `deploy-ease-platform`.`deploy_team_application` (`id`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`, `team_id`, `application_id`, `environment_id`, `build_type`, `source_git_system_id`, `source_git_project_id`, `source_branch`, `target_git_system_id`, `target_git_project_id`, `target_branch`, `deploy_system_id`, `deploy_job`, `workflow_definition_id`) VALUES (52, 'admin', '2025-12-05 11:34:14.550185', 'admin', '2025-12-05 11:34:14.550185', 1, b'0', 4, 11, 2, 'JENKINS', 2, 557, 'release/1.4.0', 4, 462, 'release/1.4.0', 3, 'ibp-uat-scp-performance-batch', 1); +INSERT INTO `deploy-ease-platform`.`deploy_team_application` (`id`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`, `team_id`, `application_id`, `environment_id`, `build_type`, `source_git_system_id`, `source_git_project_id`, `source_branch`, `target_git_system_id`, `target_git_project_id`, `target_branch`, `deploy_system_id`, `deploy_job`, `workflow_definition_id`) VALUES (53, 'admin', '2025-12-05 11:34:58.048649', 'admin', '2025-12-05 11:34:58.048649', 1, b'0', 4, 7, 2, 'JENKINS', 4, 412, 'release/1.4.1', NULL, NULL, NULL, 3, 'ibp-uat-scp-data-center', 1); +INSERT INTO `deploy-ease-platform`.`deploy_team_application` (`id`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`, `team_id`, `application_id`, `environment_id`, `build_type`, `source_git_system_id`, `source_git_project_id`, `source_branch`, `target_git_system_id`, `target_git_project_id`, `target_branch`, `deploy_system_id`, `deploy_job`, `workflow_definition_id`) VALUES (54, 'admin', '2025-12-05 11:35:49.763262', 'admin', '2025-12-05 19:25:42.690838', 1, b'0', 4, 3, 2, 'JENKINS', 2, 465, 'release/1.4.0', 4, 402, 'release/1.4.0', 3, 'ibp-uat-scp-longi', 1); -(6, 'Jenkins任务同步', '定期同步Jenkins任务信息,每天凌晨5点执行', 2, 'jenkinsJobServiceImpl', 'syncJobs', - '{"externalSystemId": 1}', '0 0 5 * * ?', 'DISABLED', 0, 3600, 2, - 'system', '2024-01-01 00:00:00', 'system', '2024-01-01 00:00:00', 1, 0), +INSERT INTO `deploy-ease-platform`.`deploy_team_environment_config` (`id`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`, `team_id`, `environment_id`, `approval_required`, `approver_user_ids`, `require_code_review`, `remark`) VALUES (8, 'admin', '2025-12-04 19:07:52.007086', 'admin', '2025-12-04 19:07:52.007086', 1, b'0', 5, 5, b'0', NULL, b'0', ''); +INSERT INTO `deploy-ease-platform`.`deploy_team_environment_config` (`id`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`, `team_id`, `environment_id`, `approval_required`, `approver_user_ids`, `require_code_review`, `remark`) VALUES (9, 'admin', '2025-12-04 19:09:22.369911', 'admin', '2025-12-04 19:09:22.369911', 1, b'0', 4, 1, b'0', NULL, b'0', ''); +INSERT INTO `deploy-ease-platform`.`deploy_team_environment_config` (`id`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`, `team_id`, `environment_id`, `approval_required`, `approver_user_ids`, `require_code_review`, `remark`) VALUES (10, 'admin', '2025-12-04 19:09:24.776142', 'admin', '2025-12-04 19:11:00.417707', 1, b'0', 4, 2, b'1', '[6]', b'0', ''); +INSERT INTO `deploy-ease-platform`.`deploy_team_environment_config` (`id`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`, `team_id`, `environment_id`, `approval_required`, `approver_user_ids`, `require_code_review`, `remark`) VALUES (11, 'admin', '2025-12-05 11:27:04.375212', 'admin', '2025-12-05 11:27:04.375212', 1, b'0', 3, 6, b'0', NULL, b'0', ''); -(7, 'Jenkins构建同步', '定期同步Jenkins构建信息,每5分钟执行一次', 2, 'jenkinsBuildServiceImpl', 'syncBuilds', - '{"externalSystemId": 1}', '0 */5 * * * ?', 'DISABLED', 0, 3600, 2, - 'system', '2024-01-01 00:00:00', 'system', '2024-01-01 00:00:00', 1, 0); +INSERT INTO `deploy-ease-platform`.`deploy_team_environment_notification_config` (`id`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`, `team_id`, `environment_id`, `notification_channel_id`, `pre_approval_notification_enabled`, `pre_approval_notification_template_id`, `build_notification_enabled`, `build_notification_template_id`, `build_failure_file_enabled`) VALUES (7, 'admin', '2025-12-04 19:09:13.823433', 'admin', '2025-12-04 20:13:54.370529', 2, b'0', 5, 5, 3, b'0', NULL, b'1', 9, b'1'); +INSERT INTO `deploy-ease-platform`.`deploy_team_environment_notification_config` (`id`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`, `team_id`, `environment_id`, `notification_channel_id`, `pre_approval_notification_enabled`, `pre_approval_notification_template_id`, `build_notification_enabled`, `build_notification_template_id`, `build_failure_file_enabled`) VALUES (8, 'admin', '2025-12-04 19:10:47.733286', 'admin', '2025-12-04 20:14:07.669006', 2, b'0', 4, 2, 4, b'0', NULL, b'1', 8, b'1'); +INSERT INTO `deploy-ease-platform`.`deploy_team_environment_notification_config` (`id`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`, `team_id`, `environment_id`, `notification_channel_id`, `pre_approval_notification_enabled`, `pre_approval_notification_template_id`, `build_notification_enabled`, `build_notification_template_id`, `build_failure_file_enabled`) VALUES (9, 'admin', '2025-12-04 19:16:55.692706', 'admin', '2025-12-04 20:14:01.506144', 2, b'0', 4, 1, 4, b'0', NULL, b'1', 8, b'1'); +-- -------------------------------------------------------------------------------------- +-- 初始化通知渠道数据 +-- -------------------------------------------------------------------------------------- -- ===================================================== -- 服务器管理初始数据 @@ -1329,140 +736,32 @@ INSERT INTO deploy_server_category (id, name, code, icon, description, sort, ena -- ===================================================== -- 通知模板初始数据 -- ===================================================== +INSERT INTO `deploy-ease-platform`.`sys_notification_channel` (`id`, `create_by`, `create_time`, `deleted`, `update_by`, `update_time`, `version`, `name`, `channel_type`, `config`, `enabled`, `description`) VALUES (2, 'admin', '2025-11-14 10:03:24.627253', b'0', 'admin', '2025-11-28 10:12:56.852895', 7, '测试企业微信群', 'WEWORK', '{\"key\": \"614b110b-8957-4be8-95b9-4eca84c15028\", \"channelType\": \"WEWORK\"}', b'1', ''); +INSERT INTO `deploy-ease-platform`.`sys_notification_channel` (`id`, `create_by`, `create_time`, `deleted`, `update_by`, `update_time`, `version`, `name`, `channel_type`, `config`, `enabled`, `description`) VALUES (3, 'admin', '2025-11-20 14:29:58.312883', b'0', 'admin', '2025-11-28 10:13:07.867802', 2, '国产化群', 'WEWORK', '{\"key\": \"d8b23e8f-cffb-4703-917d-d4c420f88db3\", \"channelType\": \"WEWORK\"}', b'1', ''); +INSERT INTO `deploy-ease-platform`.`sys_notification_channel` (`id`, `create_by`, `create_time`, `deleted`, `update_by`, `update_time`, `version`, `name`, `channel_type`, `config`, `enabled`, `description`) VALUES (4, 'admin', '2025-11-28 15:04:17.822010', b'0', 'admin', '2025-11-28 15:04:17.822010', 1, '隆基群', 'WEWORK', '{\"key\": \"d6c93df2-76fe-4204-965d-cc49ae56c5e4\", \"channelType\": \"WEWORK\"}', b'1', ''); --- 插入通知模板初始数据 -INSERT INTO sys_notification_template (id, create_by, create_time, update_by, update_time, version, deleted, - name, code, description, channel_type, content_template, enabled, template_config) VALUES --- Jenkins构建通知模板 -(1, 'system', '2024-01-01 00:00:00', 'system', '2024-01-01 00:00:00', 1, 0, -'Jenkins构建通知-企业微信', 'jenkins_build_wework', 'Jenkins构建结果通知模板(企业微信)', 'WEWORK', -'### 🚀 Jenkins构建通知 +INSERT INTO `deploy-ease-platform`.`sys_notification_template` (`id`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`, `name`, `code`, `description`, `channel_type`, `title_template`, `content_template`, `enabled`, `template_config`) VALUES (8, 'admin', '2025-11-14 11:52:18.194141', 'dengqichen', '2025-12-02 17:52:33.226820', 36, b'0', 'JENKINS构建状态通知', 'jenkins_build_notification', '', 'WEWORK', '## <#if environmentName??>${environmentName}环境构建通知', '>项目:<#if applicationName??>${applicationName}(${applicationCode})\r\n<#if buildStatus??>\r\n<#switch buildStatus>\r\n<#case \"SUCCESS\">\r\n>状态:构建成功\r\n<#break>\r\n<#case \"BUILDING\">\r\n>状态:构建中\r\n<#break>\r\n<#case \"ABORTED\">\r\n>状态:构建被取消\r\n<#break>\r\n<#default>\r\n>状态:构建失败\r\n\r\n\r\n<#if buildStatus?? && buildStatus != \"BUILDING\">\r\n<#if buildDurationFormatted??>\r\n>耗时:${buildDurationFormatted}\r\n\r\n<#if buildEndTime??>\r\n>时间:${buildEndTime}\r\n\r\n<#else>\r\n<#if buildStartTime??>\r\n>时间:${buildStartTime}\r\n\r\n\r\n<#if commitMessage??>\r\n>内容:\r\n<#list commitMessage?split(\'\\n\') as line>\r\n>${line}\r\n\r\n', b'1', '{\"channelType\": \"WEWORK\", \"messageType\": \"MARKDOWN\"}'); +INSERT INTO `deploy-ease-platform`.`sys_notification_template` (`id`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`, `name`, `code`, `description`, `channel_type`, `title_template`, `content_template`, `enabled`, `template_config`) VALUES (9, 'admin', '2025-11-20 12:26:03.726812', 'admin', '2025-11-28 10:27:58.252212', 10, b'0', '国产化构建通知', 'localization_build_notification', '国产化模版', 'WEWORK', '## <#if environmentName??>${environmentName}环境变更通知', '>项目:<#if applicationName??>${applicationName}(${applicationCode})\r\n<#-- 通过判断HTTP节点输出是否存在来区分阶段 -->\r\n<#if sid_d7bd35dc_37cc_4868_9c8a_9c854d5d6bbf?? && sid_d7bd35dc_37cc_4868_9c8a_9c854d5d6bbf.outputs??>\r\n<#-- ========== 构建结束阶段(HTTP节点已执行)========== -->\r\n<#assign httpOutput = sid_d7bd35dc_37cc_4868_9c8a_9c854d5d6bbf.outputs>\r\n<#if httpOutput.isSuccess!false>\r\n<#if httpOutput.responseBody?? && httpOutput.responseBody.status?? && httpOutput.responseBody.status == \"success\">\r\n>状态:构建成功\r\n<#if httpOutput.responseBody.duration??>\r\n>耗时:${httpOutput.responseBody.duration}秒\r\n\r\n<#if httpOutput.responseBody.endTime??>\r\n>时间:${httpOutput.responseBody.endTime}\r\n\r\n<#else>\r\n>状态:构建失败\r\n<#if httpOutput.responseBody?? && httpOutput.responseBody.error??>\r\n>错误:${httpOutput.responseBody.error}\r\n\r\n\r\n<#else>\r\n>状态:构建失败\r\n<#if httpOutput.statusCode?? && httpOutput.statusCode gt 0>\r\n>HTTP状态码:${httpOutput.statusCode}\r\n<#else>\r\n>错误类型:网络连接异常\r\n\r\n<#if httpOutput.errorMessage??>\r\n>错误详情:${httpOutput.errorMessage}\r\n\r\n<#if httpOutput.responseTime??>\r\n>请求耗时:${httpOutput.responseTime}ms\r\n\r\n\r\n<#else>\r\n<#-- ========== 构建中阶段(HTTP节点未执行)========== -->\r\n>状态:构建中\r\n<#if deployDate??>\r\n<#attempt>\r\n<#assign deployDateTime = deployDate?datetime.iso>\r\n>时间:${deployDateTime?string(\"yyyy-MM-dd HH:mm:ss\")}\r\n<#recover>\r\n>时间:${deployDate}\r\n\r\n\r\n\r\n>内容:<#if deployRemark??>${deployRemark}<#else>无构建内容\r\n', b'1', '{\"channelType\": \"WEWORK\", \"messageType\": \"MARKDOWN\"}'); +INSERT INTO `deploy-ease-platform`.`sys_notification_template` (`id`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`, `name`, `code`, `description`, `channel_type`, `title_template`, `content_template`, `enabled`, `template_config`) VALUES (10, 'admin', '2025-12-04 20:18:22.291848', 'admin', '2025-12-04 20:41:46.538828', 3, b'0', 'Git同步检测通知', 'git_sync_code_check_notification', '', 'WEWORK', '## 代码同步检查异常', '${sid_e5f930da_062e_4819_b976_8d8172c7f14a.outputs.checkDetail}', b'1', '{\"channelType\": \"WEWORK\", \"messageType\": \"MARKDOWN\"}'); -**项目名称**: ${projectName} -**构建号**: #${buildNumber} -**构建状态**: <#if buildStatus == "SUCCESS">✅ 成功<#elseif buildStatus == "FAILURE">❌ 失败<#else>🔄 构建中 -<#if buildTime??>**构建时间**: ${buildTime} -<#if duration??>**构建耗时**: ${duration} -<#if buildStatus == "FAILURE"> -⚠️ **构建失败,请及时处理!** - +INSERT INTO `deploy-ease-platform`.`schedule_job_category` (`id`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`, `code`, `name`, `description`, `icon`, `color`, `enabled`, `sort`) VALUES (1, 'system', '2024-01-01 00:00:00.000000', 'system', '2024-01-01 00:00:00.000000', 1, b'0', 'DATA_CLEAN', '数据清理', '定期清理系统历史数据和临时文件', 'DeleteOutlined', '#ff4d4f', b'1', 1); +INSERT INTO `deploy-ease-platform`.`schedule_job_category` (`id`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`, `code`, `name`, `description`, `icon`, `color`, `enabled`, `sort`) VALUES (2, 'system', '2024-01-01 00:00:00.000000', 'system', '2024-01-01 00:00:00.000000', 1, b'0', 'DATA_SYNC', '数据同步', '同步外部系统数据到本地', 'SyncOutlined', '#1890ff', b'1', 2); +INSERT INTO `deploy-ease-platform`.`schedule_job_category` (`id`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`, `code`, `name`, `description`, `icon`, `color`, `enabled`, `sort`) VALUES (3, 'system', '2024-01-01 00:00:00.000000', 'system', '2024-01-01 00:00:00.000000', 1, b'0', 'REPORT', '报表生成', '定期生成和发送各类统计报表', 'BarChartOutlined', '#52c41a', b'1', 3); +INSERT INTO `deploy-ease-platform`.`schedule_job_category` (`id`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`, `code`, `name`, `description`, `icon`, `color`, `enabled`, `sort`) VALUES (4, 'system', '2024-01-01 00:00:00.000000', 'system', '2024-01-01 00:00:00.000000', 1, b'0', 'MONITOR', '系统监控', '监控系统健康状态和性能指标', 'EyeOutlined', '#faad14', b'1', 4); +INSERT INTO `deploy-ease-platform`.`schedule_job_category` (`id`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`, `code`, `name`, `description`, `icon`, `color`, `enabled`, `sort`) VALUES (5, 'system', '2024-01-01 00:00:00.000000', 'system', '2024-01-01 00:00:00.000000', 1, b'0', 'BACKUP', '备份任务', '定期备份数据库和重要文件', 'DatabaseOutlined', '#722ed1', b'1', 5); ---- -*Deploy Ease Platform 自动通知*', 1, '{"channelType": "WEWORK", "messageType": "MARKDOWN"}'), -(2, 'system', '2024-01-01 00:00:00', 'system', '2024-01-01 00:00:00', 1, 0, -'Jenkins构建通知-邮件', 'jenkins_build_email', 'Jenkins构建结果通知模板(邮件)', 'EMAIL', -'

🚀 Jenkins构建通知

- - - - - - - - - - - - - - <#if buildTime??> - - - - - - <#if duration??> - - - - - -
项目名称${projectName}
构建号#${buildNumber}
构建状态 - <#if buildStatus == "SUCCESS"> - ✅ 成功 - <#elseif buildStatus == "FAILURE"> - ❌ 失败 - <#else> - 🔄 构建中 - -
构建时间${buildTime}
构建耗时${duration}
- -<#if buildStatus == "FAILURE"> -

⚠️ 构建失败,请及时处理!

- - -
-

Deploy Ease Platform 自动通知

', 1, '{"channelType": "EMAIL", "contentType": "HTML", "priority": "NORMAL"}'), - --- 部署通知模板 -(3, 'system', '2024-01-01 00:00:00', 'system', '2024-01-01 00:00:00', 1, 0, -'部署通知-企业微信', 'deploy_notification_wework', '应用部署结果通知模板(企业微信)', 'WEWORK', -'### 📦 应用部署通知 - -**应用名称**: ${appName} -**部署环境**: ${environment} -**部署状态**: <#if deployStatus == "SUCCESS">✅ 部署成功<#else>❌ 部署失败 -**部署版本**: ${version} -**部署时间**: ${deployTime} - -<#if deployUrl??> -**访问地址**: ${deployUrl} - - -<#if deployStatus == "SUCCESS"> -🎉 **应用已成功部署上线!** -<#else> -⚠️ **部署失败,请检查日志!** - - ---- -*Deploy Ease Platform 自动通知*', 1, '{"channelType": "WEWORK", "messageType": "MARKDOWN"}'), - -(4, 'system', '2024-01-01 00:00:00', 'system', '2024-01-01 00:00:00', 1, 0, -'部署通知-邮件', 'deploy_notification_email', '应用部署结果通知模板(邮件)', 'EMAIL', -'

📦 应用部署通知

- - - - - - - - - - - - - - - - - - - - - - <#if deployUrl??> - - - - - -
应用名称${appName}
部署环境${environment}
部署状态 - <#if deployStatus == "SUCCESS"> - ✅ 部署成功 - <#else> - ❌ 部署失败 - -
部署版本${version}
部署时间${deployTime}
访问地址${deployUrl}
- -<#if deployStatus == "SUCCESS"> -

🎉 应用已成功部署上线!

-<#else> -

⚠️ 部署失败,请检查日志!

- - -
-

Deploy Ease Platform 自动通知

', 1, '{"channelType": "EMAIL", "contentType": "HTML", "priority": "NORMAL"}'); +INSERT INTO `deploy-ease-platform`.`schedule_job` (`id`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`, `job_name`, `job_description`, `category_id`, `bean_name`, `method_name`, `form_definition_id`, `method_params`, `cron_expression`, `status`, `concurrent`, `last_execute_time`, `next_execute_time`, `execute_count`, `success_count`, `fail_count`, `timeout_seconds`, `retry_count`, `alert_email`) VALUES (1, 'admin', '2024-01-01 00:00:00.000000', 'admin', '2025-12-08 02:00:04.015098', 25, b'0', '工作流历史数据清理', '清理90天前已完成或已取消的工作流实例数据', 1, 'workflowCleanJob', 'execute', NULL, '{\"retentionDays\": 90}', '0 0 2 * * ?', 'ENABLED', b'0', '2025-12-08 02:00:04.014387', '2025-12-09 02:00:00.000000', 0, 0, 0, 3600, 2, NULL); +INSERT INTO `deploy-ease-platform`.`schedule_job` (`id`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`, `job_name`, `job_description`, `category_id`, `bean_name`, `method_name`, `form_definition_id`, `method_params`, `cron_expression`, `status`, `concurrent`, `last_execute_time`, `next_execute_time`, `execute_count`, `success_count`, `fail_count`, `timeout_seconds`, `retry_count`, `alert_email`) VALUES (2, 'admin', '2024-01-01 00:00:00.000000', 'admin', '2025-12-08 02:00:00.207673', 27, b'0', '链宇Git仓库组同步', '定期同步Git仓库组信息,每天凌晨2点执行', 2, 'repositoryGroupServiceImpl', 'syncGroups', NULL, '{\"externalSystemId\": 2}', '0 0 2 * * ?', 'ENABLED', b'0', '2025-12-08 02:00:00.108499', '2025-12-09 02:00:00.000000', 0, 0, 0, 3600, 2, ''); +INSERT INTO `deploy-ease-platform`.`schedule_job` (`id`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`, `job_name`, `job_description`, `category_id`, `bean_name`, `method_name`, `form_definition_id`, `method_params`, `cron_expression`, `status`, `concurrent`, `last_execute_time`, `next_execute_time`, `execute_count`, `success_count`, `fail_count`, `timeout_seconds`, `retry_count`, `alert_email`) VALUES (3, 'admin', '2024-01-01 00:00:00.000000', 'admin', '2025-12-08 03:00:00.350254', 29, b'0', '链宇Git项目同步', '定期同步Git项目信息,每天凌晨3点执行', 2, 'repositoryProjectServiceImpl', 'syncProjects', NULL, '{\"externalSystemId\": 2}', '0 0 3 * * ?', 'ENABLED', b'0', '2025-12-08 03:00:00.303295', '2025-12-09 03:00:00.000000', 0, 0, 0, 3600, 2, ''); +INSERT INTO `deploy-ease-platform`.`schedule_job` (`id`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`, `job_name`, `job_description`, `category_id`, `bean_name`, `method_name`, `form_definition_id`, `method_params`, `cron_expression`, `status`, `concurrent`, `last_execute_time`, `next_execute_time`, `execute_count`, `success_count`, `fail_count`, `timeout_seconds`, `retry_count`, `alert_email`) VALUES (4, 'admin', '2024-01-01 00:00:00.000000', 'admin', '2025-12-08 13:35:00.047184', 5718, b'0', '链宇Git分支同步', '定期同步Git仓库分支信息,每5分钟执行一次', 2, 'repositoryBranchServiceImpl', 'syncBranches', NULL, '{\"externalSystemId\": 2}', '0 */5 * * * ?', 'ENABLED', b'0', '2025-12-08 13:35:00.041201', '2025-12-08 13:40:00.000000', 0, 0, 0, 3600, 2, ''); +INSERT INTO `deploy-ease-platform`.`schedule_job` (`id`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`, `job_name`, `job_description`, `category_id`, `bean_name`, `method_name`, `form_definition_id`, `method_params`, `cron_expression`, `status`, `concurrent`, `last_execute_time`, `next_execute_time`, `execute_count`, `success_count`, `fail_count`, `timeout_seconds`, `retry_count`, `alert_email`) VALUES (8, 'admin', '2025-11-18 15:01:34.078222', 'admin', '2025-12-08 13:35:00.050687', 1202, b'0', '链宇Jenkins视图同步', '', 2, 'jenkinsViewServiceImpl', 'syncViews', NULL, '{\"externalSystemId\": 1}', '0 */5 * * * ?', 'ENABLED', b'0', '2025-12-08 13:35:00.041491', '2025-12-08 13:40:00.000000', 0, 0, 0, 300, 0, ''); +INSERT INTO `deploy-ease-platform`.`schedule_job` (`id`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`, `job_name`, `job_description`, `category_id`, `bean_name`, `method_name`, `form_definition_id`, `method_params`, `cron_expression`, `status`, `concurrent`, `last_execute_time`, `next_execute_time`, `execute_count`, `success_count`, `fail_count`, `timeout_seconds`, `retry_count`, `alert_email`) VALUES (9, 'admin', '2025-11-18 15:02:37.611392', 'admin', '2025-12-08 13:35:00.045754', 1202, b'0', '链宇Jenkins任务同步', '', 2, 'jenkinsJobServiceImpl', 'syncJobs', NULL, '{\"externalSystemId\": 1}', '0 */5 * * * ?', 'ENABLED', b'0', '2025-12-08 13:35:00.035422', '2025-12-08 13:40:00.000000', 0, 0, 0, 300, 0, ''); +INSERT INTO `deploy-ease-platform`.`schedule_job` (`id`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`, `job_name`, `job_description`, `category_id`, `bean_name`, `method_name`, `form_definition_id`, `method_params`, `cron_expression`, `status`, `concurrent`, `last_execute_time`, `next_execute_time`, `execute_count`, `success_count`, `fail_count`, `timeout_seconds`, `retry_count`, `alert_email`) VALUES (10, 'admin', '2025-11-18 15:03:09.392656', 'admin', '2025-12-08 13:38:00.015968', 10138, b'0', '链宇Jenkins构建同步', '', 2, 'jenkinsBuildServiceImpl', 'syncBuilds', NULL, '{\"externalSystemId\": 1}', '0 */2 * * * ?', 'ENABLED', b'0', '2025-12-08 13:38:00.015325', '2025-12-08 13:40:00.000000', 0, 0, 0, 300, 0, ''); +INSERT INTO `deploy-ease-platform`.`schedule_job` (`id`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`, `job_name`, `job_description`, `category_id`, `bean_name`, `method_name`, `form_definition_id`, `method_params`, `cron_expression`, `status`, `concurrent`, `last_execute_time`, `next_execute_time`, `execute_count`, `success_count`, `fail_count`, `timeout_seconds`, `retry_count`, `alert_email`) VALUES (11, 'admin', '2025-11-18 15:01:34.078222', 'admin', '2025-12-08 13:35:00.051550', 1203, b'0', '隆基Jenkins视图同步', '', 2, 'jenkinsViewServiceImpl', 'syncViews', NULL, '{\"externalSystemId\": 3}', '0 */5 * * * ?', 'ENABLED', b'0', '2025-12-08 13:35:00.038127', '2025-12-08 13:40:00.000000', 0, 0, 0, 300, 0, ''); +INSERT INTO `deploy-ease-platform`.`schedule_job` (`id`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`, `job_name`, `job_description`, `category_id`, `bean_name`, `method_name`, `form_definition_id`, `method_params`, `cron_expression`, `status`, `concurrent`, `last_execute_time`, `next_execute_time`, `execute_count`, `success_count`, `fail_count`, `timeout_seconds`, `retry_count`, `alert_email`) VALUES (12, 'admin', '2025-11-18 15:02:37.611392', 'admin', '2025-12-08 13:35:00.054663', 1203, b'0', '隆基Jenkins任务同步', '', 2, 'jenkinsJobServiceImpl', 'syncJobs', NULL, '{\"externalSystemId\": 3}', '0 */5 * * * ?', 'ENABLED', b'0', '2025-12-08 13:35:00.045129', '2025-12-08 13:40:00.000000', 0, 0, 0, 300, 0, ''); +INSERT INTO `deploy-ease-platform`.`schedule_job` (`id`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`, `job_name`, `job_description`, `category_id`, `bean_name`, `method_name`, `form_definition_id`, `method_params`, `cron_expression`, `status`, `concurrent`, `last_execute_time`, `next_execute_time`, `execute_count`, `success_count`, `fail_count`, `timeout_seconds`, `retry_count`, `alert_email`) VALUES (13, 'admin', '2025-11-18 15:03:09.392656', 'admin', '2025-12-08 13:38:00.013658', 10162, b'0', '隆基Jenkins构建同步', '', 2, 'jenkinsBuildServiceImpl', 'syncBuilds', NULL, '{\"externalSystemId\": 3}', '0 */2 * * * ?', 'ENABLED', b'0', '2025-12-08 13:38:00.012807', '2025-12-08 13:40:00.000000', 0, 0, 0, 300, 0, ''); +INSERT INTO `deploy-ease-platform`.`schedule_job` (`id`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`, `job_name`, `job_description`, `category_id`, `bean_name`, `method_name`, `form_definition_id`, `method_params`, `cron_expression`, `status`, `concurrent`, `last_execute_time`, `next_execute_time`, `execute_count`, `success_count`, `fail_count`, `timeout_seconds`, `retry_count`, `alert_email`) VALUES (14, 'admin', '2024-01-01 00:00:00.000000', 'admin', '2025-12-08 03:00:00.305443', 26, b'0', '隆基Git仓库组同步', '定期同步Git仓库组信息,每天凌晨2点执行', 2, 'repositoryGroupServiceImpl', 'syncGroups', NULL, '{\"externalSystemId\": 4}', '0 0 3 * * ?', 'ENABLED', b'0', '2025-12-08 03:00:00.304752', '2025-12-09 03:00:00.000000', 0, 0, 0, 3600, 2, ''); +INSERT INTO `deploy-ease-platform`.`schedule_job` (`id`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`, `job_name`, `job_description`, `category_id`, `bean_name`, `method_name`, `form_definition_id`, `method_params`, `cron_expression`, `status`, `concurrent`, `last_execute_time`, `next_execute_time`, `execute_count`, `success_count`, `fail_count`, `timeout_seconds`, `retry_count`, `alert_email`) VALUES (15, 'admin', '2024-01-01 00:00:00.000000', 'admin', '2025-12-08 13:35:00.055866', 1204, b'0', '隆基Git项目同步', '定期同步Git项目信息,每天凌晨3点执行', 2, 'repositoryProjectServiceImpl', 'syncProjects', NULL, '{\"externalSystemId\": 4}', '0 */5 * * * ?', 'ENABLED', b'0', '2025-12-08 13:35:00.054015', '2025-12-08 13:40:00.000000', 0, 0, 0, 3600, 2, ''); +INSERT INTO `deploy-ease-platform`.`schedule_job` (`id`, `create_by`, `create_time`, `update_by`, `update_time`, `version`, `deleted`, `job_name`, `job_description`, `category_id`, `bean_name`, `method_name`, `form_definition_id`, `method_params`, `cron_expression`, `status`, `concurrent`, `last_execute_time`, `next_execute_time`, `execute_count`, `success_count`, `fail_count`, `timeout_seconds`, `retry_count`, `alert_email`) VALUES (16, 'admin', '2024-01-01 00:00:00.000000', 'admin', '2025-12-08 13:35:00.042147', 5719, b'0', '隆基Git分支同步', '定期同步Git仓库分支信息,每5分钟执行一次', 2, 'repositoryBranchServiceImpl', 'syncBranches', NULL, '{\"externalSystemId\": 4}', '0 */5 * * * ?', 'ENABLED', b'0', '2025-12-08 13:35:00.039542', '2025-12-08 13:40:00.000000', 0, 0, 0, 3600, 2, ''); \ No newline at end of file diff --git a/backend/src/main/resources/db/changelog/changes/v1.0.0-schema.sql b/backend/src/main/resources/db/changelog/changes/v1.0.0-schema.sql index 34f39a75..d0838c88 100644 --- a/backend/src/main/resources/db/changelog/changes/v1.0.0-schema.sql +++ b/backend/src/main/resources/db/changelog/changes/v1.0.0-schema.sql @@ -770,8 +770,7 @@ CREATE TABLE deploy_team enable_git_sync_check BIT NOT NULL DEFAULT 0 COMMENT '是否启用Git同步检测(仅SYNC_MODE模式有效)', UNIQUE INDEX uk_team_code (team_code), - INDEX idx_owner (owner_id), - CONSTRAINT fk_team_owner FOREIGN KEY (owner_id) REFERENCES sys_user (id) + INDEX idx_owner (owner_id) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='团队表'; -- 团队成员表 @@ -793,8 +792,7 @@ CREATE TABLE deploy_team_member UNIQUE INDEX uk_team_user (team_id, user_id), INDEX idx_user (user_id), - CONSTRAINT fk_team_member_team FOREIGN KEY (team_id) REFERENCES deploy_team (id), - CONSTRAINT fk_team_member_user FOREIGN KEY (user_id) REFERENCES sys_user (id) + CONSTRAINT fk_team_member_team FOREIGN KEY (team_id) REFERENCES deploy_team (id) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='团队成员表'; -- 团队应用关联表