A.oc_id,
A.todo_id,
A.todo_desc,
A.todo_title,
A.handle_remark,
B.task_id,
B.task_title,
B.task_desc,
B.task_cat_id,
C.task_cat_title,
B.task_type_id,
B.expected_start_time,
B.expected_end_time,
B.actual_start_time,
B.actual_end_time,
B.task_priority,
B.parent_id,
B.root_id,
B.task_origin,
B.launch_group_id,
B.launch_group_name,
B.launch_position_id,
B.launch_position_name,
B.launch_account_id,
B.launch_account_name,
B.launch_time,
B.handle_group_id,
B.handle_group_name,
B.handle_position_id,
B.handle_position_name,
B.handle_account_id,
B.handle_account_name,
B.handle_time,
W.wf_def_id,
W.wf_ins_id,
W.status,
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 todo
oc_id,
todo_id,
todo_title,
todo_desc,
handle_remark,
created_by,
created_at,
#{ocId ,jdbcType=BIGINT},
#{todoId ,jdbcType=BIGINT},
#{todoTitle ,jdbcType=VARCHAR},
#{todoDesc ,jdbcType=VARCHAR},
#{handleRemark ,jdbcType=VARCHAR},
#{createdBy ,jdbcType=BIGINT},
#{createdAt ,jdbcType=TIMESTAMP},
UPDATE todo
todo_title =#{todoTitle ,jdbcType=VARCHAR},
todo_desc = #{todoDesc ,jdbcType=VARCHAR},
handle_remark = #{handleRemark ,jdbcType=VARCHAR},
updated_by = #{updatedBy ,jdbcType=BIGINT},
updated_at = #{updatedAt ,jdbcType=TIMESTAMP},
WHERE oc_id = #{ocId, jdbcType=BIGINT} AND todo_id = #{todoId, jdbcType=BIGINT}
UPDATE todo
deleted_by = #{deletedBy ,jdbcType=BIGINT},
deleted_at = #{deletedAt ,jdbcType=DATE},
deleted_flag = #{deletedFlag ,jdbcType=BIGINT},
WHERE oc_id = #{ocId ,jdbcType=BIGINT} AND deleted_flag = 0
AND todo_id = #{todoId ,jdbcType=BIGINT}