Commit 5f83491b by 泽锋 李

fix

parent 99948264
...@@ -117,7 +117,7 @@ where tdb.usable_stock>0 "; ...@@ -117,7 +117,7 @@ where tdb.usable_stock>0 ";
{ {
if(search.start_date!=null && search.end_date != null) if(search.start_date!=null && search.end_date != null)
{ {
sql += " and EXISTS (select * from dc_base_stock_record as t_re where tv.bailun_sku = t_re.bailun_sku and t_re.stock_time>=@start_date and t_re.stock_time<=@end_date and has_transfer=1 ) "; sql += " and EXISTS (select * from dc_base_stock_record as t_re where tdb.bailun_sku = t_re.bailun_sku and t_re.stock_time>=@start_date and t_re.stock_time<=@end_date and has_transfer=1 ) ";
parameters.Add("start_date", search.start_date.Value.ToString("yyyy-MM-dd 00:00:00")); parameters.Add("start_date", search.start_date.Value.ToString("yyyy-MM-dd 00:00:00"));
parameters.Add("end_date", search.start_date.Value.ToString("yyyy-MM-dd 23:59:59")); parameters.Add("end_date", search.start_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