A.oc_id,
B.task_id,
B.task_code,
B.task_title,
B.task_desc,
B.task_type_id,
B.task_cat_id,
C.task_cat_title,
B.task_priority,
B.launch_group_id,
D.group_name AS launch_group_name,
B.launch_position_id,
E.position_name AS launch_position_name,
B.launch_account_id,
F.account_name AS launch_account_name,
B.launch_time,
B.expected_start_time,
B.expected_end_time,
B.actual_start_time,
B.actual_end_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.status,
A.risk_point_id,
G.risk_point_title,
A.check_def_id,
A.check_type_id,
A.check_cat_id,
N.check_cat_title,
A.check_status,
A.checklist_id,
A.check_count,
H.checklist_title,
H.checklist_type_id,
H.checklist_desc,
H.checklist_cat_id,
M.checklist_cat_title,
H.version AS checklist_version
INSERT INTO check_task
oc_id,
task_id,
risk_point_id,
check_def_id,
check_cat_id,
check_type_id,
check_title,
check_desc,
checklist_id,
check_count,
check_status,
created_by,
created_at,
#{ocId ,jdbcType=BIGINT},
#{taskId ,jdbcType=BIGINT},
#{riskPointId ,jdbcType=BIGINT},
#{checkDefId ,jdbcType=BIGINT},
#{checkCatId ,jdbcType=BIGINT},
#{checkTypeId ,jdbcType=BIGINT},
#{checkTitle ,jdbcType=VARCHAR},
#{checkDesc ,jdbcType=VARCHAR},
#{checklistId ,jdbcType=BIGINT},
#{checkCount ,jdbcType=BIGINT},
#{checkStatus ,jdbcType=BIGINT},
#{createdBy ,jdbcType=BIGINT},
#{createdAt ,jdbcType=TIMESTAMP},
UPDATE check_task
check_title = #{checkTitle ,jdbcType=VARCHAR},
check_desc = #{checkDesc ,jdbcType=VARCHAR},
checklist_id = #{checklistId ,jdbcType=BIGINT},
check_cat_id = #{checkCatId ,jdbcType=BIGINT},
check_type_id = #{checkTypeId ,jdbcType=BIGINT},
check_count = #{checkCount ,jdbcType=INTEGER},
check_status = #{checkStatus ,jdbcType=BIGINT},
updated_by = #{updatedBy ,jdbcType=BIGINT},
updated_at = #{updatedAt ,jdbcType=TIMESTAMP},
WHERE 1 = 1
AND oc_id = #{ocId ,jdbcType=BIGINT}
AND task_id = #{taskId ,jdbcType=BIGINT}
DELETE FROM check_task
WHERE 1 = 1
AND oc_id = #{ocId,jdbcType=BIGINT}
AND task_id = #{taskId ,jdbcType=BIGINT}
AND check_def_id = #{checkDefId ,jdbcType=BIGINT}