Commit 2e243397 by 泽锋 李

fix

parent d531bb15
...@@ -386,14 +386,14 @@ left join dc_base_warehouse as dbw on t1.warehouse_code = dbw.warehouse_code ...@@ -386,14 +386,14 @@ left join dc_base_warehouse as dbw on t1.warehouse_code = dbw.warehouse_code
if (f_start_date != null) if (f_start_date != null)
{ {
sql += " and t1.`gmt_create`>=@f_start_date "; sql += " and t1.`first_inbound_date`>=@f_start_date ";
countSql += " and t1.`gmt_create`>=@f_start_date "; countSql += " and t1.`first_inbound_date`>=@f_start_date ";
parameters.Add("f_start_date", f_start_date.Value.ToString("yyyy-MM-dd 00:00:00")); parameters.Add("f_start_date", f_start_date.Value.ToString("yyyy-MM-dd 00:00:00"));
} }
if (f_end_date != null) if (f_end_date != null)
{ {
sql += " and t1.`gmt_create`<=@f_end_date "; sql += " and t1.`first_inbound_date`<=@f_end_date ";
countSql += " and t1.`gmt_create`<=@f_end_date "; countSql += " and t1.`first_inbound_date`<=@f_end_date ";
parameters.Add("f_end_date", f_end_date.Value.ToString("yyyy-MM-dd 23:59:59")); parameters.Add("f_end_date", f_end_date.Value.ToString("yyyy-MM-dd 23:59:59"));
} }
if (start_date != null && end_date != null) if (start_date != null && end_date != null)
......
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