A.oc_id,
A.task_id,
A.task_title,
A.task_desc,
A.task_cat_id,
B.task_cat_title,
A.task_type_id,
A.expected_start_time,
A.expected_end_time,
A.actual_start_time,
A.actual_end_time,
A.task_priority,
A.parent_id,
A.root_id,
A.status,
A.task_origin,
A.launch_group_id,
A.launch_group_name,
A.launch_position_id,
A.launch_position_name,
A.launch_account_id,
A.launch_account_name,
A.launch_time,
A.handle_group_id,
A.handle_group_name,
A.handle_position_id,
A.handle_position_name,
A.handle_account_id,
A.handle_account_name,
A.handle_time,
W.wf_def_id,
W.wf_ins_id,
W.cur_activity_title,
W.cur_activity_code,
W.cur_form_code,
W.cur_activity_ins_id,
W.cur_activity_begin_time,
W.cur_group_id,
W.cur_group_name,
W.cur_position_id,
W.cur_position_name,
W.cur_account_id,
W.cur_account_name
INSERT INTO task
oc_id ,
task_id,
task_code,
task_title,
task_desc,
task_cat_id,
task_type_id,
expected_start_time,
expected_end_time,
actual_start_time,
actual_end_time,
task_priority,
parent_id,
root_id,
task_origin,
launch_group_id,
launch_position_id,
launch_account_id,
launch_group_name,
launch_position_name,
launch_account_name,
launch_time,
handle_group_id,
handle_position_id,
handle_account_id,
handle_group_name,
handle_position_name,
handle_account_name,
handle_time,
status,
created_by,
created_at,
#{ocId ,jdbcType=BIGINT},
#{taskId ,jdbcType=BIGINT},
#{taskCode ,jdbcType=VARCHAR},
#{taskTitle ,jdbcType=VARCHAR},
#{taskDesc ,jdbcType=VARCHAR},
#{taskCatId ,jdbcType=BIGINT},
#{taskTypeId ,jdbcType=BIGINT},
#{expectedStartTime ,jdbcType=DATE},
#{expectedEndTime ,jdbcType=DATE},
#{actualStartTime ,jdbcType=DATE},
#{actualEndTime ,jdbcType=DATE},
#{taskPriority ,jdbcType=BIGINT},
#{parentId ,jdbcType=BIGINT},
#{rootId ,jdbcType=BIGINT},
#{taskOrigin ,jdbcType=BIGINT},
#{launchGroupId ,jdbcType=BIGINT},
#{launchPositionId ,jdbcType=BIGINT},
#{launchAccountId ,jdbcType=BIGINT},
#{launchGroupName ,jdbcType=VARCHAR},
#{launchPositionName ,jdbcType=VARCHAR},
#{launchAccountName ,jdbcType=VARCHAR},
#{launchTime ,jdbcType=DATE},
#{handleGroupId ,jdbcType=BIGINT},
#{handlePositionId ,jdbcType=BIGINT},
#{handleAccountId ,jdbcType=BIGINT},
#{handleGroupName ,jdbcType=VARCHAR},
#{handlePositionName ,jdbcType=VARCHAR},
#{handleAccountName ,jdbcType=VARCHAR},
#{handleTime ,jdbcType=DATE},
#{status ,jdbcType=BIGINT},
#{createdBy ,jdbcType=BIGINT},
#{createdAt ,jdbcType=DATE},
UPDATE task
task_code = #{taskCode ,jdbcType=VARCHAR},
task_title = #{taskTitle, jdbcType=VARCHAR},
task_desc = #{taskDesc, jdbcType=VARCHAR},
task_cat_id = #{taskCatId ,jdbcType=BIGINT},
task_type_id = #{taskTypeId ,jdbcType=BIGINT},
expected_start_time = #{expectedStartTime ,jdbcType=DATE},
expected_end_time = #{expectedEndTime ,jdbcType=DATE},
actual_start_time = #{actualStartTime ,jdbcType=DATE},
actual_end_time = #{actualEndTime ,jdbcType=DATE},
task_priority = #{taskPriority ,jdbcType=BIGINT},
parent_id = #{parentId ,jdbcType=BIGINT},
root_id = #{rootId ,jdbcType=BIGINT},
task_origin = #{taskOrigin ,jdbcType=BIGINT},
handle_group_id = #{handleGroupId ,jdbcType=BIGINT},
handle_position_id = #{handlePositionId ,jdbcType=BIGINT},
handle_account_id = #{handleAccountId ,jdbcType=BIGINT},
handle_group_name = #{handleGroupName ,jdbcType=VARCHAR},
handle_position_name = #{handlePositionName ,jdbcType=VARCHAR},
handle_account_name = #{handleAccountName ,jdbcType=VARCHAR},
handle_time = #{handleTime ,jdbcType=DATE},
status = #{status ,jdbcType=BIGINT},
updated_by = #{updatedBy ,jdbcType=BIGINT},
updated_at = #{updatedAt ,jdbcType=DATE},
WHERE oc_id = #{ocId, jdbcType=BIGINT}
AND task_id = #{taskId, jdbcType=BIGINT}
UPDATE task
deleted_flag = #{deletedFlag,jdbcType=BIGINT},
deleted_time = #{deletedTime,jdbcType=DATE},
deleted_by = #{deletedBy,jdbcType=BIGINT},
WHERE oc_id = #{ocId ,jdbcType=BIGINT}
AND root_id = #{rootId ,jdbcType=BIGINT}
AND parent_id = #{parentId ,jdbcType=BIGINT}
AND task_cat_id = #{taskCatId ,jdbcType=BIGINT}
AND task_id = #{taskId ,jdbcType=BIGINT}