@@ -380,7 +380,8 @@ left join dc_base_warehouse as dbw on t1.warehouse_code = dbw.warehouse_code
}
if(start_date!=null&&end_date!=null)
{
sql+=" and EXISTS (select * from dc_base_stock_record as t_re where t1.warehouse_code=t_re.warehouse_code and t1.bailun_sku = t_re.bailun_sku and t_re.stock_time>=@start_date and t_re.stock_time<=@end_date ) ";
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 ) ";
countSql+=" 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 ) ";