INSERT INTO case_warning( warning_id, report_id, report_code, task_name, task_id, task_user_id, task_user_name, task_dept_id, warning_type, warning_level, warning_status, creator, gmt_create, modifier, gmt_modified, is_delete ) VALUES( #{warningId}, #{reportId}, #{reportCode}, #{taskName}, #{taskId}, #{taskUserId}, #{taskUserName}, #{taskDeptId}, #{warningType}, #{warningLevel}, #{warningStatus}, #{creator}, #{gmtCreate}, #{modifier}, #{gmtModified}, #{isDelete} ) UPDATE case_warning SET gmt_modified = #{gmtModified}, modifier = #{modifier}, is_delete = 1 WHERE warning_id IN #{warningIds[${index}]} DELETE FROM case_warning WHERE warning_id IN #{warningIds[${index}]} UPDATE case_warning SET report_id = #{reportId}, gmt_modified = #{gmtModified}, modifier = #{modifier} WHERE warning_id = #{warningId} UPDATE case_warning SET warning_status = #{warningStatus}, warning_level = #{warningLevel}, gmt_modified = #{gmtModified}, modifier = #{modifier} WHERE task_id = #{taskId} report_id = #{reportId}