docs: @SuppressWarnings("rawtypes")
  	protected StatementParameter toStatementParameter(String sql, Object... params) {
  		StatementParameter param = new StatementParameter();
  		for (Object p : params) {
  			if (p instanceof Integer) {
  				param.setInt((Integer) p);
  			}
  			else if (p instanceof Long) {
  				param.setLong((Long) p);
  			}
  			else if (p instanceof Boolean) {
  				param.setBool((Boolean) p);
  			}
  			else if (p instanceof Float) {
  				param.setFloat((Float) p);
  			}
  			else if (p instanceof Double) {
  				param.setDouble((Double) p);
  			}
  			else if (p instanceof String) {
  				param.setString((String) p);
  			}
  			else if (p instanceof Date) {
  				param.setDate((Date) p);
  			}
  
  			else if (p instanceof List) {
  				param.setList((List) p);
  			}
  			// 自定义数据类型start
  			// else if (p instanceof OnlyDate) {
  			// param.setDate(((OnlyDate) p).toDate());
  			// }
  			// else if (p instanceof Month) {
  			// param.setString(((Month) p).toString());
  			// }
  			else {
  				param.setObject(p);
  				// throw new IllegalArgumentException("未知数据类型[" + p.getClass().getName() + "].");
  			}
  		}
  		return param;
  	}