UPDATE process_approval
SET dataState = 99
WHERE
processDef_id = #{id}
update process_approval
def_json = #{defJson},
version = #{version},
processDef_id = #{processDefId}
INSERT INTO process_approval
form_id,
processDef_id,
processDef_Name,
def_json,
dataState,
templateProcessDefId,
version,
tenant_id
VALUES
#{formId},
#{processDefId},
#{processDefName},
#{defJson},
0,
#{templateProcessDefId},
#{version},
#{tenantID}