提交 60e67496 编写于 作者: S szjay

no commit message

上级 587d10cd
...@@ -358,6 +358,10 @@ namespace Infrastructure.Utilities ...@@ -358,6 +358,10 @@ namespace Infrastructure.Utilities
public QueryBuilder Between(string fieldName, string datetime1, string datetime2) public QueryBuilder Between(string fieldName, string datetime1, string datetime2)
{ {
if (datetime1.IsNullOrEmpty() || datetime2.IsNullOrEmpty())
{
return this;
}
_Where.Append(String.Format(" and ({0} >= '{1}' and {0} < '{2}')", fieldName, datetime1, datetime2)); _Where.Append(String.Format(" and ({0} >= '{1}' and {0} < '{2}')", fieldName, datetime1, datetime2));
return this; return this;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册