Commit 54586767 by 泽锋 李

fix 库存接口

parent bfde11e0
......@@ -536,6 +536,8 @@ left join dc_base_warehouse as dbw on t1.warehouse_code = dbw.warehouse_code
{
if (is_warehouse_sum)
{
countSql += " group by t1.warehouse_code ";
sql += " group by t1.warehouse_code ";
if (limit > 1000)
{
total = 0;
......@@ -547,7 +549,7 @@ left join dc_base_warehouse as dbw on t1.warehouse_code = dbw.warehouse_code
}
else
{
countSql += " group by t1.warehouse_code ";
total = _connection.Query<int>(countSql, parameters, commandTimeout: 0).Count();
}
......
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