if (!string.IsNullOrEmpty(kaigongriqi))
{
string[] a = { "," };
string[] arr = kaigongriqi.Split(a, StringSplitOptions.RemoveEmptyEntries);
if (arr.Length == 2)
{
model.kaigongriqi = arr[0].Trim() + " 00:00:00";
model.endTime = arr[1].Trim() + " 23:59:59";
}
}
.WhereIF(!string.IsNullOrEmpty(model.kaigongriqi), t => SqlFunc.Between(t.kaigongriqi, model.kaigongriqi, model.endTime))