/// <summary> /// 统计一天的零售单据数 /// </summary> private async Task Process() { var maxTime = (await _reportBll.GetStatisticsRetailCountMaxTime()).Date; while (maxTime < _startTime) { Execution().Wait(); _endTime = _startTime.AddSeconds(-1); _startTime = _startTime.AddDays(-1); } }