|
|
|
@ -2,6 +2,7 @@
|
|
|
|
|
using DotNetty.Transport.Channels;
|
|
|
|
|
using Entity.DbModel.Station;
|
|
|
|
|
using HybirdFrameworkCore.Autofac.Attribute;
|
|
|
|
|
using HybirdFrameworkCore.Utils;
|
|
|
|
|
using log4net;
|
|
|
|
|
using Repository.Station;
|
|
|
|
|
using Service.Charger.Client;
|
|
|
|
@ -85,6 +86,13 @@ namespace HybirdFrameworkServices.Charger.Handler
|
|
|
|
|
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);
|
|
|
|
|
Log.Info($"update {update} start charge finish status {chargeStatus} for {client.BinNo}");
|
|
|
|
|
|
|
|
|
|