|
|
|
@ -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);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|