public static Map<String, Object> beanToMap(Object bean, String... properties) {
		int mapSize = 16;
		Editor<String> keyEditor = null;
		if (ArrayUtil.isNotEmpty(properties)) {
			mapSize = properties.length;
			final Set<String> propertiesSet = CollUtil.set(false, properties);
			keyEditor = property -> propertiesSet.contains(property) ? property : null;
		}

		// 指明了要复制的属性 所以不忽略null值
		return beanToMap(bean, new LinkedHashMap<>(mapSize, 1), false, keyEditor);
	}
@Test
	public void toMapTest() {
		// 测试转map的时候返回key
		final PrivilegeIClassification a = new PrivilegeIClassification();
		a.setId("1");
		a.setName("2");
		a.setCode("3");
		a.setCreateTime(new Date());
		a.setSortOrder(9L);

		final Map<String, Object> f = BeanUtil.beanToMap(
			a,
			new LinkedHashMap<>(),
			false,
			key -> Arrays.asList("id", "name", "code", "sortOrder").contains(key) ? key : null);
		assertFalse(f.containsKey(null));
	}