INSERT INTO management_exam_check(
exam_check_id,
plan_id,
check_status,
reason,
exam_apply_id,
next_commit_time,
work_type_id,
org_id,
gmt_create,
creator,
gmt_modified,
modifier,
is_delete
) VALUES(
#{examCheckId},
#{planId},
#{checkStatus},
#{reason},
#{examApplyId},
#{nextCommitTime},
#{workTypeId},
#{orgId},
#{gmtCreate},
#{creator},
#{gmtModified},
#{modifier},
#{isDelete}
)
UPDATE
management_exam_check
SET
gmt_modified = #{gmtModified},
modifier = #{modifier},
is_delete = 1
WHERE
exam_check_id IN
#{examCheckIds[${index}]}
DELETE FROM
management_exam_check
WHERE
exam_check_id IN
#{examCheckIds[${index}]}
UPDATE
management_exam_check
SET
plan_id = #{planId},
check_status = #{checkStatus},
reason = #{reason},
exam_apply_id = #{examApplyId},
next_commit_time = #{nextCommitTime},
work_type_id = #{workTypeId},
org_id = #{orgId},
gmt_modified = #{gmtModified},
modifier = #{modifier},
exam_check_id = exam_check_id
WHERE
exam_check_id = #{examCheckId}