paramsFieldRemoves

    "manager-area-all": {
      "auth": true,
      "show": "area_code,area_name,null right_area_code",
      "original": "",
      "extend": "basis",
      //移除多余参数不作为过滤条件
      "paramsFieldRemoves": "areaCode",
      "order": "area_code",
      "fieldChild": {}
    },

\RG3.BO.DB\Services\DbSqlService$Where.cs paramsFieldRemoves

 var paramsFieldRemoves = sqlConfig.ResponseFieldTemp?.ParamsFieldRemoves?.Split(',');
            IEnumerable<SqlColumn> sqlColumnList = sqlConfig.ColumnsLst.Where<SqlColumn>(temp =>
            {
                if (temp.IsSearch == true && temp.Filter == null && temp.ChildTable?.ResultDefault == null)
                {
                    string error = $"文件【{sqlConfig.ModuleKey}】中字段【{temp.Alias}】设置了【isSearch】,但未设置【filter】。";
                    Console.WriteLine(error);
                    throw new BizException(ErrorCodeConst.MAP_15007.ErrorCode, error);
                    // Console.Out.WriteLine($"文件【{sqlConfig.ModuleKey}】中字段【{temp.Alias}】设置了【isSearch】,但未设置【filter】。");
                    //  throw new BizException(ErrorCodeConst.MAP_15007.ErrorCode, $"文件【{sqlConfig.ModuleKey}】中字段【{temp.Alias}】设置了【isSearch】,但未设置【filter】。");
                }
                //temp.Filter = new SqlFilter { Method = "eq" };
                return temp.IsSearch == true && temp.Filter != null && temp.Filter.Method != null && !paramsFieldRemoves.Contains(temp.Field);
            });
文档更新时间: 2023-01-25 11:28   作者:admin