Commit e293c13d by lizefeng

优化周转表计算

parent 96a5a11e
...@@ -74,7 +74,7 @@ from dc_auto_turnover as dat ...@@ -74,7 +74,7 @@ from dc_auto_turnover as dat
DynamicParameters parameters = new DynamicParameters(); DynamicParameters parameters = new DynamicParameters();
if ((!string.IsNullOrWhiteSpace(m.warehousetype)) || m.warehousearea > 0 || (!string.IsNullOrEmpty(m.warehouse_code))) if ( m.warehousearea > 0 )
{ {
sqlCount += " left join dc_base_warehouse as t3 on dat.warehouse_code = t3.warehouse_code "; sqlCount += " left join dc_base_warehouse as t3 on dat.warehouse_code = t3.warehouse_code ";
} }
...@@ -194,8 +194,8 @@ from dc_auto_turnover as dat ...@@ -194,8 +194,8 @@ from dc_auto_turnover as dat
{ {
if (!string.IsNullOrWhiteSpace(m.warehousetype)) if (!string.IsNullOrWhiteSpace(m.warehousetype))
{ {
sql += " and t3.hq_type=" + $"'{m.warehousetype}'"; sql += " and dat.hq_type=" + $"'{m.warehousetype}'";
sqlCount += " and t3.hq_type=" + $"'{m.warehousetype}'"; sqlCount += " and dat.hq_type=" + $"'{m.warehousetype}'";
} }
if (m.warehousearea > 0) if (m.warehousearea > 0)
{ {
......
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