Commit 46800b2a by 泽锋 李

fix

parent 926eab15
......@@ -36,7 +36,9 @@ namespace AutoTurnOver.DB
var obj = item.GetValue(par);
if (obj != null && !string.IsNullOrWhiteSpace(obj.ToString()))
{
parList.Add($"[{descriptionData.Description}]={obj.ToString()}");
var val = obj.ToString();
val = RenderVal(descriptionData.Description, val);
parList.Add($"[{descriptionData.Description}]={val}");
}
}
......@@ -54,6 +56,20 @@ namespace AutoTurnOver.DB
_connection.Insert(data);
}
/// <summary>
/// 渲染参数
/// </summary>
/// <param name="description"></param>
/// <param name="val"></param>
public static string RenderVal(string description,string val) {
if (description == "仓库国家")
{
return _connection.QueryFirstOrDefault<string>(" select area_name from dc_base_warehouse where area_id=@area_id limit 1 ",new { area_id = val});
}
return val;
}
}
}
......@@ -381,7 +381,6 @@ namespace AutoTurnOver.Models
public bool isSum { get; set; }
public bool is_warehouse_sum { get; set; }
[Description("搜索类型")]
public int? searchType { get; set; }
[Description("搜索关键词")]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment