|
|
@ -2,6 +2,7 @@
|
|
|
|
using DotNetty.Transport.Channels;
|
|
|
|
using DotNetty.Transport.Channels;
|
|
|
|
using Entity.DbModel.Station;
|
|
|
|
using Entity.DbModel.Station;
|
|
|
|
using HybirdFrameworkCore.Autofac.Attribute;
|
|
|
|
using HybirdFrameworkCore.Autofac.Attribute;
|
|
|
|
|
|
|
|
using HybirdFrameworkCore.Utils;
|
|
|
|
using log4net;
|
|
|
|
using log4net;
|
|
|
|
using Repository.Station;
|
|
|
|
using Repository.Station;
|
|
|
|
using Service.Charger.Client;
|
|
|
|
using Service.Charger.Client;
|
|
|
@ -85,6 +86,13 @@ namespace HybirdFrameworkServices.Charger.Handler
|
|
|
|
client.IsCharged = false;
|
|
|
|
client.IsCharged = false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (ObjUtils.IsNotNullOrWhiteSpace( client.ChargeOrderNo))
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
ChargeOrderRepository.Update(it => it.CmdStatus == (msg.Result == 0 ? 1 : 2),
|
|
|
|
|
|
|
|
it => it.Sn == client.ChargeOrderNo);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
int update = BinInfoRepository.Update(t => t.ChargeStatus == chargeStatus, t => t.No == client.BinNo);
|
|
|
|
int update = BinInfoRepository.Update(t => t.ChargeStatus == chargeStatus, t => t.No == client.BinNo);
|
|
|
|
Log.Info($"update {update} start charge finish status {chargeStatus} for {client.BinNo}");
|
|
|
|
Log.Info($"update {update} start charge finish status {chargeStatus} for {client.BinNo}");
|
|
|
|
|
|
|
|
|
|
|
|