流程引擎2.0数据库删除作业票

先在前端找到要删除的数据流水号,通过流水号查找对应的PROC_INST_ID

  1. SELECT PROC_INST_ID,VALUE FROM process_form_data WHERE VALUE IN
  2. ('SXKJ-20230630-001','SXKJ-20230620-003');

通过PROC_INST_ID删除几个表的数据,删除前先备份表,如果提示关联了主键无法删除,就把备份的表删了删除数据

  1. DELETE FROM process_form_data WHERE proc_inst_id IN ('c699d53e-0f73-11ee-87c1-000c2978deed','56954352-1702-11ee-be95-000c2978deed')
  2. DELETE FROM act_hi_taskinst WHERE PROC_INST_ID_ IN ('c699d53e-0f73-11ee-87c1-000c2978deed','56954352-1702-11ee-be95-000c2978deed')
  3. DELETE FROM act_hi_procinst WHERE PROC_INST_ID_ IN ('c699d53e-0f73-11ee-87c1-000c2978deed','56954352-1702-11ee-be95-000c2978deed')
  4. DELETE FROM act_ru_actinst WHERE PROC_INST_ID_ IN ('c699d53e-0f73-11ee-87c1-000c2978deed','56954352-1702-11ee-be95-000c2978deed')
  5. DELETE FROM act_ru_identitylink WHERE PROC_INST_ID_ IN ('c699d53e-0f73-11ee-87c1-000c2978deed','56954352-1702-11ee-be95-000c2978deed')

转载请注明作者和出处,并添加本页链接。
原文链接: //svn.seekcy.com:33382/596