code: function (model, oriOpts = {}) {
      //解析扩展写法参数
      if (lib.isObject(oriOpts) && !oriOpts.paresed) {
          let parseCase = { alias: 1, field: 1, where: 1, limit: 1, order: 1, group: 1, join: 1, distinct: 1, having: 1 };
          for (let n in oriOpts) {
              if (parseCase[n]) {
                  model[n](oriOpts[n]);
              }
          }
      }
      let options = lib.extend(model.options, oriOpts || {}, true);
      //清空model.options,避免影响下次查询
      model.options = {};
      //获取表名
      options.table = model.tableName;
      //模型名称
      options.name = model.modelName;
      //模型查询别名
      options.alias = options.alias || model.modelName;
      //模型主键
      options.pk = model.pk || model.getPk();
      //标志
      options.paresed = true;
      return options;
  }
docs: 条件解析
  
  @param {any} model
  @param {any} oriOpts
  @param {any} [extraOptions={}]
  @returns