|
|
@ -127,9 +127,9 @@ public class PileUploadChargeRecordHandler : SimpleChannelInboundHandler<PileUpl
|
|
|
|
string sn, DateTime startTime, DateTime endTime, float chargingPower, byte socBefore, byte socAfter)
|
|
|
|
string sn, DateTime startTime, DateTime endTime, float chargingPower, byte socBefore, byte socAfter)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
ChargerPile chargerPile = msg.Pn==1?client.ChargerPile1:client.ChargerPile2;
|
|
|
|
ChargerPile chargerPile = msg.Pn==1?client.ChargerPile1:client.ChargerPile2;
|
|
|
|
req.pn = msg.Pn.ToString();
|
|
|
|
req.pn = chargerPile.pn;
|
|
|
|
req.ct = chargerPile.ct;
|
|
|
|
req.ct = chargerPile.ct;
|
|
|
|
req.cp = chargerPile.cp;
|
|
|
|
req.cp = chargerPile.cp==null?"0":chargerPile.cp;
|
|
|
|
req.st = chargerPile.st;
|
|
|
|
req.st = chargerPile.st;
|
|
|
|
req.cosn = chargerPile.cosn != null ? chargerPile.cosn : req.cosn;
|
|
|
|
req.cosn = chargerPile.cosn != null ? chargerPile.cosn : req.cosn;
|
|
|
|
req.cst = startTime;
|
|
|
|
req.cst = startTime;
|
|
|
@ -137,6 +137,7 @@ public class PileUploadChargeRecordHandler : SimpleChannelInboundHandler<PileUpl
|
|
|
|
req.ceq = chargingPower;
|
|
|
|
req.ceq = chargingPower;
|
|
|
|
req.cssoc = socBefore;
|
|
|
|
req.cssoc = socBefore;
|
|
|
|
req.cesoc = socAfter;
|
|
|
|
req.cesoc = socAfter;
|
|
|
|
|
|
|
|
req.con = chargerPile.con;
|
|
|
|
|
|
|
|
|
|
|
|
/*List<PeriodReq> periodList = new List<PeriodReq>();
|
|
|
|
/*List<PeriodReq> periodList = new List<PeriodReq>();
|
|
|
|
// 利用反射组装充电时间段数据
|
|
|
|
// 利用反射组装充电时间段数据
|
|
|
|