diff --git a/Service/Charger/Handler/FinishStopChargingHandler.cs b/Service/Charger/Handler/FinishStopChargingHandler.cs index d2d61c2..ffd697f 100644 --- a/Service/Charger/Handler/FinishStopChargingHandler.cs +++ b/Service/Charger/Handler/FinishStopChargingHandler.cs @@ -50,7 +50,9 @@ namespace Service.Charger.Handler if (ObjUtils.IsNotEmpty(orders)) { List list = orders.Select(it => it.Id).ToList(); - ChargeOrderRepository.Update(it => it.CanUpload == 1 && it.ReportingTimes==0, + + ChargeOrderRepository.Update(it => new ChargeOrder() + {CanUpload = 1 ,ReportingTimes=0 }, it => list.Contains(it.Id)); } }