private void checkReturnType(Method method) throws DaoGenerateException {
		Class<?> returnType = method.getReturnType();

		if (ClassHelper.isTypePrimitive(returnType)) {
			returnType = ClassHelper.primitiveToWrapper(returnType);
		}
		if (Integer.class.equals(returnType)) {
			return;
		}

		throw new DaoGenerateException("方法[" + method + "]配置错误：配置了@MongoCount注解的方法只能返回int或者Integer");

	}