Commit 624a701f by lizefeng

采购建议查询,时间过滤,精准到 时:分

parent 6dc596fe
...@@ -744,13 +744,13 @@ where 1=1 "; ...@@ -744,13 +744,13 @@ where 1=1 ";
if (m.start_date != null) if (m.start_date != null)
{ {
sql += " and t4.create_time >= @start_date "; sql += " and t4.create_time >= @start_date ";
parameters.Add("start_date", m.start_date.Value.ToString("yyyy-MM-dd 00:00:00")); parameters.Add("start_date", m.start_date.Value.ToString("yyyy-MM-dd HH:mm:00"));
} }
if (m.end_date != null) if (m.end_date != null)
{ {
sql += " and t4.create_time<= @end_date "; sql += " and t4.create_time<= @end_date ";
parameters.Add("end_date", m.end_date.Value.ToString("yyyy-MM-dd 23:59:59")); parameters.Add("end_date", m.end_date.Value.ToString("yyyy-MM-dd HH:mm:59"));
} }
if (m.main_id > 0) if (m.main_id > 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