A.oc_id,
B.oc_name,
A.wf_def_id,
A.wf_ins_id,
A.wf_ins_title,
A.status,
A.begin_time,
A.finish_time,
A.cur_activity_ins_id,
A.cur_activity_code,
A.cur_activity_title,
A.cur_activity_begin_time,
A.cur_form_code,
A.cur_group_id,
A.cur_position_id,
A.cur_account_id,
A.cur_group_name,
A.cur_position_name,
A.cur_account_name
INSERT INTO wf_ins
oc_id,
wf_def_id,
wf_ins_id,
wf_ins_title,
status ,
begin_time ,
created_by,
created_at,
#{ocId ,jdbcType=BIGINT},
#{wfDefId,jdbcType=BIGINT},
#{wfInsId ,jdbcType=BIGINT},
#{wfInsTitle ,jdbcType=VARCHAR},
#{status ,jdbcType=BIGINT},
#{beginTime ,jdbcType=TIMESTAMP},
#{createdBy ,jdbcType=BIGINT},
#{createdAt ,jdbcType=TIMESTAMP},
UPDATE wf_ins
wf_ins_title = #{wfInsTitle ,jdbcType=VARCHAR},
status = #{status ,jdbcType=BIGINT},
finish_time = #{finishTime ,jdbcType=TIMESTAMP},
cur_group_id = #{curGroupId ,jdbcType=BIGINT} ,
cur_position_id = #{curPositionId ,jdbcType=BIGINT} ,
cur_account_id = #{curAccountId ,jdbcType=BIGINT} ,
cur_group_name = #{curGroupName ,jdbcType=VARCHAR} ,
cur_position_name = #{curPositionName ,jdbcType=VARCHAR} ,
cur_account_name = #{curAccountName ,jdbcType=VARCHAR} ,
cur_activity_ins_id = #{curActivityInsId ,jdbcType=BIGINT} ,
cur_activity_code = #{curActivityCode ,jdbcType=VARCHAR} ,
cur_activity_title = #{curActivityTitle ,jdbcType=VARCHAR} ,
cur_form_code = #{curFormCode ,jdbcType=VARCHAR} ,
cur_activity_begin_time = #{curActivityBeginTime ,jdbcType=TIMESTAMP},
updated_by = #{updatedBy ,jdbcType=BIGINT},
updated_at = #{updatedAt ,jdbcType=TIMESTAMP},
WHERE 1 = 1
AND oc_id = #{ocId ,jdbcType=BIGINT}
AND wf_ins_id = #{wfInsId ,jdbcType=BIGINT}
UPDATE wf_ins
deleted_flag = #{deletedFlag,jdbcType=BIGINT},
deleted_time = #{deletedTime,jdbcType=TIMESTAMP},
deleted_by = #{deletedBy,jdbcType=BIGINT},
WHERE 1 =1
AND oc_id = #{ocId ,jdbcType=BIGINT}
AND wf_ins_id = #{wfInsId ,jdbcType=BIGINT}