code: public String findByPage(final Map<String, Object> parameter) {
      return new SQL() {
        {
          Class<?> clazz = (Class<?>) parameter.get(CLASS_KEY);
          SELECT("*");
          FROM(EntityUtil.getTableName(clazz));
          if (parameter.containsKey(WHERE_KEY)) {
            WHERE((String) parameter.get(WHERE_KEY));
          }
          if (parameter.containsKey(ORDER_KEY)) {
            ORDER_BY((String) parameter.get(ORDER_KEY));
          }
          if (parameter.containsKey(GROUP_KEY)) {
            GROUP_BY((String) parameter.get(GROUP_KEY));
          }
        }
      }.toString();
    }
docs: 查询所有记录(分页)
  
  @param parameter
  @return