|
|
@ -11,19 +11,28 @@ public class ChargeOrderRepository : BaseRepository<ChargeOrder>
|
|
|
|
{
|
|
|
|
{
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
|
|
/// 创建充电订单
|
|
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
|
|
/// <param name="chargeOrder">订单编号</param>
|
|
|
|
|
|
|
|
/// <param name="chargeOrderNo">云平台订单编号</param>
|
|
|
|
|
|
|
|
/// <param name="chargerNo">充电机编号</param>
|
|
|
|
|
|
|
|
/// <param name="chargerGunNo">充电枪编号</param>
|
|
|
|
|
|
|
|
/// <param name="outChargerGunNo">站外充电枪编号,站外1枪或2枪</param>
|
|
|
|
public void SaveChargeGunOrder(string chargeOrder,string chargeOrderNo, string chargerNo, string chargerGunNo,
|
|
|
|
public void SaveChargeGunOrder(string chargeOrder,string chargeOrderNo, string chargerNo, string chargerGunNo,
|
|
|
|
string outChargerGunNo)
|
|
|
|
string outChargerGunNo)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
ChargeOrder order = new ChargeOrder();
|
|
|
|
ChargeOrder order = new ChargeOrder();
|
|
|
|
order.Sn = chargeOrder;
|
|
|
|
order.Sn = chargeOrder;
|
|
|
|
order.CmdStatus = 0;
|
|
|
|
order.CmdStatus = 0;
|
|
|
|
order.ChargerNo = chargerNo;
|
|
|
|
order.ChargerNo = chargerNo.Substring(4);
|
|
|
|
order.ChargerGunNo = chargerGunNo;
|
|
|
|
order.ChargerGunNo = chargerGunNo;
|
|
|
|
order.OutChargerGunNo = outChargerGunNo;
|
|
|
|
order.OutChargerGunNo = outChargerGunNo;
|
|
|
|
order.ChargeMode = 1;
|
|
|
|
order.ChargeMode = 1;
|
|
|
|
order.StartMode = 1;
|
|
|
|
order.StartMode = 1;
|
|
|
|
order.CloudChargeOrder = chargeOrderNo;
|
|
|
|
order.CloudChargeOrder = chargeOrderNo;
|
|
|
|
order.CreatedTime = DateTime.Now;
|
|
|
|
order.CreatedTime = DateTime.Now;
|
|
|
|
|
|
|
|
|
|
|
|
Insert(order);
|
|
|
|
Insert(order);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|