|
|
|
@ -54,13 +54,9 @@ namespace Service.Charger.Handler
|
|
|
|
|
client.TotalWarning = msg.TotalWarning;
|
|
|
|
|
client.UploadRemoteSignalData = msg;
|
|
|
|
|
|
|
|
|
|
//Desc:充电状态;0-未知;1-正在充电;2-无电池;3-禁用;4-充电完成
|
|
|
|
|
if (msg.WorkStatus == 1)
|
|
|
|
|
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.ChargerNo == sn);
|
|
|
|
|
}
|
|
|
|
|
//充电及数据00H:待机01H:工作02H:工作完成03H: 故障04H: 启动中
|
|
|
|
|
//Desc:充电状态;0-未知;1-正在充电;2-无电池;3-禁用;4-充电完成5故障;6启动中
|
|
|
|
|
BinInfoRepository.Update(i => i.ChargeStatus == ChargerConst.WorkStatus(msg.WorkStatus), i => i.ChargerNo == sn);
|
|
|
|
|
|
|
|
|
|
#region 充电机故障显示
|
|
|
|
|
|
|
|
|
|