diff --git a/ZR.Service/MES/dev/DeviceAccountService.cs b/ZR.Service/MES/dev/DeviceAccountService.cs index 1ee5dfe..7d54e77 100644 --- a/ZR.Service/MES/dev/DeviceAccountService.cs +++ b/ZR.Service/MES/dev/DeviceAccountService.cs @@ -369,7 +369,7 @@ namespace ZR.Service.MES.dev { NoUseTotal++; deviceInfo.DeviceStatus = 4; - NormalTotal++; + Children.Add(deviceInfo); continue; } @@ -382,7 +382,7 @@ namespace ZR.Service.MES.dev { DamageTotal++; deviceInfo.DeviceStatus = 3; - NormalTotal++; + Children.Add(deviceInfo); continue; } @@ -395,12 +395,12 @@ namespace ZR.Service.MES.dev .Where((e, p, r) => r.FkDeviceAccountId == item.Id) .Where((e, p, r) => e.Status == 0 || e.Status == 1 || e.Status == 3) .Count(); - UnmaintainedTotal = UnmaintainedTotal + isExist_point; + // UnmaintainedTotal = UnmaintainedTotal + isExist_point; if (isExist_point>0) { deviceInfo.DeviceStatus = 2; - NormalTotal++; + UnmaintainedTotal++; Children.Add(deviceInfo); continue; @@ -415,13 +415,13 @@ namespace ZR.Service.MES.dev .Where((e, p, r) => e.Status == 0 || e.Status == 1 || e.Status == 3) .Count(); - UnmaintainedTotal = UnmaintainedTotal + isExist_route; + // UnmaintainedTotal = UnmaintainedTotal + isExist_route; if (isExist_route>0) { deviceInfo.DeviceStatus = 2; - NormalTotal++; + UnmaintainedTotal++; Children.Add(deviceInfo); continue;