code: public <S> S queryOne(Class<S> type, String sql, List<Object> params) {
          if (Anima.of().isUseSQLLimit()) {
              sql += " LIMIT 1";
          }
          List<S> list = queryList(type, sql, params);
          return AnimaUtils.isNotEmpty(list) ? list.get(0) : null;
      }
docs: Querying a model
  
  @param type   model type
  @param sql    sql statement
  @param params params
  @param <S>
  @return S