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