A.wf_def_id,
A.activity_def_id,
A.action_id,
A.action_title,
A.action_desc,
A.action_code,
A.form_code,
A.target_activity_def_id,
B.activity_def_title AS target_activity_def_title
INSERT INTO wf_activity_action_def
wf_def_id,
activity_def_id,
action_id,
action_title,
action_desc,
action_code,
form_code,
target_activity_def_id,
created_by,
created_at,
#{wfDefId ,jdbcType=BIGINT},
#{activityDefId ,jdbcType=BIGINT},
#{actionId ,jdbcType=BIGINT},
#{actionTitle ,jdbcType=VARCHAR},
#{actionDesc ,jdbcType=VARCHAR},
#{actionCode ,jdbcType=VARCHAR},
#{formCode ,jdbcType=VARCHAR},
#{targetActivityDefId ,jdbcType=BIGINT},
#{createdBy ,jdbcType=BIGINT},
#{createdAt ,jdbcType=TIMESTAMP},
UPDATE wf_activity_action_def
action_title = #{actionTitle ,jdbcType=VARCHAR},
action_desc = #{actionDesc ,jdbcType=VARCHAR},
action_code = #{actionCode ,jdbcType=VARCHAR},
form_code = #{formCode ,jdbcType=VARCHAR},
target_activity_def_id = #{targetActivityDefId ,jdbcType=BIGINT},
WHERE wf_def_id = #{wfDefId ,jdbcType=BIGINT}
AND activity_def_id = #{activityDefId ,jdbcType=BIGINT}
AND action_id = #{actionId ,jdbcType=BIGINT}
UPDATE wf_activity_action_def
deleted_flag = #{deletedFlag,jdbcType=BIGINT},
deleted_time = #{deletedTime,jdbcType=VARCHAR},
deleted_by = #{deletedBy,jdbcType=BIGINT},
WHERE wf_def_id = #{wfDefId ,jdbcType=BIGINT}
AND activity_def_id = #{activityDefId ,jdbcType=BIGINT}
AND action_id = #{actionId ,jdbcType=BIGINT}