ResponseField
// 移除多余字段,便于开发
if (!string.IsNullOrEmpty(item.Value.ShowColumnRemoves))
{
var removes = item.Value.ShowColumnRemoves.Split(',', StringSplitOptions.RemoveEmptyEntries).ToList();
StringBuilder sb = new StringBuilder(item.Value.Show);
var lstShow = item.Value.Show.Split(',', StringSplitOptions.RemoveEmptyEntries).ToList();
item.Value.Show = string.Join(',', lstShow.Where(temp => !removes.Contains(temp)).ToArray());
}
item.Value.ShowColumnRemoves = null;
// 移除多余字段,便于开发
if (!string.IsNullOrEmpty(item.Value.BridgeColumnRemoves))
{
var removes = item.Value.BridgeColumnRemoves.Split(',', StringSplitOptions.RemoveEmptyEntries).ToList();
StringBuilder sb = new StringBuilder(item.Value.Show);
var lstShow = item.Value.BridgeColumn.Split(',', StringSplitOptions.RemoveEmptyEntries).ToList();
item.Value.BridgeColumn = string.Join(',', lstShow.Where(temp => !removes.Contains(temp)).ToArray());
}
item.Value.BridgeColumnRemoves = null;
// 移除多余字段,便于开发
if (!string.IsNullOrEmpty(item.Value.OriginalColumnRemoves))
{
var removes = item.Value.OriginalColumnRemoves.Split(',', StringSplitOptions.RemoveEmptyEntries).ToList();
StringBuilder sb = new StringBuilder(item.Value.Show);
var lstShow = item.Value.Original.Split(',', StringSplitOptions.RemoveEmptyEntries).ToList();
item.Value.Original = string.Join(',', lstShow.Where(temp => !removes.Contains(temp)).ToArray());
}
item.Value.OriginalColumnRemoves = null;
// 移除多余字段,便于开发
if (!string.IsNullOrEmpty(item.Value.AllColumnRemoves))
{
var removes = item.Value.AllColumnRemoves.Split(',', StringSplitOptions.RemoveEmptyEntries).ToList();
StringBuilder sb = new StringBuilder(item.Value.Show);
var lstShow = item.Value.All.Split(',', StringSplitOptions.RemoveEmptyEntries).ToList();
item.Value.All = string.Join(',', lstShow.Where(temp => !removes.Contains(temp)).ToArray());
}
item.Value.AllColumnRemoves = null;
// #endregion 配置 合成 end
文档更新时间: 2022-05-29 07:00 作者:admin