INSERT INTO rule_engine_device (device_id, device_uuid, identifier, rule_engine_id, product_id, created_by, create_time, updated_by, update_time, tenant_id) VALUES (#{deviceId}, #{deviceUuid}, #{identifier}, #{ruleEngineId}, #{productId}, #{createdBy}, NOW(), #{updatedBy}, NOW(), #{tenantId}) DELETE FROM rule_engine_device WHERE rule_engine_id = #{ruleEngineId}