insert into goaf_task
task_id,
oc_id,
goaf_id,
job_id,
check_def_id,
checklist_id,
task_title,
task_desc,
expected_start_date,
expected_end_date,
handle_account_id,
handle_account_name,
handle_position_id,
handle_position_name,
handle_group_id,
handle_group_name,
status,
#{taskId, jdbcType=BIGINT},
#{ocId, jdbcType=BIGINT},
#{goafId, jdbcType=BIGINT},
#{jobId, jdbcType=BIGINT},
#{checkDefId, jdbcType=BIGINT},
#{checklistId, jdbcType=BIGINT},
#{taskTitle, jdbcType=VARCHAR},
#{taskDesc, jdbcType=VARCHAR},
#{expectedStartDate, jdbcType=DATE},
#{expectedEndDate, jdbcType=DATE},
#{handleAccountId, jdbcType=BIGINT},
#{handleAccountName, jdbcType=VARCHAR},
#{handlePositionId, jdbcType=BIGINT},
#{handlePositionName, jdbcType=VARCHAR},
#{handleGroupId, jdbcType=BIGINT},
#{handleGroupName, jdbcType=VARCHAR},
#{status, jdbcType=BIGINT},
UPDATE goaf_task
status = #{status ,jdbcType=BIGINT},
WHERE job_id = #{jobId ,jdbcType=BIGINT}
UPDATE goaf_task
status = #{status ,jdbcType=BIGINT}
WHERE oc_id = #{ocId, jdbcType=BIGINT} AND task_id = #{taskId ,jdbcType=BIGINT}
DELETE FROM goaf_task
WHERE task_id = #{taskId, jdbcType=BIGINT}
DELETE FROM goaf_task
WHERE oc_id = #{ocId, jdbcType=BIGINT} AND status = #{status, jdbcType=BIGINT}
AND check_def_id = #{checkDefId, jdbcType=BIGINT}