wfInst.id_ "id",wfInst.subject_ "subject",wfInst.proc_def_id_ "procDefId",wfInst.bpmn_def_id_ "bpmnDefId",
wfInst.proc_def_key_ "procDefKey",wfInst.proc_def_name_ "procDefName",wfInst.biz_key_ "bizKey",wfInst.sys_code_ "sysCode",wfInst.form_key_ "formKey",
wfInst.status_ "status",wfInst.end_time_ "endTime",wfInst.duration_ "duration",wfInst.result_type_ "resultType",
wfInst.bpmn_inst_id_ "bpmnInstId",wfInst.create_by_ "createBy",wfInst.creator_ "creator",wfInst.create_time_ "createTime",
wfInst.create_org_id_ "createOrgId",wfInst.update_by_ "updateBy",wfInst.update_time_ "updateTime",wfInst.is_formmal_ "isFormmal",
wfInst.parent_inst_id_ "parentInstId",wfInst.IS_FORBIDDEN_ "isForbidden",wfInst.DATA_MODE_ "dataMode",wfInst.SUPPORT_MOBILE_ "supportMobile",
wfInst.super_node_id_ "superNodeId",wfInst.IS_DELE_ "isDele",wfInst.URGENT_STATE_ "urgentState"
INSERT INTO bpm_pro_inst
(id_,subject_,proc_def_id_,bpmn_def_id_,
proc_def_key_,proc_def_name_,biz_key_,sys_code_,form_key_,
status_,end_time_,duration_,type_id_,
result_type_,bpmn_inst_id_,create_by_,creator_,create_time_,
create_org_id_,update_by_,update_time_,
is_formmal_,parent_inst_id_,IS_FORBIDDEN_,DATA_MODE_,SUPPORT_MOBILE_,super_node_id_,URGENT_STATE_,pc_inst_url_,mobile_inst_url_)
VALUES
(#{id,jdbcType=VARCHAR}, #{subject,jdbcType=VARCHAR}, #{procDefId,jdbcType=VARCHAR}, #{bpmnDefId,jdbcType=VARCHAR},
#{procDefKey,jdbcType=VARCHAR}, #{procDefName,jdbcType=VARCHAR}, #{bizKey,jdbcType=VARCHAR}, #{sysCode,jdbcType=VARCHAR}, #{formKey,jdbcType=VARCHAR},
#{status,jdbcType=VARCHAR}, #{endTime,jdbcType=TIMESTAMP}, #{duration,jdbcType=NUMERIC}, #{typeId,jdbcType=VARCHAR},
#{resultType,jdbcType=VARCHAR}, #{bpmnInstId,jdbcType=VARCHAR}, #{createBy,jdbcType=VARCHAR},#{creator,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
#{createOrgId,jdbcType=VARCHAR}, #{updateBy,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP},
#{isFormmal,jdbcType=VARCHAR}, #{parentInstId,jdbcType=VARCHAR}, #{isForbidden,jdbcType=NUMERIC},
#{dataMode,jdbcType=VARCHAR} ,#{supportMobile,jdbcType=NUMERIC}, #{superNodeId,jdbcType=VARCHAR}, #{urgentState,jdbcType=VARCHAR},
#{pcInstUrl,jdbcType=VARCHAR},#{mobileInstUrl,jdbcType=VARCHAR})
INSERT INTO bpm_pro_inst_hi
(id_,subject_,proc_def_id_,bpmn_def_id_,
proc_def_key_,proc_def_name_,biz_key_,sys_code_,form_key_,
status_,end_time_,duration_,type_id_,
result_type_,bpmn_inst_id_,create_by_,creator_,create_time_,
create_org_id_,update_by_,update_time_,
is_formmal_,parent_inst_id_,IS_FORBIDDEN_,DATA_MODE_,SUPPORT_MOBILE_,super_node_id_,pc_inst_url_,mobile_inst_url_)
VALUES
(#{id,jdbcType=VARCHAR}, #{subject,jdbcType=VARCHAR}, #{procDefId,jdbcType=VARCHAR}, #{bpmnDefId,jdbcType=VARCHAR},
#{procDefKey,jdbcType=VARCHAR}, #{procDefName,jdbcType=VARCHAR}, #{bizKey,jdbcType=VARCHAR}, #{sysCode,jdbcType=VARCHAR}, #{formKey,jdbcType=VARCHAR},
#{status,jdbcType=VARCHAR}, #{endTime,jdbcType=TIMESTAMP}, #{duration,jdbcType=NUMERIC}, #{typeId,jdbcType=VARCHAR},
#{resultType,jdbcType=VARCHAR}, #{bpmnInstId,jdbcType=VARCHAR}, #{createBy,jdbcType=VARCHAR},#{creator,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
#{createOrgId,jdbcType=VARCHAR}, #{updateBy,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP},
#{isFormmal,jdbcType=VARCHAR}, #{parentInstId,jdbcType=VARCHAR}, #{isForbidden,jdbcType=NUMERIC},
#{dataMode,jdbcType=VARCHAR} ,#{supportMobile,jdbcType=NUMERIC}, #{superNodeId,jdbcType=VARCHAR},
#{pcInstUrl,jdbcType=VARCHAR},#{mobileInstUrl,jdbcType=VARCHAR})
DELETE FROM bpm_pro_inst
WHERE
id_=#{id}
UPDATE bpm_pro_inst_hi SET
subject_=#{subject,jdbcType=VARCHAR},
proc_def_id_=#{procDefId,jdbcType=VARCHAR},
bpmn_def_id_=#{bpmnDefId,jdbcType=VARCHAR},
proc_def_key_=#{procDefKey,jdbcType=VARCHAR},
proc_def_name_=#{procDefName,jdbcType=VARCHAR},
biz_key_=#{bizKey,jdbcType=VARCHAR},
sys_code_=#{sysCode,jdbcType=VARCHAR},
form_key_=#{formKey,jdbcType=VARCHAR},
status_=#{status,jdbcType=VARCHAR},
end_time_=#{endTime,jdbcType=TIMESTAMP},
duration_=#{duration,jdbcType=NUMERIC},
type_id_=#{typeId,jdbcType=VARCHAR},
result_type_=#{resultType,jdbcType=VARCHAR},
bpmn_inst_id_=#{bpmnInstId,jdbcType=VARCHAR},
create_by_=#{createBy,jdbcType=VARCHAR},
creator_=#{creator,jdbcType=VARCHAR},
create_time_=#{createTime,jdbcType=TIMESTAMP},
create_org_id_=#{createOrgId,jdbcType=VARCHAR},
update_by_=#{updateBy,jdbcType=VARCHAR},
update_time_=#{updateTime,jdbcType=TIMESTAMP},
is_formmal_=#{isFormmal,jdbcType=VARCHAR},
parent_inst_id_=#{parentInstId,jdbcType=VARCHAR},
IS_FORBIDDEN_=#{isForbidden,jdbcType=NUMERIC},
DATA_MODE_=#{dataMode,jdbcType=VARCHAR},
SUPPORT_MOBILE_=#{supportMobile,jdbcType=NUMERIC},
super_node_id_=#{superNodeId,jdbcType=VARCHAR},
pc_inst_url_=#{pcInstUrl,jdbcType=VARCHAR},
mobile_inst_url_=#{mobileInstUrl,jdbcType=VARCHAR}
WHERE
id_=#{id}
update bpm_pro_inst set status_=#{status} where id_=#{processInstanceId}
update bpm_pro_inst set status_=#{status} where bpmn_inst_id_=#{bpmnInstId}
update bpm_pro_inst set IS_FORBIDDEN_=#{isForbidden,jdbcType=NUMERIC} where proc_def_key_=#{defKey}
update bpm_pro_inst set IS_FORBIDDEN_=#{isForbidden,jdbcType=NUMERIC} where id_=#{id}
update bpm_pro_inst set IS_DELE_=#{isDele},UPDATE_TIME_=#{nowDate} where ID_=#{instId}
update bpm_check_opinion set IS_DELE_=#{isDele} where PROC_INST_ID_=#{instId}
update bpm_task_notice set IS_DELE_=#{isDele} where PROC_INST_ID_=#{instId}
update bpm_task set IS_DELE_=#{isDele} where PROC_INST_ID_=#{instId}
DELETE FROM bpm_task_notice WHERE PROC_INST_ID_=#{instId}
DELETE FROM act_ru_variable where PROC_INST_ID_ = #{bpmnInstId} and NAME_ in
#{name}