code: @SuppressWarnings("unchecked")
  	private Map<String, Object> buildParameters(Object parameters) {
  		Map<String, Object> parameterMap = new HashMap<String, Object>();
  
  		if (parameters != null) {
  			if (parameters.getClass().isArray()) {
  				Object[] paramValues = (Object[]) parameters;
  				for (int i = 0; i < paramValues.length; i++) {
  					if (paramValues[i] == null) {
  						paramValues[i] = "";
  					}
  					parameterMap.put(Integer.toString(i), paramValues[i]);
  				}
  			} else if (parameters instanceof Map) {
  				parameterMap = (Map<String, Object>) parameters;
  			} else {
  				Class<? extends Object> paramClass = parameters.getClass();
  				Field[] fields = paramClass.getDeclaredFields();
  				for (Field field : fields) {
  					field.setAccessible(true);
  
  					String fieldName = field.getName();
  					Object fieldValue = null;
  					try {
  						fieldValue = field.get(parameters);
  					} catch (Exception e) {
  						fieldValue = null;
  					}
  					if (fieldName != null && fieldValue != null) {
  						parameterMap.put(fieldName, fieldValue);
  					}
  				}
  			}
  		}
  
  		return parameterMap;
  	}
docs: /*
  构建SQL语句参数表
  
  @param parameters 参数对象
  
  @return 参数表<参数名称, 参数值>