Commit b2b37332 by 泽锋 李

fix

parent 3eac0440
......@@ -538,19 +538,19 @@ left join dc_base_warehouse as dbw on t1.warehouse_code = dbw.warehouse_code
{
countSql += " group by t1.warehouse_code ";
sql += " group by t1.warehouse_code ";
total = _connection.Query<int>(countSql, parameters, commandTimeout: 0).Count();
}
else
{
if (limit > 1000)
{
total = 0;
}
else
{
else{
total = _connection.QueryFirst<int>(countSql, parameters, commandTimeout: 0);
}
}
else
{
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