现场测试,充电机状态不更新

zw
CZ 5 months ago
parent 8b80353616
commit 39204d7c36

@ -45,10 +45,10 @@ namespace Service.Charger.Handler
//Desc:充电状态;0-未知1-正在充电2-无电池3-禁用4-充电完成
if (msg.WorkStatus == 1)
BinInfoRepository.Update(i => i.ChargeStatus == msg.WorkStatus, i => i.No == sn);
BinInfoRepository.Update(i => i.ChargeStatus == msg.WorkStatus, i => i.ChargerNo == sn);
else if (msg.WorkStatus == 2 || msg.WorkStatus == 0)
{
BinInfoRepository.Update(i => i.ChargeStatus == 4, i => i.No == sn);
BinInfoRepository.Update(i => i.ChargeStatus == 4, i => i.ChargerNo == sn);
}
}
}

Loading…
Cancel
Save