update更新数据修改

zw
CZ 4 months ago
parent a949cdb432
commit 9b1c1161f8

@ -50,7 +50,9 @@ namespace Service.Charger.Handler
if (ObjUtils.IsNotEmpty(orders)) if (ObjUtils.IsNotEmpty(orders))
{ {
List<int> list = orders.Select(it => it.Id).ToList(); List<int> 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)); it => list.Contains(it.Id));
} }
} }

Loading…
Cancel
Save