-- ============================================
-- BPM 完整流程导出
-- 流程: 习讲话经办人反馈流程 (xispeak经办人反馈流程)
-- 节点: 共 7 个（全部）
-- 导出时间: 2026-08-12 15:01:26
-- ============================================
-- 执行效果:
--   目标库无此流程 → INSERT 全部数据，发布即可用
--   目标库已有此流程 → 流程定义(process_xml/process_json)与节点配置全部 UPDATE，保留 id/process_key
-- 执行后: 去流程设计器点"发布"
-- ============================================

SET @new_pid = REPLACE(UUID(), '-', '');

-- ============================================
-- 1. 流程定义（仅在目标库无此 process_key 时 INSERT，process_status 强制置 0 未发布）
-- ============================================
INSERT INTO ext_act_process
  (id, process_type, process_key, process_name, process_status,
   process_xml, process_json, low_app_id, note,
   pc_icon, app_icon, urge_status, back_status, graphic_status,
   auto_submit_status, notify_way, start_type, open_status,
   run_concurrent_mode)
SELECT
  @new_pid, 'oa', 'xispeak经办人反馈流程', '习讲话经办人反馈流程', 0,
  UNHEX(
'3C3F786D6C2076657273696F6E3D22312E302220656E636F64696E673D225554'
'462D38223F3E3C62706D6E323A646566696E6974696F6E7320786D6C6E733A62'
'706D6E323D22687474703A2F2F7777772E6F6D672E6F72672F737065632F4250'
'4D4E2F32303130303532342F4D4F44454C2220786D6C6E733A7873693D226874'
'74703A2F2F7777772E77332E6F72672F323030312F584D4C536368656D612D69'
'6E7374616E63652220786D6C6E733A62706D6E64693D22687474703A2F2F7777'
'772E6F6D672E6F72672F737065632F42504D4E2F32303130303532342F444922'
'20786D6C6E733A64633D22687474703A2F2F7777772E6F6D672E6F72672F7370'
'65632F44442F32303130303532342F44432220786D6C6E733A666C6F7761626C'
'653D22687474703A2F2F666C6F7761626C652E6F72672F62706D6E2220786D6C'
'6E733A64693D22687474703A2F2F7777772E6F6D672E6F72672F737065632F44'
'442F32303130303532342F4449222069643D2273616D706C652D646961677261'
'6D22207461726765744E616D6573706163653D22687474703A2F2F62706D6E2E'
'696F2F736368656D612F62706D6E22207873693A736368656D614C6F63617469'
'6F6E3D22687474703A2F2F7777772E6F6D672E6F72672F737065632F42504D4E'
'2F32303130303532342F4D4F44454C2042504D4E32302E787364223E3C62706D'
'6E323A70726F636573732069643D2270726F636573735F313737383331353131'
'3433393222206E616D653D22E4B9A0E8AEB2E8AF9DE7BB8FE58A9EE4BABAE58F'
'8DE9A688E6B581E7A88B223E3C62706D6E323A657874656E73696F6E456C656D'
'656E74733E3C666C6F7761626C653A657865637574696F6E4C697374656E6572'
'20636C6173733D226F72672E6A656563672E6D6F64756C65732E65787462706D'
'2E6C697374656E65722E657865637574696F6E2E50726F63657373456E644C69'
'7374656E657222206576656E743D22656E6422202F3E3C666C6F7761626C653A'
'6576656E744C697374656E657220636C6173733D226F72672E6A656563672E6D'
'6F64756C65732E6C697374656E65722E7461736B7469702E5461736B43726561'
'7465476C6F62616C4C697374656E657222202F3E3C2F62706D6E323A65787465'
'6E73696F6E456C656D656E74733E3C62706D6E323A73746172744576656E7420'
'69643D22737461727422206E616D653D22E5BC80E5A78B2220666C6F7761626C'
'653A696E69746961746F723D226170706C79557365724964223E3C62706D6E32'
'3A6F7574676F696E673E466C6F775F30766C3261716C3C2F62706D6E323A6F75'
'74676F696E673E3C2F62706D6E323A73746172744576656E743E3C62706D6E32'
'3A757365725461736B2069643D225461736B5F31327664717A7622206E616D65'
'3D22E983A8E997A8E7BB8FE58A9EE4BABAE58F8DE9A688E5AE8CE68890E68385'
'E586B52220666C6F7761626C653A61737369676E65653D22247B696D706C576F'
'726B65727D223E3C62706D6E323A696E636F6D696E673E466C6F775F30746D6E'
'6B686A3C2F62706D6E323A696E636F6D696E673E3C62706D6E323A6F7574676F'
'696E673E466C6F775F306A6D676F79693C2F62706D6E323A6F7574676F696E67'
'3E3C62706D6E323A6D756C7469496E7374616E63654C6F6F7043686172616374'
'657269737469637320666C6F7761626C653A636F6C6C656374696F6E3D22247B'
'5869537065616B466565646261636B466C6F772E676574496D706C4465707457'
'6F726B657228657865637574696F6E297D2220666C6F7761626C653A656C656D'
'656E745661726961626C653D22696D706C576F726B6572223E3C62706D6E323A'
'6C6F6F7043617264696E616C697479207873693A747970653D2262706D6E323A'
'74466F726D616C45787072657373696F6E223E247B5869537065616B46656564'
'6261636B466C6F772E676574496D706C44657074576F726B65724C656E677468'
'28657865637574696F6E297D3C2F62706D6E323A6C6F6F7043617264696E616C'
'6974793E3C62706D6E323A636F6D706C6574696F6E436F6E646974696F6E2078'
'73693A747970653D2262706D6E323A74466F726D616C45787072657373696F6E'
'223E247B6E724F66436F6D706C65746564496E7374616E6365732667743B3D31'
'7D3C2F62706D6E323A636F6D706C6574696F6E436F6E646974696F6E3E3C2F62'
'706D6E323A6D756C7469496E7374616E63654C6F6F7043686172616374657269'
'73746963733E3C2F62706D6E323A757365725461736B3E3C62706D6E323A7365'
'7175656E6365466C6F772069643D22466C6F775F30766C3261716C2220736F75'
'7263655265663D22737461727422207461726765745265663D22476174657761'
'795F306A653267656C22202F3E3C62706D6E323A757365725461736B2069643D'
'225461736B5F3036646932776622206E616D653D22E983A8E997A8E8B49FE8B4'
'A3E4BABAE5AEA1E689B92220666C6F7761626C653A61737369676E65653D2224'
'7B5869537065616B466565646261636B466C6F772E676574496D706C44657074'
'417070726F766528657865637574696F6E297D223E3C62706D6E323A696E636F'
'6D696E673E466C6F775F306A6D676F79693C2F62706D6E323A696E636F6D696E'
'673E3C62706D6E323A6F7574676F696E673E466C6F775F30676E677A33663C2F'
'62706D6E323A6F7574676F696E673E3C2F62706D6E323A757365725461736B3E'
'3C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F306A6D'
'676F79692220736F757263655265663D225461736B5F31327664717A76222074'
'61726765745265663D225461736B5F3036646932776622202F3E3C62706D6E32'
'3A757365725461736B2069643D225461736B5F31336F6C6E7A3122206E616D65'
'3D22E79DA3E58A9EE7BB8FE58A9EE4BABAE6A0B8E69FA52220666C6F7761626C'
'653A61737369676E65653D22247B6170706C795573657249647D223E3C62706D'
'6E323A696E636F6D696E673E466C6F775F30676E677A33663C2F62706D6E323A'
'696E636F6D696E673E3C62706D6E323A696E636F6D696E673E466C6F775F3035'
'776A6536373C2F62706D6E323A696E636F6D696E673E3C62706D6E323A6F7574'
'676F696E673E466C6F775F307462713973653C2F62706D6E323A6F7574676F69'
'6E673E3C2F62706D6E323A757365725461736B3E3C62706D6E323A7365717565'
'6E6365466C6F772069643D22466C6F775F30676E677A33662220736F75726365'
'5265663D225461736B5F3036646932776622207461726765745265663D225461'
'736B5F31336F6C6E7A3122202F3E3C62706D6E323A757365725461736B206964'
'3D225461736B5F316C363530747A22206E616D653D22E79DA3E58A9EE983A8E9'
'97A8E8B49FE8B4A3E4BABAE5AEA1E689B92220666C6F7761626C653A61737369'
'676E65653D22247B6267446570744C65616465727D223E3C62706D6E323A696E'
'636F6D696E673E466C6F775F307462713973653C2F62706D6E323A696E636F6D'
'696E673E3C62706D6E323A6F7574676F696E673E466C6F775F307774796C6361'
'3C2F62706D6E323A6F7574676F696E673E3C62706D6E323A6D756C7469496E73'
'74616E63654C6F6F7043686172616374657269737469637320666C6F7761626C'
'653A636F6C6C656374696F6E3D22247B7869537065616B466C6F772E67657442'
'67446570744C645573657249644C69737428297D2220666C6F7761626C653A65'
'6C656D656E745661726961626C653D226267446570744C6561646572223E3C62'
'706D6E323A6C6F6F7043617264696E616C697479207873693A747970653D2262'
'706D6E323A74466F726D616C45787072657373696F6E223E247B786953706561'
'6B466C6F772E6765744267446570744C645573657249644C6973744C656E6774'
'6828297D3C2F62706D6E323A6C6F6F7043617264696E616C6974793E3C62706D'
'6E323A636F6D706C6574696F6E436F6E646974696F6E207873693A747970653D'
'2262706D6E323A74466F726D616C45787072657373696F6E223E247B6E724F66'
'436F6D706C65746564496E7374616E6365732667743B3D317D3C2F62706D6E32'
'3A636F6D706C6574696F6E436F6E646974696F6E3E3C2F62706D6E323A6D756C'
'7469496E7374616E63654C6F6F704368617261637465726973746963733E3C2F'
'62706D6E323A757365725461736B3E3C62706D6E323A73657175656E6365466C'
'6F772069643D22466C6F775F307462713973652220736F757263655265663D22'
'5461736B5F31336F6C6E7A3122207461726765745265663D225461736B5F316C'
'363530747A22202F3E3C62706D6E323A757365725461736B2069643D22546173'
'6B5F3062616877723822206E616D653D22E7BAAAE6A380E7BB8FE58A9EE4BABA'
'E79B91E5AF9F2220666C6F7761626C653A61737369676E65653D22247B6A6A44'
'6570744C65616465727D223E3C62706D6E323A696E636F6D696E673E466C6F77'
'5F307774796C63613C2F62706D6E323A696E636F6D696E673E3C62706D6E323A'
'6F7574676F696E673E466C6F775F306F75683774343C2F62706D6E323A6F7574'
'676F696E673E3C62706D6E323A6D756C7469496E7374616E63654C6F6F704368'
'6172616374657269737469637320666C6F7761626C653A636F6C6C656374696F'
'6E3D22247B5869537065616B466565646261636B466C6F772E6765744A4A4465'
'7074576F726B65724C69737428297D2220666C6F7761626C653A656C656D656E'
'745661726961626C653D226A6A446570744C6561646572223E3C62706D6E323A'
'6C6F6F7043617264696E616C697479207873693A747970653D2262706D6E323A'
'74466F726D616C45787072657373696F6E223E247B5869537065616B46656564'
'6261636B466C6F772E6765744A4A44657074576F726B65724C6973744C656E67'
'746828297D3C2F62706D6E323A6C6F6F7043617264696E616C6974793E3C6270'
'6D6E323A636F6D706C6574696F6E436F6E646974696F6E207873693A74797065'
'3D2262706D6E323A74466F726D616C45787072657373696F6E223E247B6E724F'
'66436F6D706C65746564496E7374616E6365732667743B3D317D3C2F62706D6E'
'323A636F6D706C6574696F6E436F6E646974696F6E3E3C2F62706D6E323A6D75'
'6C7469496E7374616E63654C6F6F704368617261637465726973746963733E3C'
'2F62706D6E323A757365725461736B3E3C62706D6E323A73657175656E636546'
'6C6F772069643D22466C6F775F307774796C63612220736F757263655265663D'
'225461736B5F316C363530747A22207461726765745265663D225461736B5F30'
'62616877723822202F3E3C62706D6E323A757365725461736B2069643D225461'
'736B5F3030356969776922206E616D653D22E7BAAAE6A380E8B49FE8B4A3E4BA'
'BAE5AEA1E689B92220666C6F7761626C653A61737369676E65653D22247B4A4A'
'446570744C65616465727D223E3C62706D6E323A696E636F6D696E673E466C6F'
'775F306F75683774343C2F62706D6E323A696E636F6D696E673E3C62706D6E32'
'3A6F7574676F696E673E466C6F775F30623078326F323C2F62706D6E323A6F75'
'74676F696E673E3C62706D6E323A6D756C7469496E7374616E63654C6F6F7043'
'686172616374657269737469637320666C6F7761626C653A636F6C6C65637469'
'6F6E3D22247B5869537065616B466565646261636B466C6F772E6765744A4A44'
'6570744C65616465724C69737428297D2220666C6F7761626C653A656C656D65'
'6E745661726961626C653D224A4A446570744C6561646572223E3C62706D6E32'
'3A6C6F6F7043617264696E616C697479207873693A747970653D2262706D6E32'
'3A74466F726D616C45787072657373696F6E223E247B5869537065616B466565'
'646261636B466C6F772E6765744A4A446570744C65616465724C6973744C656E'
'67746828297D3C2F62706D6E323A6C6F6F7043617264696E616C6974793E3C62'
'706D6E323A636F6D706C6574696F6E436F6E646974696F6E207873693A747970'
'653D2262706D6E323A74466F726D616C45787072657373696F6E223E247B6E72'
'4F66436F6D706C65746564496E7374616E6365732667743B3D317D203C2F6270'
'6D6E323A636F6D706C6574696F6E436F6E646974696F6E3E3C2F62706D6E323A'
'6D756C7469496E7374616E63654C6F6F70436861726163746572697374696373'
'3E3C2F62706D6E323A757365725461736B3E3C62706D6E323A73657175656E63'
'65466C6F772069643D22466C6F775F306F75683774342220736F757263655265'
'663D225461736B5F3062616877723822207461726765745265663D225461736B'
'5F3030356969776922202F3E3C62706D6E323A656E644576656E742069643D22'
'456E645F30383275647A3922206E616D653D22E7BB93E69D9F223E3C62706D6E'
'323A696E636F6D696E673E466C6F775F30623078326F323C2F62706D6E323A69'
'6E636F6D696E673E3C2F62706D6E323A656E644576656E743E3C62706D6E323A'
'73657175656E6365466C6F772069643D22466C6F775F30623078326F32222073'
'6F757263655265663D225461736B5F3030356969776922207461726765745265'
'663D22456E645F30383275647A3922202F3E3C62706D6E323A6578636C757369'
'7665476174657761792069643D22476174657761795F306A653267656C22206E'
'616D653D22E698AFE590A6E7BB8FE58A9EE983A8E997A8E8B49FE8B4A3E4BABA'
'E58A9E223E3C62706D6E323A696E636F6D696E673E466C6F775F30766C326171'
'6C3C2F62706D6E323A696E636F6D696E673E3C62706D6E323A6F7574676F696E'
'673E466C6F775F30746D6E6B686A3C2F62706D6E323A6F7574676F696E673E3C'
'62706D6E323A6F7574676F696E673E466C6F775F316961686465623C2F62706D'
'6E323A6F7574676F696E673E3C2F62706D6E323A6578636C7573697665476174'
'657761793E3C62706D6E323A73657175656E6365466C6F772069643D22466C6F'
'775F30746D6E6B686A22206E616D653D22E590A62220736F757263655265663D'
'22476174657761795F306A653267656C22207461726765745265663D22546173'
'6B5F31327664717A76223E3C62706D6E323A636F6E646974696F6E4578707265'
'7373696F6E207873693A747970653D2262706D6E323A74466F726D616C457870'
'72657373696F6E223E247B5869537065616B466565646261636B466C6F772E67'
'6574496D706C446570744973456E6428657865637574696F6E293D3D307D3C2F'
'62706D6E323A636F6E646974696F6E45787072657373696F6E3E3C2F62706D6E'
'323A73657175656E6365466C6F773E3C62706D6E323A757365725461736B2069'
'643D225461736B5F307369616C6E6122206E616D653D22E983A8E997A8E8B49F'
'E8B4A3E4BABAE79BB4E68EA5E58F8DE9A6882220666C6F7761626C653A617373'
'69676E65653D22247B5869537065616B466565646261636B466C6F772E676574'
'496D706C4C65616465724173576F726B657228657865637574696F6E297D223E'
'3C62706D6E323A696E636F6D696E673E466C6F775F316961686465623C2F6270'
'6D6E323A696E636F6D696E673E3C62706D6E323A6F7574676F696E673E466C6F'
'775F3035776A6536373C2F62706D6E323A6F7574676F696E673E3C2F62706D6E'
'323A757365725461736B3E3C62706D6E323A73657175656E6365466C6F772069'
'643D22466C6F775F3169616864656222206E616D653D22E698AF2220736F7572'
'63655265663D22476174657761795F306A653267656C22207461726765745265'
'663D225461736B5F307369616C6E61223E3C62706D6E323A636F6E646974696F'
'6E45787072657373696F6E207873693A747970653D2262706D6E323A74466F72'
'6D616C45787072657373696F6E223E247B5869537065616B466565646261636B'
'466C6F772E676574496D706C446570744973456E6428657865637574696F6E29'
'3D3D317D3C2F62706D6E323A636F6E646974696F6E45787072657373696F6E3E'
'3C2F62706D6E323A73657175656E6365466C6F773E3C62706D6E323A73657175'
'656E6365466C6F772069643D22466C6F775F3035776A6536372220736F757263'
'655265663D225461736B5F307369616C6E6122207461726765745265663D2254'
'61736B5F31336F6C6E7A3122202F3E3C2F62706D6E323A70726F636573733E3C'
'62706D6E64693A42504D4E4469616772616D2069643D2242504D4E4469616772'
'616D5F31223E3C62706D6E64693A42504D4E506C616E652069643D2242504D4E'
'506C616E655F31222062706D6E456C656D656E743D2270726F636573735F3137'
'3738333135313134333932223E3C62706D6E64693A42504D4E45646765206964'
'3D22466C6F775F30623078326F325F6469222062706D6E456C656D656E743D22'
'466C6F775F30623078326F32223E3C64693A776179706F696E7420783D223331'
'302220793D2234353022202F3E3C64693A776179706F696E7420783D22313738'
'2220793D2234353022202F3E3C2F62706D6E64693A42504D4E456467653E3C62'
'706D6E64693A42504D4E456467652069643D22466C6F775F306F75683774345F'
'6469222062706D6E456C656D656E743D22466C6F775F306F7568377434223E3C'
'64693A776179706F696E7420783D223535302220793D2234353022202F3E3C64'
'693A776179706F696E7420783D223431302220793D2234353022202F3E3C2F62'
'706D6E64693A42504D4E456467653E3C62706D6E64693A42504D4E4564676520'
'69643D22466C6F775F307774796C63615F6469222062706D6E456C656D656E74'
'3D22466C6F775F307774796C6361223E3C64693A776179706F696E7420783D22'
'3739302220793D2234353022202F3E3C64693A776179706F696E7420783D2236'
'35302220793D2234353022202F3E3C2F62706D6E64693A42504D4E456467653E'
'3C62706D6E64693A42504D4E456467652069643D22466C6F775F307462713973'
'655F6469222062706D6E456C656D656E743D22466C6F775F3074627139736522'
'3E3C64693A776179706F696E7420783D223834302220793D2232373022202F3E'
'3C64693A776179706F696E7420783D223834302220793D2234313022202F3E3C'
'2F62706D6E64693A42504D4E456467653E3C62706D6E64693A42504D4E456467'
'652069643D22466C6F775F30676E677A33665F6469222062706D6E456C656D65'
'6E743D22466C6F775F30676E677A3366223E3C64693A776179706F696E742078'
'3D223731302220793D2232333022202F3E3C64693A776179706F696E7420783D'
'223739302220793D2232333022202F3E3C2F62706D6E64693A42504D4E456467'
'653E3C62706D6E64693A42504D4E456467652069643D22466C6F775F306A6D67'
'6F79695F6469222062706D6E456C656D656E743D22466C6F775F306A6D676F79'
'69223E3C64693A776179706F696E7420783D223533302220793D223233302220'
'2F3E3C64693A776179706F696E7420783D223631302220793D2232333022202F'
'3E3C2F62706D6E64693A42504D4E456467653E3C62706D6E64693A42504D4E45'
'6467652069643D22466C6F775F30766C3261716C5F6469222062706D6E456C65'
'6D656E743D22466C6F775F30766C3261716C223E3C64693A776179706F696E74'
'20783D223137382220793D2232333022202F3E3C64693A776179706F696E7420'
'783D223237352220793D2232333022202F3E3C2F62706D6E64693A42504D4E45'
'6467653E3C62706D6E64693A42504D4E456467652069643D22466C6F775F3074'
'6D6E6B686A5F6469222062706D6E456C656D656E743D22466C6F775F30746D6E'
'6B686A223E3C64693A776179706F696E7420783D223332352220793D22323330'
'22202F3E3C64693A776179706F696E7420783D223433302220793D2232333022'
'202F3E3C62706D6E64693A42504D4E4C6162656C3E3C64633A426F756E647320'
'783D223337322220793D22323132222077696474683D22313222206865696768'
'743D22313422202F3E3C2F62706D6E64693A42504D4E4C6162656C3E3C2F6270'
'6D6E64693A42504D4E456467653E3C62706D6E64693A42504D4E456467652069'
'643D22466C6F775F316961686465625F6469222062706D6E456C656D656E743D'
'22466C6F775F31696168646562223E3C64693A776179706F696E7420783D2233'
'30302220793D2232353522202F3E3C64693A776179706F696E7420783D223330'
'302220793D2233343022202F3E3C64693A776179706F696E7420783D22343830'
'2220793D2233343022202F3E3C62706D6E64693A42504D4E4C6162656C3E3C64'
'633A426F756E647320783D223330392220793D22323935222077696474683D22'
'313222206865696768743D22313422202F3E3C2F62706D6E64693A42504D4E4C'
'6162656C3E3C2F62706D6E64693A42504D4E456467653E3C62706D6E64693A42'
'504D4E456467652069643D22466C6F775F3035776A6536375F6469222062706D'
'6E456C656D656E743D22466C6F775F3035776A653637223E3C64693A77617970'
'6F696E7420783D223538302220793D2233343022202F3E3C64693A776179706F'
'696E7420783D223735302220793D2233343022202F3E3C64693A776179706F69'
'6E7420783D223735302220793D2232333022202F3E3C64693A776179706F696E'
'7420783D223739302220793D2232333022202F3E3C2F62706D6E64693A42504D'
'4E456467653E3C62706D6E64693A42504D4E53686170652069643D2253746172'
'744576656E745F303179647A71655F6469222062706D6E456C656D656E743D22'
'7374617274223E3C64633A426F756E647320783D223134322220793D22323132'
'222077696474683D22333622206865696768743D22333622202F3E3C62706D6E'
'64693A42504D4E4C6162656C3E3C64633A426F756E647320783D223134392220'
'793D22323535222077696474683D22323222206865696768743D22313422202F'
'3E3C2F62706D6E64693A42504D4E4C6162656C3E3C2F62706D6E64693A42504D'
'4E53686170653E3C62706D6E64693A42504D4E53686170652069643D22416374'
'69766974795F316C363530747A5F6469222062706D6E456C656D656E743D2254'
'61736B5F316C363530747A223E3C64633A426F756E647320783D223739302220'
'793D22343130222077696474683D2231303022206865696768743D2238302220'
'2F3E3C2F62706D6E64693A42504D4E53686170653E3C62706D6E64693A42504D'
'4E53686170652069643D2241637469766974795F306261687772385F64692220'
'62706D6E456C656D656E743D225461736B5F30626168777238223E3C64633A42'
'6F756E647320783D223535302220793D22343130222077696474683D22313030'
'22206865696768743D22383022202F3E3C2F62706D6E64693A42504D4E536861'
'70653E3C62706D6E64693A42504D4E53686170652069643D2241637469766974'
'795F303035696977695F6469222062706D6E456C656D656E743D225461736B5F'
'30303569697769223E3C64633A426F756E647320783D223331302220793D2234'
'3130222077696474683D2231303022206865696768743D22383022202F3E3C2F'
'62706D6E64693A42504D4E53686170653E3C62706D6E64693A42504D4E536861'
'70652069643D224576656E745F30383275647A395F6469222062706D6E456C65'
'6D656E743D22456E645F30383275647A39223E3C64633A426F756E647320783D'
'223134322220793D22343332222077696474683D22333622206865696768743D'
'22333622202F3E3C62706D6E64693A42504D4E4C6162656C3E3C64633A426F75'
'6E647320783D223134392220793D22343735222077696474683D223233222068'
'65696768743D22313422202F3E3C2F62706D6E64693A42504D4E4C6162656C3E'
'3C2F62706D6E64693A42504D4E53686170653E3C62706D6E64693A42504D4E53'
'686170652069643D2241637469766974795F31336F6C6E7A315F646922206270'
'6D6E456C656D656E743D225461736B5F31336F6C6E7A31223E3C64633A426F75'
'6E647320783D223739302220793D22313930222077696474683D223130302220'
'6865696768743D22383022202F3E3C2F62706D6E64693A42504D4E5368617065'
'3E3C62706D6E64693A42504D4E53686170652069643D2241637469766974795F'
'303664693277665F6469222062706D6E456C656D656E743D225461736B5F3036'
'6469327766223E3C64633A426F756E647320783D223631302220793D22313930'
'222077696474683D2231303022206865696768743D22383022202F3E3C2F6270'
'6D6E64693A42504D4E53686170653E3C62706D6E64693A42504D4E5368617065'
'2069643D22476174657761795F306A653267656C5F6469222062706D6E456C65'
'6D656E743D22476174657761795F306A653267656C222069734D61726B657256'
'697369626C653D2274727565223E3C64633A426F756E647320783D2232373522'
'20793D22323035222077696474683D22353022206865696768743D2235302220'
'2F3E3C62706D6E64693A42504D4E4C6162656C3E3C64633A426F756E64732078'
'3D223236312220793D223136372E35222077696474683D223738222068656967'
'68743D22323722202F3E3C2F62706D6E64693A42504D4E4C6162656C3E3C2F62'
'706D6E64693A42504D4E53686170653E3C62706D6E64693A42504D4E53686170'
'652069643D2241637469766974795F31327664717A765F6469222062706D6E45'
'6C656D656E743D225461736B5F31327664717A76223E3C64633A426F756E6473'
'20783D223433302220793D22313930222077696474683D223130302220686569'
'6768743D22383022202F3E3C2F62706D6E64693A42504D4E53686170653E3C62'
'706D6E64693A42504D4E53686170652069643D2241637469766974795F307369'
'616C6E615F6469222062706D6E456C656D656E743D225461736B5F307369616C'
'6E61223E3C64633A426F756E647320783D223438302220793D22333030222077'
'696474683D2231303022206865696768743D22383022202F3E3C2F62706D6E64'
'693A42504D4E53686170653E3C2F62706D6E64693A42504D4E506C616E653E3C'
'2F62706D6E64693A42504D4E4469616772616D3E3C2F62706D6E323A64656669'
'6E6974696F6E733E'  ), NULL, NULL, NULL,
  NULL, NULL, '1', '1', '1',
  '0', NULL, 'manual', '1',
  '0'
FROM DUAL
WHERE NOT EXISTS (
  SELECT 1 FROM ext_act_process WHERE process_key = 'xispeak经办人反馈流程'
);

-- ============================================
-- 1b. 流程定义 UPDATE（目标库已存在同 key 流程时，覆盖为最新流程图与配置，保留 id/process_key）
-- ============================================
UPDATE ext_act_process
SET process_type = 'oa',
    process_name = '习讲话经办人反馈流程',
    process_status = 0,
    process_xml = UNHEX(
'3C3F786D6C2076657273696F6E3D22312E302220656E636F64696E673D225554'
'462D38223F3E3C62706D6E323A646566696E6974696F6E7320786D6C6E733A62'
'706D6E323D22687474703A2F2F7777772E6F6D672E6F72672F737065632F4250'
'4D4E2F32303130303532342F4D4F44454C2220786D6C6E733A7873693D226874'
'74703A2F2F7777772E77332E6F72672F323030312F584D4C536368656D612D69'
'6E7374616E63652220786D6C6E733A62706D6E64693D22687474703A2F2F7777'
'772E6F6D672E6F72672F737065632F42504D4E2F32303130303532342F444922'
'20786D6C6E733A64633D22687474703A2F2F7777772E6F6D672E6F72672F7370'
'65632F44442F32303130303532342F44432220786D6C6E733A666C6F7761626C'
'653D22687474703A2F2F666C6F7761626C652E6F72672F62706D6E2220786D6C'
'6E733A64693D22687474703A2F2F7777772E6F6D672E6F72672F737065632F44'
'442F32303130303532342F4449222069643D2273616D706C652D646961677261'
'6D22207461726765744E616D6573706163653D22687474703A2F2F62706D6E2E'
'696F2F736368656D612F62706D6E22207873693A736368656D614C6F63617469'
'6F6E3D22687474703A2F2F7777772E6F6D672E6F72672F737065632F42504D4E'
'2F32303130303532342F4D4F44454C2042504D4E32302E787364223E3C62706D'
'6E323A70726F636573732069643D2270726F636573735F313737383331353131'
'3433393222206E616D653D22E4B9A0E8AEB2E8AF9DE7BB8FE58A9EE4BABAE58F'
'8DE9A688E6B581E7A88B223E3C62706D6E323A657874656E73696F6E456C656D'
'656E74733E3C666C6F7761626C653A657865637574696F6E4C697374656E6572'
'20636C6173733D226F72672E6A656563672E6D6F64756C65732E65787462706D'
'2E6C697374656E65722E657865637574696F6E2E50726F63657373456E644C69'
'7374656E657222206576656E743D22656E6422202F3E3C666C6F7761626C653A'
'6576656E744C697374656E657220636C6173733D226F72672E6A656563672E6D'
'6F64756C65732E6C697374656E65722E7461736B7469702E5461736B43726561'
'7465476C6F62616C4C697374656E657222202F3E3C2F62706D6E323A65787465'
'6E73696F6E456C656D656E74733E3C62706D6E323A73746172744576656E7420'
'69643D22737461727422206E616D653D22E5BC80E5A78B2220666C6F7761626C'
'653A696E69746961746F723D226170706C79557365724964223E3C62706D6E32'
'3A6F7574676F696E673E466C6F775F30766C3261716C3C2F62706D6E323A6F75'
'74676F696E673E3C2F62706D6E323A73746172744576656E743E3C62706D6E32'
'3A757365725461736B2069643D225461736B5F31327664717A7622206E616D65'
'3D22E983A8E997A8E7BB8FE58A9EE4BABAE58F8DE9A688E5AE8CE68890E68385'
'E586B52220666C6F7761626C653A61737369676E65653D22247B696D706C576F'
'726B65727D223E3C62706D6E323A696E636F6D696E673E466C6F775F30746D6E'
'6B686A3C2F62706D6E323A696E636F6D696E673E3C62706D6E323A6F7574676F'
'696E673E466C6F775F306A6D676F79693C2F62706D6E323A6F7574676F696E67'
'3E3C62706D6E323A6D756C7469496E7374616E63654C6F6F7043686172616374'
'657269737469637320666C6F7761626C653A636F6C6C656374696F6E3D22247B'
'5869537065616B466565646261636B466C6F772E676574496D706C4465707457'
'6F726B657228657865637574696F6E297D2220666C6F7761626C653A656C656D'
'656E745661726961626C653D22696D706C576F726B6572223E3C62706D6E323A'
'6C6F6F7043617264696E616C697479207873693A747970653D2262706D6E323A'
'74466F726D616C45787072657373696F6E223E247B5869537065616B46656564'
'6261636B466C6F772E676574496D706C44657074576F726B65724C656E677468'
'28657865637574696F6E297D3C2F62706D6E323A6C6F6F7043617264696E616C'
'6974793E3C62706D6E323A636F6D706C6574696F6E436F6E646974696F6E2078'
'73693A747970653D2262706D6E323A74466F726D616C45787072657373696F6E'
'223E247B6E724F66436F6D706C65746564496E7374616E6365732667743B3D31'
'7D3C2F62706D6E323A636F6D706C6574696F6E436F6E646974696F6E3E3C2F62'
'706D6E323A6D756C7469496E7374616E63654C6F6F7043686172616374657269'
'73746963733E3C2F62706D6E323A757365725461736B3E3C62706D6E323A7365'
'7175656E6365466C6F772069643D22466C6F775F30766C3261716C2220736F75'
'7263655265663D22737461727422207461726765745265663D22476174657761'
'795F306A653267656C22202F3E3C62706D6E323A757365725461736B2069643D'
'225461736B5F3036646932776622206E616D653D22E983A8E997A8E8B49FE8B4'
'A3E4BABAE5AEA1E689B92220666C6F7761626C653A61737369676E65653D2224'
'7B5869537065616B466565646261636B466C6F772E676574496D706C44657074'
'417070726F766528657865637574696F6E297D223E3C62706D6E323A696E636F'
'6D696E673E466C6F775F306A6D676F79693C2F62706D6E323A696E636F6D696E'
'673E3C62706D6E323A6F7574676F696E673E466C6F775F30676E677A33663C2F'
'62706D6E323A6F7574676F696E673E3C2F62706D6E323A757365725461736B3E'
'3C62706D6E323A73657175656E6365466C6F772069643D22466C6F775F306A6D'
'676F79692220736F757263655265663D225461736B5F31327664717A76222074'
'61726765745265663D225461736B5F3036646932776622202F3E3C62706D6E32'
'3A757365725461736B2069643D225461736B5F31336F6C6E7A3122206E616D65'
'3D22E79DA3E58A9EE7BB8FE58A9EE4BABAE6A0B8E69FA52220666C6F7761626C'
'653A61737369676E65653D22247B6170706C795573657249647D223E3C62706D'
'6E323A696E636F6D696E673E466C6F775F30676E677A33663C2F62706D6E323A'
'696E636F6D696E673E3C62706D6E323A696E636F6D696E673E466C6F775F3035'
'776A6536373C2F62706D6E323A696E636F6D696E673E3C62706D6E323A6F7574'
'676F696E673E466C6F775F307462713973653C2F62706D6E323A6F7574676F69'
'6E673E3C2F62706D6E323A757365725461736B3E3C62706D6E323A7365717565'
'6E6365466C6F772069643D22466C6F775F30676E677A33662220736F75726365'
'5265663D225461736B5F3036646932776622207461726765745265663D225461'
'736B5F31336F6C6E7A3122202F3E3C62706D6E323A757365725461736B206964'
'3D225461736B5F316C363530747A22206E616D653D22E79DA3E58A9EE983A8E9'
'97A8E8B49FE8B4A3E4BABAE5AEA1E689B92220666C6F7761626C653A61737369'
'676E65653D22247B6267446570744C65616465727D223E3C62706D6E323A696E'
'636F6D696E673E466C6F775F307462713973653C2F62706D6E323A696E636F6D'
'696E673E3C62706D6E323A6F7574676F696E673E466C6F775F307774796C6361'
'3C2F62706D6E323A6F7574676F696E673E3C62706D6E323A6D756C7469496E73'
'74616E63654C6F6F7043686172616374657269737469637320666C6F7761626C'
'653A636F6C6C656374696F6E3D22247B7869537065616B466C6F772E67657442'
'67446570744C645573657249644C69737428297D2220666C6F7761626C653A65'
'6C656D656E745661726961626C653D226267446570744C6561646572223E3C62'
'706D6E323A6C6F6F7043617264696E616C697479207873693A747970653D2262'
'706D6E323A74466F726D616C45787072657373696F6E223E247B786953706561'
'6B466C6F772E6765744267446570744C645573657249644C6973744C656E6774'
'6828297D3C2F62706D6E323A6C6F6F7043617264696E616C6974793E3C62706D'
'6E323A636F6D706C6574696F6E436F6E646974696F6E207873693A747970653D'
'2262706D6E323A74466F726D616C45787072657373696F6E223E247B6E724F66'
'436F6D706C65746564496E7374616E6365732667743B3D317D3C2F62706D6E32'
'3A636F6D706C6574696F6E436F6E646974696F6E3E3C2F62706D6E323A6D756C'
'7469496E7374616E63654C6F6F704368617261637465726973746963733E3C2F'
'62706D6E323A757365725461736B3E3C62706D6E323A73657175656E6365466C'
'6F772069643D22466C6F775F307462713973652220736F757263655265663D22'
'5461736B5F31336F6C6E7A3122207461726765745265663D225461736B5F316C'
'363530747A22202F3E3C62706D6E323A757365725461736B2069643D22546173'
'6B5F3062616877723822206E616D653D22E7BAAAE6A380E7BB8FE58A9EE4BABA'
'E79B91E5AF9F2220666C6F7761626C653A61737369676E65653D22247B6A6A44'
'6570744C65616465727D223E3C62706D6E323A696E636F6D696E673E466C6F77'
'5F307774796C63613C2F62706D6E323A696E636F6D696E673E3C62706D6E323A'
'6F7574676F696E673E466C6F775F306F75683774343C2F62706D6E323A6F7574'
'676F696E673E3C62706D6E323A6D756C7469496E7374616E63654C6F6F704368'
'6172616374657269737469637320666C6F7761626C653A636F6C6C656374696F'
'6E3D22247B5869537065616B466565646261636B466C6F772E6765744A4A4465'
'7074576F726B65724C69737428297D2220666C6F7761626C653A656C656D656E'
'745661726961626C653D226A6A446570744C6561646572223E3C62706D6E323A'
'6C6F6F7043617264696E616C697479207873693A747970653D2262706D6E323A'
'74466F726D616C45787072657373696F6E223E247B5869537065616B46656564'
'6261636B466C6F772E6765744A4A44657074576F726B65724C6973744C656E67'
'746828297D3C2F62706D6E323A6C6F6F7043617264696E616C6974793E3C6270'
'6D6E323A636F6D706C6574696F6E436F6E646974696F6E207873693A74797065'
'3D2262706D6E323A74466F726D616C45787072657373696F6E223E247B6E724F'
'66436F6D706C65746564496E7374616E6365732667743B3D317D3C2F62706D6E'
'323A636F6D706C6574696F6E436F6E646974696F6E3E3C2F62706D6E323A6D75'
'6C7469496E7374616E63654C6F6F704368617261637465726973746963733E3C'
'2F62706D6E323A757365725461736B3E3C62706D6E323A73657175656E636546'
'6C6F772069643D22466C6F775F307774796C63612220736F757263655265663D'
'225461736B5F316C363530747A22207461726765745265663D225461736B5F30'
'62616877723822202F3E3C62706D6E323A757365725461736B2069643D225461'
'736B5F3030356969776922206E616D653D22E7BAAAE6A380E8B49FE8B4A3E4BA'
'BAE5AEA1E689B92220666C6F7761626C653A61737369676E65653D22247B4A4A'
'446570744C65616465727D223E3C62706D6E323A696E636F6D696E673E466C6F'
'775F306F75683774343C2F62706D6E323A696E636F6D696E673E3C62706D6E32'
'3A6F7574676F696E673E466C6F775F30623078326F323C2F62706D6E323A6F75'
'74676F696E673E3C62706D6E323A6D756C7469496E7374616E63654C6F6F7043'
'686172616374657269737469637320666C6F7761626C653A636F6C6C65637469'
'6F6E3D22247B5869537065616B466565646261636B466C6F772E6765744A4A44'
'6570744C65616465724C69737428297D2220666C6F7761626C653A656C656D65'
'6E745661726961626C653D224A4A446570744C6561646572223E3C62706D6E32'
'3A6C6F6F7043617264696E616C697479207873693A747970653D2262706D6E32'
'3A74466F726D616C45787072657373696F6E223E247B5869537065616B466565'
'646261636B466C6F772E6765744A4A446570744C65616465724C6973744C656E'
'67746828297D3C2F62706D6E323A6C6F6F7043617264696E616C6974793E3C62'
'706D6E323A636F6D706C6574696F6E436F6E646974696F6E207873693A747970'
'653D2262706D6E323A74466F726D616C45787072657373696F6E223E247B6E72'
'4F66436F6D706C65746564496E7374616E6365732667743B3D317D203C2F6270'
'6D6E323A636F6D706C6574696F6E436F6E646974696F6E3E3C2F62706D6E323A'
'6D756C7469496E7374616E63654C6F6F70436861726163746572697374696373'
'3E3C2F62706D6E323A757365725461736B3E3C62706D6E323A73657175656E63'
'65466C6F772069643D22466C6F775F306F75683774342220736F757263655265'
'663D225461736B5F3062616877723822207461726765745265663D225461736B'
'5F3030356969776922202F3E3C62706D6E323A656E644576656E742069643D22'
'456E645F30383275647A3922206E616D653D22E7BB93E69D9F223E3C62706D6E'
'323A696E636F6D696E673E466C6F775F30623078326F323C2F62706D6E323A69'
'6E636F6D696E673E3C2F62706D6E323A656E644576656E743E3C62706D6E323A'
'73657175656E6365466C6F772069643D22466C6F775F30623078326F32222073'
'6F757263655265663D225461736B5F3030356969776922207461726765745265'
'663D22456E645F30383275647A3922202F3E3C62706D6E323A6578636C757369'
'7665476174657761792069643D22476174657761795F306A653267656C22206E'
'616D653D22E698AFE590A6E7BB8FE58A9EE983A8E997A8E8B49FE8B4A3E4BABA'
'E58A9E223E3C62706D6E323A696E636F6D696E673E466C6F775F30766C326171'
'6C3C2F62706D6E323A696E636F6D696E673E3C62706D6E323A6F7574676F696E'
'673E466C6F775F30746D6E6B686A3C2F62706D6E323A6F7574676F696E673E3C'
'62706D6E323A6F7574676F696E673E466C6F775F316961686465623C2F62706D'
'6E323A6F7574676F696E673E3C2F62706D6E323A6578636C7573697665476174'
'657761793E3C62706D6E323A73657175656E6365466C6F772069643D22466C6F'
'775F30746D6E6B686A22206E616D653D22E590A62220736F757263655265663D'
'22476174657761795F306A653267656C22207461726765745265663D22546173'
'6B5F31327664717A76223E3C62706D6E323A636F6E646974696F6E4578707265'
'7373696F6E207873693A747970653D2262706D6E323A74466F726D616C457870'
'72657373696F6E223E247B5869537065616B466565646261636B466C6F772E67'
'6574496D706C446570744973456E6428657865637574696F6E293D3D307D3C2F'
'62706D6E323A636F6E646974696F6E45787072657373696F6E3E3C2F62706D6E'
'323A73657175656E6365466C6F773E3C62706D6E323A757365725461736B2069'
'643D225461736B5F307369616C6E6122206E616D653D22E983A8E997A8E8B49F'
'E8B4A3E4BABAE79BB4E68EA5E58F8DE9A6882220666C6F7761626C653A617373'
'69676E65653D22247B5869537065616B466565646261636B466C6F772E676574'
'496D706C4C65616465724173576F726B657228657865637574696F6E297D223E'
'3C62706D6E323A696E636F6D696E673E466C6F775F316961686465623C2F6270'
'6D6E323A696E636F6D696E673E3C62706D6E323A6F7574676F696E673E466C6F'
'775F3035776A6536373C2F62706D6E323A6F7574676F696E673E3C2F62706D6E'
'323A757365725461736B3E3C62706D6E323A73657175656E6365466C6F772069'
'643D22466C6F775F3169616864656222206E616D653D22E698AF2220736F7572'
'63655265663D22476174657761795F306A653267656C22207461726765745265'
'663D225461736B5F307369616C6E61223E3C62706D6E323A636F6E646974696F'
'6E45787072657373696F6E207873693A747970653D2262706D6E323A74466F72'
'6D616C45787072657373696F6E223E247B5869537065616B466565646261636B'
'466C6F772E676574496D706C446570744973456E6428657865637574696F6E29'
'3D3D317D3C2F62706D6E323A636F6E646974696F6E45787072657373696F6E3E'
'3C2F62706D6E323A73657175656E6365466C6F773E3C62706D6E323A73657175'
'656E6365466C6F772069643D22466C6F775F3035776A6536372220736F757263'
'655265663D225461736B5F307369616C6E6122207461726765745265663D2254'
'61736B5F31336F6C6E7A3122202F3E3C2F62706D6E323A70726F636573733E3C'
'62706D6E64693A42504D4E4469616772616D2069643D2242504D4E4469616772'
'616D5F31223E3C62706D6E64693A42504D4E506C616E652069643D2242504D4E'
'506C616E655F31222062706D6E456C656D656E743D2270726F636573735F3137'
'3738333135313134333932223E3C62706D6E64693A42504D4E45646765206964'
'3D22466C6F775F30623078326F325F6469222062706D6E456C656D656E743D22'
'466C6F775F30623078326F32223E3C64693A776179706F696E7420783D223331'
'302220793D2234353022202F3E3C64693A776179706F696E7420783D22313738'
'2220793D2234353022202F3E3C2F62706D6E64693A42504D4E456467653E3C62'
'706D6E64693A42504D4E456467652069643D22466C6F775F306F75683774345F'
'6469222062706D6E456C656D656E743D22466C6F775F306F7568377434223E3C'
'64693A776179706F696E7420783D223535302220793D2234353022202F3E3C64'
'693A776179706F696E7420783D223431302220793D2234353022202F3E3C2F62'
'706D6E64693A42504D4E456467653E3C62706D6E64693A42504D4E4564676520'
'69643D22466C6F775F307774796C63615F6469222062706D6E456C656D656E74'
'3D22466C6F775F307774796C6361223E3C64693A776179706F696E7420783D22'
'3739302220793D2234353022202F3E3C64693A776179706F696E7420783D2236'
'35302220793D2234353022202F3E3C2F62706D6E64693A42504D4E456467653E'
'3C62706D6E64693A42504D4E456467652069643D22466C6F775F307462713973'
'655F6469222062706D6E456C656D656E743D22466C6F775F3074627139736522'
'3E3C64693A776179706F696E7420783D223834302220793D2232373022202F3E'
'3C64693A776179706F696E7420783D223834302220793D2234313022202F3E3C'
'2F62706D6E64693A42504D4E456467653E3C62706D6E64693A42504D4E456467'
'652069643D22466C6F775F30676E677A33665F6469222062706D6E456C656D65'
'6E743D22466C6F775F30676E677A3366223E3C64693A776179706F696E742078'
'3D223731302220793D2232333022202F3E3C64693A776179706F696E7420783D'
'223739302220793D2232333022202F3E3C2F62706D6E64693A42504D4E456467'
'653E3C62706D6E64693A42504D4E456467652069643D22466C6F775F306A6D67'
'6F79695F6469222062706D6E456C656D656E743D22466C6F775F306A6D676F79'
'69223E3C64693A776179706F696E7420783D223533302220793D223233302220'
'2F3E3C64693A776179706F696E7420783D223631302220793D2232333022202F'
'3E3C2F62706D6E64693A42504D4E456467653E3C62706D6E64693A42504D4E45'
'6467652069643D22466C6F775F30766C3261716C5F6469222062706D6E456C65'
'6D656E743D22466C6F775F30766C3261716C223E3C64693A776179706F696E74'
'20783D223137382220793D2232333022202F3E3C64693A776179706F696E7420'
'783D223237352220793D2232333022202F3E3C2F62706D6E64693A42504D4E45'
'6467653E3C62706D6E64693A42504D4E456467652069643D22466C6F775F3074'
'6D6E6B686A5F6469222062706D6E456C656D656E743D22466C6F775F30746D6E'
'6B686A223E3C64693A776179706F696E7420783D223332352220793D22323330'
'22202F3E3C64693A776179706F696E7420783D223433302220793D2232333022'
'202F3E3C62706D6E64693A42504D4E4C6162656C3E3C64633A426F756E647320'
'783D223337322220793D22323132222077696474683D22313222206865696768'
'743D22313422202F3E3C2F62706D6E64693A42504D4E4C6162656C3E3C2F6270'
'6D6E64693A42504D4E456467653E3C62706D6E64693A42504D4E456467652069'
'643D22466C6F775F316961686465625F6469222062706D6E456C656D656E743D'
'22466C6F775F31696168646562223E3C64693A776179706F696E7420783D2233'
'30302220793D2232353522202F3E3C64693A776179706F696E7420783D223330'
'302220793D2233343022202F3E3C64693A776179706F696E7420783D22343830'
'2220793D2233343022202F3E3C62706D6E64693A42504D4E4C6162656C3E3C64'
'633A426F756E647320783D223330392220793D22323935222077696474683D22'
'313222206865696768743D22313422202F3E3C2F62706D6E64693A42504D4E4C'
'6162656C3E3C2F62706D6E64693A42504D4E456467653E3C62706D6E64693A42'
'504D4E456467652069643D22466C6F775F3035776A6536375F6469222062706D'
'6E456C656D656E743D22466C6F775F3035776A653637223E3C64693A77617970'
'6F696E7420783D223538302220793D2233343022202F3E3C64693A776179706F'
'696E7420783D223735302220793D2233343022202F3E3C64693A776179706F69'
'6E7420783D223735302220793D2232333022202F3E3C64693A776179706F696E'
'7420783D223739302220793D2232333022202F3E3C2F62706D6E64693A42504D'
'4E456467653E3C62706D6E64693A42504D4E53686170652069643D2253746172'
'744576656E745F303179647A71655F6469222062706D6E456C656D656E743D22'
'7374617274223E3C64633A426F756E647320783D223134322220793D22323132'
'222077696474683D22333622206865696768743D22333622202F3E3C62706D6E'
'64693A42504D4E4C6162656C3E3C64633A426F756E647320783D223134392220'
'793D22323535222077696474683D22323222206865696768743D22313422202F'
'3E3C2F62706D6E64693A42504D4E4C6162656C3E3C2F62706D6E64693A42504D'
'4E53686170653E3C62706D6E64693A42504D4E53686170652069643D22416374'
'69766974795F316C363530747A5F6469222062706D6E456C656D656E743D2254'
'61736B5F316C363530747A223E3C64633A426F756E647320783D223739302220'
'793D22343130222077696474683D2231303022206865696768743D2238302220'
'2F3E3C2F62706D6E64693A42504D4E53686170653E3C62706D6E64693A42504D'
'4E53686170652069643D2241637469766974795F306261687772385F64692220'
'62706D6E456C656D656E743D225461736B5F30626168777238223E3C64633A42'
'6F756E647320783D223535302220793D22343130222077696474683D22313030'
'22206865696768743D22383022202F3E3C2F62706D6E64693A42504D4E536861'
'70653E3C62706D6E64693A42504D4E53686170652069643D2241637469766974'
'795F303035696977695F6469222062706D6E456C656D656E743D225461736B5F'
'30303569697769223E3C64633A426F756E647320783D223331302220793D2234'
'3130222077696474683D2231303022206865696768743D22383022202F3E3C2F'
'62706D6E64693A42504D4E53686170653E3C62706D6E64693A42504D4E536861'
'70652069643D224576656E745F30383275647A395F6469222062706D6E456C65'
'6D656E743D22456E645F30383275647A39223E3C64633A426F756E647320783D'
'223134322220793D22343332222077696474683D22333622206865696768743D'
'22333622202F3E3C62706D6E64693A42504D4E4C6162656C3E3C64633A426F75'
'6E647320783D223134392220793D22343735222077696474683D223233222068'
'65696768743D22313422202F3E3C2F62706D6E64693A42504D4E4C6162656C3E'
'3C2F62706D6E64693A42504D4E53686170653E3C62706D6E64693A42504D4E53'
'686170652069643D2241637469766974795F31336F6C6E7A315F646922206270'
'6D6E456C656D656E743D225461736B5F31336F6C6E7A31223E3C64633A426F75'
'6E647320783D223739302220793D22313930222077696474683D223130302220'
'6865696768743D22383022202F3E3C2F62706D6E64693A42504D4E5368617065'
'3E3C62706D6E64693A42504D4E53686170652069643D2241637469766974795F'
'303664693277665F6469222062706D6E456C656D656E743D225461736B5F3036'
'6469327766223E3C64633A426F756E647320783D223631302220793D22313930'
'222077696474683D2231303022206865696768743D22383022202F3E3C2F6270'
'6D6E64693A42504D4E53686170653E3C62706D6E64693A42504D4E5368617065'
'2069643D22476174657761795F306A653267656C5F6469222062706D6E456C65'
'6D656E743D22476174657761795F306A653267656C222069734D61726B657256'
'697369626C653D2274727565223E3C64633A426F756E647320783D2232373522'
'20793D22323035222077696474683D22353022206865696768743D2235302220'
'2F3E3C62706D6E64693A42504D4E4C6162656C3E3C64633A426F756E64732078'
'3D223236312220793D223136372E35222077696474683D223738222068656967'
'68743D22323722202F3E3C2F62706D6E64693A42504D4E4C6162656C3E3C2F62'
'706D6E64693A42504D4E53686170653E3C62706D6E64693A42504D4E53686170'
'652069643D2241637469766974795F31327664717A765F6469222062706D6E45'
'6C656D656E743D225461736B5F31327664717A76223E3C64633A426F756E6473'
'20783D223433302220793D22313930222077696474683D223130302220686569'
'6768743D22383022202F3E3C2F62706D6E64693A42504D4E53686170653E3C62'
'706D6E64693A42504D4E53686170652069643D2241637469766974795F307369'
'616C6E615F6469222062706D6E456C656D656E743D225461736B5F307369616C'
'6E61223E3C64633A426F756E647320783D223438302220793D22333030222077'
'696474683D2231303022206865696768743D22383022202F3E3C2F62706D6E64'
'693A42504D4E53686170653E3C2F62706D6E64693A42504D4E506C616E653E3C'
'2F62706D6E64693A42504D4E4469616772616D3E3C2F62706D6E323A64656669'
'6E6974696F6E733E'    ),
    process_json = NULL,
    low_app_id = NULL,
    note = NULL,
    pc_icon = NULL,
    app_icon = NULL,
    urge_status = '1',
    back_status = '1',
    graphic_status = '1',
    auto_submit_status = '0',
    notify_way = NULL,
    start_type = 'manual',
    open_status = '1',
    run_concurrent_mode = '0'
WHERE process_key = 'xispeak经办人反馈流程';

-- @pid = 目标库已有流程的 id（存在则复用）；没有则用刚生成的 @new_pid
SET @pid = COALESCE(
  (SELECT id FROM ext_act_process WHERE process_key = 'xispeak经办人反馈流程'),
  @new_pid
);
-- 注意：若目标库已存在同 key 流程，@pid 复用其 id；上面的 1b UPDATE 会把流程定义覆盖为新版，节点配置随后也会 UPDATE

-- ============================================
-- 2. 业务表单关联
-- ============================================
INSERT INTO ext_act_process_form
  (id, relation_code, biz_name, process_id, form_table_name,
   form_type, title_exp, form_deal_style, flow_status_col,
   trigger_action, low_app_id, start_signal_name, sort_num)
SELECT REPLACE(UUID(), '-', ''), 'bg_xi_speak_fb_01', NULL, @pid, 'task_task',
  '3', '${title}【习反馈】', 'default', 'bpm_status',
  NULL, NULL, NULL, NULL
FROM DUAL
WHERE @pid IS NOT NULL
  AND NOT EXISTS (
    SELECT 1 FROM ext_act_process_form
    WHERE relation_code = 'bg_xi_speak_fb_01'
  );
-- 注：relation_code 全局唯一（uk_eapf_relation_code）。目标库已存在同 relation_code（含挂在别的流程上）时跳过，避免 1062 报错；
--     保留目标库原有表单关联（如两库同一流程 process_key 不同，target 已有正确关联就不重复建）
-- ============================================
-- 3. 字段权限（先清后插，保证与源库完全一致）
-- ============================================
DELETE FROM ext_act_process_node_auth WHERE process_id = @pid;
-- ============================================
-- 4. 驳回目标（先清后插）
-- ============================================
DELETE FROM ext_act_process_node_reject_target WHERE process_id = @pid;
INSERT INTO ext_act_process_node_reject_target
  (id, process_id, source_node_code, target_node_code, target_node_name)
SELECT REPLACE(UUID(), '-', ''), @pid, 'Task_005iiwi', 'Task_12vdqzv', '部门经办人反馈完成情况'
FROM DUAL WHERE @pid IS NOT NULL;

INSERT INTO ext_act_process_node_reject_target
  (id, process_id, source_node_code, target_node_code, target_node_name)
SELECT REPLACE(UUID(), '-', ''), @pid, 'Task_005iiwi', 'Task_0sialna', '部门负责人直接反馈'
FROM DUAL WHERE @pid IS NOT NULL;

INSERT INTO ext_act_process_node_reject_target
  (id, process_id, source_node_code, target_node_code, target_node_name)
SELECT REPLACE(UUID(), '-', ''), @pid, 'Task_005iiwi', 'Task_06di2wf', '部门负责人审批'
FROM DUAL WHERE @pid IS NOT NULL;

INSERT INTO ext_act_process_node_reject_target
  (id, process_id, source_node_code, target_node_code, target_node_name)
SELECT REPLACE(UUID(), '-', ''), @pid, 'Task_005iiwi', 'Task_13olnz1', '督办经办人核查'
FROM DUAL WHERE @pid IS NOT NULL;

INSERT INTO ext_act_process_node_reject_target
  (id, process_id, source_node_code, target_node_code, target_node_name)
SELECT REPLACE(UUID(), '-', ''), @pid, 'Task_005iiwi', 'Task_1l650tz', '督办部门负责人审批'
FROM DUAL WHERE @pid IS NOT NULL;

INSERT INTO ext_act_process_node_reject_target
  (id, process_id, source_node_code, target_node_code, target_node_name)
SELECT REPLACE(UUID(), '-', ''), @pid, 'Task_005iiwi', 'Task_0bahwr8', '纪检经办人监察'
FROM DUAL WHERE @pid IS NOT NULL;

INSERT INTO ext_act_process_node_reject_target
  (id, process_id, source_node_code, target_node_code, target_node_name)
SELECT REPLACE(UUID(), '-', ''), @pid, 'Task_06di2wf', 'Task_12vdqzv', '部门经办人反馈完成情况'
FROM DUAL WHERE @pid IS NOT NULL;

INSERT INTO ext_act_process_node_reject_target
  (id, process_id, source_node_code, target_node_code, target_node_name)
SELECT REPLACE(UUID(), '-', ''), @pid, 'Task_0bahwr8', 'Task_12vdqzv', '部门经办人反馈完成情况'
FROM DUAL WHERE @pid IS NOT NULL;

INSERT INTO ext_act_process_node_reject_target
  (id, process_id, source_node_code, target_node_code, target_node_name)
SELECT REPLACE(UUID(), '-', ''), @pid, 'Task_0bahwr8', 'Task_0sialna', '部门负责人直接反馈'
FROM DUAL WHERE @pid IS NOT NULL;

INSERT INTO ext_act_process_node_reject_target
  (id, process_id, source_node_code, target_node_code, target_node_name)
SELECT REPLACE(UUID(), '-', ''), @pid, 'Task_0bahwr8', 'Task_06di2wf', '部门负责人审批'
FROM DUAL WHERE @pid IS NOT NULL;

INSERT INTO ext_act_process_node_reject_target
  (id, process_id, source_node_code, target_node_code, target_node_name)
SELECT REPLACE(UUID(), '-', ''), @pid, 'Task_0bahwr8', 'Task_13olnz1', '督办经办人核查'
FROM DUAL WHERE @pid IS NOT NULL;

INSERT INTO ext_act_process_node_reject_target
  (id, process_id, source_node_code, target_node_code, target_node_name)
SELECT REPLACE(UUID(), '-', ''), @pid, 'Task_0bahwr8', 'Task_1l650tz', '督办部门负责人审批'
FROM DUAL WHERE @pid IS NOT NULL;

INSERT INTO ext_act_process_node_reject_target
  (id, process_id, source_node_code, target_node_code, target_node_name)
SELECT REPLACE(UUID(), '-', ''), @pid, 'Task_13olnz1', 'Task_12vdqzv', '部门经办人反馈完成情况'
FROM DUAL WHERE @pid IS NOT NULL;

INSERT INTO ext_act_process_node_reject_target
  (id, process_id, source_node_code, target_node_code, target_node_name)
SELECT REPLACE(UUID(), '-', ''), @pid, 'Task_13olnz1', 'Task_0sialna', '部门负责人直接反馈'
FROM DUAL WHERE @pid IS NOT NULL;

INSERT INTO ext_act_process_node_reject_target
  (id, process_id, source_node_code, target_node_code, target_node_name)
SELECT REPLACE(UUID(), '-', ''), @pid, 'Task_13olnz1', 'Task_06di2wf', '部门负责人审批'
FROM DUAL WHERE @pid IS NOT NULL;

INSERT INTO ext_act_process_node_reject_target
  (id, process_id, source_node_code, target_node_code, target_node_name)
SELECT REPLACE(UUID(), '-', ''), @pid, 'Task_1l650tz', 'Task_12vdqzv', '部门经办人反馈完成情况'
FROM DUAL WHERE @pid IS NOT NULL;

INSERT INTO ext_act_process_node_reject_target
  (id, process_id, source_node_code, target_node_code, target_node_name)
SELECT REPLACE(UUID(), '-', ''), @pid, 'Task_1l650tz', 'Task_0sialna', '部门负责人直接反馈'
FROM DUAL WHERE @pid IS NOT NULL;

INSERT INTO ext_act_process_node_reject_target
  (id, process_id, source_node_code, target_node_code, target_node_name)
SELECT REPLACE(UUID(), '-', ''), @pid, 'Task_1l650tz', 'Task_06di2wf', '部门负责人审批'
FROM DUAL WHERE @pid IS NOT NULL;

INSERT INTO ext_act_process_node_reject_target
  (id, process_id, source_node_code, target_node_code, target_node_name)
SELECT REPLACE(UUID(), '-', ''), @pid, 'Task_1l650tz', 'Task_13olnz1', '督办经办人核查'
FROM DUAL WHERE @pid IS NOT NULL;

-- ============================================
-- 5. 节点配置（逐节点 UPDATE，无记录则 INSERT，保留已有 ID）
-- ============================================
-- 节点1: 纪检负责人审批 (Task_005iiwi)
UPDATE ext_act_process_node
SET model_and_view = 'bg/xispeak/components/BgXiSpeakBPMForm?showProcessHandle=1&showFeedbackInfo=1&showJiJianFields=1',
    model_and_view_mobile = NULL,
    node_timeout = NULL,
    node_bpm_status = NULL,
    form_edit_status = '0',
    cc_status = '0',
    selnext_user_status = '1',
    msg_status = NULL,
    transfer_status = NULL,
    add_sign_status = NULL,
    reject_status = '1',
    allow_counter_sign_add_user = NULL,
    default_opinion = '已审批',
    default_opinion2 = NULL,
    default_opinion_var = NULL,
    node_config_json = NULL
WHERE process_id = @pid AND process_node_code = 'Task_005iiwi';

INSERT INTO ext_act_process_node
  (id, form_id, process_id, process_node_code, process_node_name,
   model_and_view, model_and_view_mobile, node_timeout, node_bpm_status,
   form_edit_status, cc_status, selnext_user_status, msg_status,
   transfer_status, add_sign_status, reject_status, allow_counter_sign_add_user,
   default_opinion, [REDACTED], default_opinion_var, node_config_json)
SELECT REPLACE(UUID(), '-', ''), NULL, @pid, 'Task_005iiwi', '纪检负责人审批',
  'bg/xispeak/components/BgXiSpeakBPMForm?showProcessHandle=1&showFeedbackInfo=1&showJiJianFields=1', NULL, NULL, NULL,
  '0', '0', '1', NULL,
  NULL, NULL, '1', NULL,
  '已审批', NULL, NULL, NULL
FROM DUAL
WHERE @pid IS NOT NULL
  AND NOT EXISTS (
    SELECT 1 FROM ext_act_process_node
    WHERE process_id = @pid AND process_node_code = 'Task_005iiwi'
  );

-- 节点2: 部门负责人审批 (Task_06di2wf)
UPDATE ext_act_process_node
SET model_and_view = 'bg/xispeak/components/BgXiSpeakBPMForm?showProcessHandle=1&showFeedbackInfo=1&showAddFeedback=1&showEditFeedback=1',
    model_and_view_mobile = NULL,
    node_timeout = NULL,
    node_bpm_status = NULL,
    form_edit_status = '0',
    cc_status = '0',
    selnext_user_status = '1',
    msg_status = NULL,
    transfer_status = NULL,
    add_sign_status = NULL,
    reject_status = '1',
    allow_counter_sign_add_user = NULL,
    default_opinion = '已审批，请督办经办人核查',
    default_opinion2 = NULL,
    default_opinion_var = NULL,
    node_config_json = NULL
WHERE process_id = @pid AND process_node_code = 'Task_06di2wf';

INSERT INTO ext_act_process_node
  (id, form_id, process_id, process_node_code, process_node_name,
   model_and_view, model_and_view_mobile, node_timeout, node_bpm_status,
   form_edit_status, cc_status, selnext_user_status, msg_status,
   transfer_status, add_sign_status, reject_status, allow_counter_sign_add_user,
   default_opinion, [REDACTED], default_opinion_var, node_config_json)
SELECT REPLACE(UUID(), '-', ''), NULL, @pid, 'Task_06di2wf', '部门负责人审批',
  'bg/xispeak/components/BgXiSpeakBPMForm?showProcessHandle=1&showFeedbackInfo=1&showAddFeedback=1&showEditFeedback=1', NULL, NULL, NULL,
  '0', '0', '1', NULL,
  NULL, NULL, '1', NULL,
  '已审批，请督办经办人核查', NULL, NULL, NULL
FROM DUAL
WHERE @pid IS NOT NULL
  AND NOT EXISTS (
    SELECT 1 FROM ext_act_process_node
    WHERE process_id = @pid AND process_node_code = 'Task_06di2wf'
  );

-- 节点3: 纪检经办人监察 (Task_0bahwr8)
UPDATE ext_act_process_node
SET model_and_view = 'bg/xispeak/components/BgXiSpeakBPMForm?showProcessHandle=1&showFeedbackInfo=1&showEditFeedback=1&nonJiJianFieldsReadonly=1&showJiJianFields=1',
    model_and_view_mobile = NULL,
    node_timeout = NULL,
    node_bpm_status = NULL,
    form_edit_status = '0',
    cc_status = '0',
    selnext_user_status = '1',
    msg_status = NULL,
    transfer_status = NULL,
    add_sign_status = NULL,
    reject_status = '1',
    allow_counter_sign_add_user = NULL,
    default_opinion = '已监察，请领导审批',
    default_opinion2 = NULL,
    default_opinion_var = NULL,
    node_config_json = NULL
WHERE process_id = @pid AND process_node_code = 'Task_0bahwr8';

INSERT INTO ext_act_process_node
  (id, form_id, process_id, process_node_code, process_node_name,
   model_and_view, model_and_view_mobile, node_timeout, node_bpm_status,
   form_edit_status, cc_status, selnext_user_status, msg_status,
   transfer_status, add_sign_status, reject_status, allow_counter_sign_add_user,
   default_opinion, [REDACTED], default_opinion_var, node_config_json)
SELECT REPLACE(UUID(), '-', ''), NULL, @pid, 'Task_0bahwr8', '纪检经办人监察',
  'bg/xispeak/components/BgXiSpeakBPMForm?showProcessHandle=1&showFeedbackInfo=1&showEditFeedback=1&nonJiJianFieldsReadonly=1&showJiJianFields=1', NULL, NULL, NULL,
  '0', '0', '1', NULL,
  NULL, NULL, '1', NULL,
  '已监察，请领导审批', NULL, NULL, NULL
FROM DUAL
WHERE @pid IS NOT NULL
  AND NOT EXISTS (
    SELECT 1 FROM ext_act_process_node
    WHERE process_id = @pid AND process_node_code = 'Task_0bahwr8'
  );

-- 节点4: 部门负责人直接反馈 (Task_0sialna)
UPDATE ext_act_process_node
SET model_and_view = 'bg/xispeak/components/BgXiSpeakBPMForm?showProcessHandle=1&showFeedbackInfo=1&showAddFeedback=1&showEditFeedback=1',
    model_and_view_mobile = NULL,
    node_timeout = NULL,
    node_bpm_status = NULL,
    form_edit_status = '0',
    cc_status = '0',
    selnext_user_status = '1',
    msg_status = NULL,
    transfer_status = NULL,
    add_sign_status = NULL,
    reject_status = '0',
    allow_counter_sign_add_user = NULL,
    default_opinion = '已完成反馈，请督办经办人核查',
    default_opinion2 = NULL,
    default_opinion_var = NULL,
    node_config_json = NULL
WHERE process_id = @pid AND process_node_code = 'Task_0sialna';

INSERT INTO ext_act_process_node
  (id, form_id, process_id, process_node_code, process_node_name,
   model_and_view, model_and_view_mobile, node_timeout, node_bpm_status,
   form_edit_status, cc_status, selnext_user_status, msg_status,
   transfer_status, add_sign_status, reject_status, allow_counter_sign_add_user,
   default_opinion, [REDACTED], default_opinion_var, node_config_json)
SELECT REPLACE(UUID(), '-', ''), NULL, @pid, 'Task_0sialna', '部门负责人直接反馈',
  'bg/xispeak/components/BgXiSpeakBPMForm?showProcessHandle=1&showFeedbackInfo=1&showAddFeedback=1&showEditFeedback=1', NULL, NULL, NULL,
  '0', '0', '1', NULL,
  NULL, NULL, '0', NULL,
  '已完成反馈，请督办经办人核查', NULL, NULL, NULL
FROM DUAL
WHERE @pid IS NOT NULL
  AND NOT EXISTS (
    SELECT 1 FROM ext_act_process_node
    WHERE process_id = @pid AND process_node_code = 'Task_0sialna'
  );

-- 节点5: 部门经办人反馈完成情况 (Task_12vdqzv)
UPDATE ext_act_process_node
SET model_and_view = 'bg/xispeak/components/BgXiSpeakBPMForm?showProcessHandle=1&showFeedbackInfo=1&showAddFeedback=1&showEditFeedback=1',
    model_and_view_mobile = NULL,
    node_timeout = NULL,
    node_bpm_status = NULL,
    form_edit_status = '0',
    cc_status = '0',
    selnext_user_status = '1',
    msg_status = NULL,
    transfer_status = NULL,
    add_sign_status = NULL,
    reject_status = '0',
    allow_counter_sign_add_user = NULL,
    default_opinion = '已完成反馈，请领导审批',
    default_opinion2 = NULL,
    default_opinion_var = NULL,
    node_config_json = NULL
WHERE process_id = @pid AND process_node_code = 'Task_12vdqzv';

INSERT INTO ext_act_process_node
  (id, form_id, process_id, process_node_code, process_node_name,
   model_and_view, model_and_view_mobile, node_timeout, node_bpm_status,
   form_edit_status, cc_status, selnext_user_status, msg_status,
   transfer_status, add_sign_status, reject_status, allow_counter_sign_add_user,
   default_opinion, [REDACTED], default_opinion_var, node_config_json)
SELECT REPLACE(UUID(), '-', ''), NULL, @pid, 'Task_12vdqzv', '部门经办人反馈完成情况',
  'bg/xispeak/components/BgXiSpeakBPMForm?showProcessHandle=1&showFeedbackInfo=1&showAddFeedback=1&showEditFeedback=1', NULL, NULL, NULL,
  '0', '0', '1', NULL,
  NULL, NULL, '0', NULL,
  '已完成反馈，请领导审批', NULL, NULL, NULL
FROM DUAL
WHERE @pid IS NOT NULL
  AND NOT EXISTS (
    SELECT 1 FROM ext_act_process_node
    WHERE process_id = @pid AND process_node_code = 'Task_12vdqzv'
  );

-- 节点6: 督办经办人核查 (Task_13olnz1)
UPDATE ext_act_process_node
SET model_and_view = 'bg/xispeak/components/BgXiSpeakBPMForm?showProcessHandle=1&showFeedbackInfo=1',
    model_and_view_mobile = NULL,
    node_timeout = NULL,
    node_bpm_status = NULL,
    form_edit_status = '0',
    cc_status = '0',
    selnext_user_status = '1',
    msg_status = NULL,
    transfer_status = NULL,
    add_sign_status = NULL,
    reject_status = '1',
    allow_counter_sign_add_user = NULL,
    default_opinion = '已核查，请领导涉审批',
    default_opinion2 = NULL,
    default_opinion_var = NULL,
    node_config_json = NULL
WHERE process_id = @pid AND process_node_code = 'Task_13olnz1';

INSERT INTO ext_act_process_node
  (id, form_id, process_id, process_node_code, process_node_name,
   model_and_view, model_and_view_mobile, node_timeout, node_bpm_status,
   form_edit_status, cc_status, selnext_user_status, msg_status,
   transfer_status, add_sign_status, reject_status, allow_counter_sign_add_user,
   default_opinion, [REDACTED], default_opinion_var, node_config_json)
SELECT REPLACE(UUID(), '-', ''), NULL, @pid, 'Task_13olnz1', '督办经办人核查',
  'bg/xispeak/components/BgXiSpeakBPMForm?showProcessHandle=1&showFeedbackInfo=1', NULL, NULL, NULL,
  '0', '0', '1', NULL,
  NULL, NULL, '1', NULL,
  '已核查，请领导涉审批', NULL, NULL, NULL
FROM DUAL
WHERE @pid IS NOT NULL
  AND NOT EXISTS (
    SELECT 1 FROM ext_act_process_node
    WHERE process_id = @pid AND process_node_code = 'Task_13olnz1'
  );

-- 节点7: 督办部门负责人审批 (Task_1l650tz)
UPDATE ext_act_process_node
SET model_and_view = 'bg/xispeak/components/BgXiSpeakBPMForm?showProcessHandle=1&showFeedbackInfo=1',
    model_and_view_mobile = NULL,
    node_timeout = NULL,
    node_bpm_status = NULL,
    form_edit_status = '0',
    cc_status = '0',
    selnext_user_status = '1',
    msg_status = NULL,
    transfer_status = NULL,
    add_sign_status = NULL,
    reject_status = '1',
    allow_counter_sign_add_user = NULL,
    default_opinion = '已审批，请纪检经办人监察',
    default_opinion2 = NULL,
    default_opinion_var = NULL,
    node_config_json = NULL
WHERE process_id = @pid AND process_node_code = 'Task_1l650tz';

INSERT INTO ext_act_process_node
  (id, form_id, process_id, process_node_code, process_node_name,
   model_and_view, model_and_view_mobile, node_timeout, node_bpm_status,
   form_edit_status, cc_status, selnext_user_status, msg_status,
   transfer_status, add_sign_status, reject_status, allow_counter_sign_add_user,
   default_opinion, [REDACTED], default_opinion_var, node_config_json)
SELECT REPLACE(UUID(), '-', ''), NULL, @pid, 'Task_1l650tz', '督办部门负责人审批',
  'bg/xispeak/components/BgXiSpeakBPMForm?showProcessHandle=1&showFeedbackInfo=1', NULL, NULL, NULL,
  '0', '0', '1', NULL,
  NULL, NULL, '1', NULL,
  '已审批，请纪检经办人监察', NULL, NULL, NULL
FROM DUAL
WHERE @pid IS NOT NULL
  AND NOT EXISTS (
    SELECT 1 FROM ext_act_process_node
    WHERE process_id = @pid AND process_node_code = 'Task_1l650tz'
  );

-- 清理不在新版 XML 中的旧节点配置（目标库旧版 BPMN 遗留的孤儿节点，保证节点表与新 XML 完全一致）
DELETE FROM ext_act_process_node
WHERE process_id = @pid AND process_node_code NOT IN ('Task_005iiwi','Task_06di2wf','Task_0bahwr8','Task_0sialna','Task_12vdqzv','Task_13olnz1','Task_1l650tz');

-- ============================================
-- 校验
-- ============================================
SELECT
  CASE WHEN @pid IS NULL
    THEN '❌ 流程未创建：目标库中不存在 process_key = xispeak经办人反馈流程 的 ext_act_process 记录。请先在 Flowable 设计器中导入 BPMN XML。'
    ELSE CONCAT('✅ 流程已就绪: ', @pid, '，共 ',
      (SELECT COUNT(*) FROM ext_act_process_node WHERE process_id = @pid), ' 个节点，请前往流程设计器点击"发布"')
  END AS result;
