Commit 796d16a5 by 泽锋 李

fix

parent a32201cf
......@@ -137,17 +137,17 @@ where tdb.usable_stock>0 ";
}
if (!string.IsNullOrEmpty(search.warehouse_code))
{
sql += " and dat.warehouse_code='" + search.warehouse_code + "'";
sql += " and tdb.warehouse_code='" + search.warehouse_code + "'";
}
else
{
if (!string.IsNullOrWhiteSpace(search.warehousetype))
{
sql += " and dat.hq_type=" + $"'{search.warehousetype}'";
sql += " and tw.hq_type=" + $"'{search.warehousetype}'";
}
if (search.warehousearea > 0)
{
sql += " and t3.area_id=" + search.warehousearea;
sql += " and tw.area_id=" + search.warehousearea;
}
}
if (search.has_tort == 1)
......
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