INSERT INTO task_receiver_user_patrol( receiver_user_patrol_id, receiver_user_id, patrol_time, patrol_content, patrol_result, patrol_photo, patrol_video, remake, creator, gmt_create, modifier, gmt_modified, is_delete ) VALUES( #{receiverUserPatrolId}, #{receiverUserId}, #{patrolTime}, #{patrolContent}, #{patrolResult}, #{patrolPhoto}, #{patrolVideo}, #{remake}, #{creator}, #{gmtCreate}, #{modifier}, #{gmtModified}, #{isDelete} ) UPDATE task_receiver_user_patrol SET gmt_modified = #{gmtModified}, modifier = #{modifier}, is_delete = 1 WHERE receiver_user_patrol_id IN #{receiverUserPatrolIds[${index}]} DELETE FROM task_receiver_user_patrol WHERE receiver_user_patrol_id IN #{receiverUserPatrolIds[${index}]} UPDATE task_receiver_user_patrol SET receiver_user_id = #{receiverUserId}, patrol_time = #{patrolTime}, patrol_content = #{patrolContent}, patrol_result = #{patrolResult}, patrol_photo = #{patrolPhoto}, patrol_video = #{patrolVideo}, remake = #{remake}, gmt_modified = #{gmtModified}, modifier = #{modifier}, receiver_user_patrol_id = receiver_user_patrol_id WHERE receiver_user_patrol_id = #{receiverUserPatrolId}