|
|
@ -53,12 +53,12 @@ namespace Admin.Core.Service
|
|
|
|
// 默认查询最近三天的数据,防止信息过多
|
|
|
|
// 默认查询最近三天的数据,防止信息过多
|
|
|
|
if (string.IsNullOrEmpty(time1) && string.IsNullOrEmpty(time2))
|
|
|
|
if (string.IsNullOrEmpty(time1) && string.IsNullOrEmpty(time2))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
list = await _codeBindingRecordRepository.QueryAsync(d => d.RecordTime1 >= System.DateTime.Now.AddDays(-3));
|
|
|
|
list = await _codeBindingRecordRepository.QueryAsync(d => d.RecordTime2 >= System.DateTime.Now.AddDays(-3));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if (!string.IsNullOrEmpty(time1) && string.IsNullOrEmpty(time2))
|
|
|
|
else if (!string.IsNullOrEmpty(time1) && string.IsNullOrEmpty(time2))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
DateTime BeginTime = Convert.ToDateTime(Convert.ToDateTime(time1).ToString("yyyy-MM-dd"));
|
|
|
|
DateTime BeginTime = Convert.ToDateTime(Convert.ToDateTime(time1).ToString("yyyy-MM-dd"));
|
|
|
|
list = await _codeBindingRecordRepository.QueryAsync(d => d.RecordTime1 >= BeginTime);
|
|
|
|
list = await _codeBindingRecordRepository.QueryAsync(d => d.RecordTime2 >= BeginTime);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if (string.IsNullOrEmpty(time1) && !string.IsNullOrEmpty(time2))
|
|
|
|
else if (string.IsNullOrEmpty(time1) && !string.IsNullOrEmpty(time2))
|
|
|
|
{
|
|
|
|
{
|
|
|
|