|
|
|
@ -72,6 +72,7 @@ namespace Service.Charger.Handler
|
|
|
|
|
|
|
|
|
|
if (db == null)
|
|
|
|
|
{
|
|
|
|
|
TimeSpan timeSpan = endTime - startTime;
|
|
|
|
|
ChargeOrder chargeOrder = new ChargeOrder()
|
|
|
|
|
{
|
|
|
|
|
Sn = client.ChargeOrderNo,
|
|
|
|
@ -81,7 +82,7 @@ namespace Service.Charger.Handler
|
|
|
|
|
StartSoc = msg.SocBefore,
|
|
|
|
|
StopSoc = msg.SocAfter,
|
|
|
|
|
|
|
|
|
|
ChargeTimeCount = (int)(endTime - startTime).TotalMinutes,
|
|
|
|
|
ChargeTimeCount = timeSpan.Hours * 60 + timeSpan.Minutes,
|
|
|
|
|
ElecCount = Convert.ToDecimal(msg.ChargingPower),
|
|
|
|
|
AcElecCount = Convert.ToDecimal(msg.AcMeterElecCount),
|
|
|
|
|
StartAcElec = Convert.ToDecimal(msg.AcMeterDataBefore),
|
|
|
|
@ -110,7 +111,7 @@ namespace Service.Charger.Handler
|
|
|
|
|
db.StartSoc = msg.SocBefore;
|
|
|
|
|
db.StopSoc = msg.SocAfter;
|
|
|
|
|
TimeSpan? timeSpan = (db.EndTime - db.StartTime);
|
|
|
|
|
db.ChargeTimeCount= timeSpan?.Minutes;
|
|
|
|
|
db.ChargeTimeCount= timeSpan?.Hours * 60 + timeSpan?.Minutes;
|
|
|
|
|
db.ElecCount = Convert.ToDecimal(msg.ChargingPower);
|
|
|
|
|
db.AcElecCount = Convert.ToDecimal(msg.AcMeterElecCount);
|
|
|
|
|
db.StartAcElec = Convert.ToDecimal(msg.AcMeterDataBefore);
|
|
|
|
|