diff --git a/Service/Ammeter/EmeterEnergyService.cs b/Service/Ammeter/EmeterEnergyService.cs index 09bdeaa..0236ad4 100644 --- a/Service/Ammeter/EmeterEnergyService.cs +++ b/Service/Ammeter/EmeterEnergyService.cs @@ -206,7 +206,7 @@ ORDER BY DateTime endDateTime = DateTime.Parse(endTime); // 根据传入的时间参数计算7天前的时间 - DateTime startDateTime = endDateTime.AddDays(-7); + DateTime startDateTime = endDateTime.AddMinutes(-1); // 根据code分组,取最新时间的一条数据,数据范围7天 string sql = @"