INSERT INTO case_timeout(
timeout_id,
report_id,
report_code,
task_id,
task_name,
task_user_id,
task_user_name,
status,
creator,
gmt_create,
modifier,
gmt_modified,
is_delete
) VALUES(
#{timeoutId},
#{reportId},
#{reportCode},
#{taskId},
#{taskName},
#{taskUserId},
#{taskUserName},
#{status},
#{creator},
#{gmtCreate},
#{modifier},
#{gmtModified},
#{isDelete}
)
UPDATE
case_timeout
SET
gmt_modified = #{gmtModified},
modifier = #{modifier},
is_delete = 1
WHERE
timeout_id IN
#{timeoutIds[${index}]}
DELETE FROM
case_timeout
WHERE
timeout_id IN
#{timeoutIds[${index}]}
UPDATE
case_timeout
SET
report_id = #{reportId},
task_id = #{taskId},
task_user_id = #{taskUserId},
status = #{status},
gmt_modified = #{gmtModified},
modifier = #{modifier},
timeout_id = timeout_id
WHERE
timeout_id = #{timeoutId}
UPDATE
case_timeout
SET
status = #{status},
gmt_modified = #{gmtModified}
WHERE
report_id = #{reportId}
timeout_id = #{timeoutId}