Commit a32201cf by 泽锋 李

fix

parent 5f83491b
...@@ -174,6 +174,10 @@ where tdb.usable_stock>0 "; ...@@ -174,6 +174,10 @@ where tdb.usable_stock>0 ";
/// <returns></returns> /// <returns></returns>
public static List<string> GetShowField(string warehouse_code) public static List<string> GetShowField(string warehouse_code)
{ {
if (string.IsNullOrWhiteSpace(warehouse_code))
{
return new List<string>();
}
var wData = _connection.QuerySingleOrDefault<dc_base_warehouse>(" select * from dc_base_warehouse where warehouse_code=@warehouse_code ",new { warehouse_code = warehouse_code }); var wData = _connection.QuerySingleOrDefault<dc_base_warehouse>(" select * from dc_base_warehouse where warehouse_code=@warehouse_code ",new { warehouse_code = warehouse_code });
if (wData.hq_type == "国内仓") if (wData.hq_type == "国内仓")
{ {
......
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