private Object formatKeys(List<Number> keys, JdbcBatchUpdateDefinition batchUpdateDefinition) {
		if (batchUpdateDefinition.isReturnList()) {
			return keys;
		}

		int length = keys.size();
		// 将返回结果从List<? extends Number>转换为数组
		Class<?> componentType = batchUpdateDefinition.getReturnComponentType();
		if (!ClassHelper.isTypePrimitive(componentType)) {
			Object array = Array.newInstance(componentType, length);
			System.arraycopy(keys.toArray(), 0, array, 0, length);
			return array;
		}

		return formatPrimitiveKeys(keys, componentType, length);

	}