Commit f590b496 by 泽锋 李

fix

parent 28c736b1
......@@ -381,7 +381,7 @@ left join dc_base_warehouse as dbw on t1.warehouse_code = dbw.warehouse_code
}
if (start_date != null && end_date != null)
{
sql += " and t1.bailun_sku in (select t_re.bailun_sku from dc_base_stock_record as t_re where t_re.stock_time >=@start_date and t_re.stock_time <=@end_date ) ";
sql += " and t1.bailun_sku_warehouse_code in (select t_re.bailun_sku_warehouse_code from dc_base_stock_record as t_re where t_re.stock_time >=@start_date and t_re.stock_time <=@end_date ) ";
countSql += " and t1.bailun_sku_warehouse_code in (select t_re.bailun_sku_warehouse_code from dc_base_stock_record as t_re where t_re.stock_time >=@start_date and t_re.stock_time <=@end_date ) ";
parameters.Add("start_date", start_date.Value.ToString("yyyy-MM-dd 00:00:00"));
parameters.Add("end_date", end_date.Value.ToString("yyyy-MM-dd 23:59:59"));
......
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