现场调试提交

master
CZ 4 months ago
parent 284f32b215
commit 4f6c558b66

@ -138,37 +138,37 @@ namespace Entity.DbModel.Station
[SugarColumn(ColumnName = "ac_elec_count")] [SugarColumn(ColumnName = "ac_elec_count")]
public decimal? AcElecCount { get; set; } public decimal? AcElecCount { get; set; }
/// <summary> /*/// <summary>
/// Desc:充电开始交流表电量 /// Desc:充电开始交流表电量
/// Default: /// Default:
/// Nullable:True /// Nullable:True
/// </summary> /// </summary>
[SugarColumn(ColumnName = "start_ac_elec")] [SugarColumn(ColumnName = "start_ac_elec")]
public decimal? StartAcElec { get; set; } public decimal? StartAcElec { get; set; }*/
/// <summary> /*/// <summary>
/// Desc:充电结束交流表电量 /// Desc:充电结束交流表电量
/// Default: /// Default:
/// Nullable:True /// Nullable:True
/// </summary> /// </summary>
[SugarColumn(ColumnName = "stop_ac_elec")] [SugarColumn(ColumnName = "stop_ac_elec")]
public decimal? StopAcElec { get; set; } public decimal? StopAcElec { get; set; }*/
/// <summary> /*/// <summary>
/// Desc:充电开始直流表电量 /// Desc:充电开始直流表电量
/// Default: /// Default:
/// Nullable:True /// Nullable:True
/// </summary> /// </summary>
[SugarColumn(ColumnName = "start_dc_elec")] [SugarColumn(ColumnName = "start_dc_elec")]
public decimal? StartDcElec { get; set; } public decimal? StartDcElec { get; set; }*/
/// <summary> /*/// <summary>
/// Desc:充电结束直流表电量 /// Desc:充电结束直流表电量
/// Default: /// Default:
/// Nullable:True /// Nullable:True
/// </summary> /// </summary>
[SugarColumn(ColumnName = "stop_dc_elec")] [SugarColumn(ColumnName = "stop_dc_elec")]
public decimal? StopDcElec { get; set; } public decimal? StopDcElec { get; set; }*/
/// <summary> /// <summary>
/// Desc:停止原因;0满电自动停止1-人工停止 /// Desc:停止原因;0满电自动停止1-人工停止
@ -178,7 +178,7 @@ namespace Entity.DbModel.Station
[SugarColumn(ColumnName = "stop_reason")] [SugarColumn(ColumnName = "stop_reason")]
public int? StopReason { get; set; } public int? StopReason { get; set; }
/// <summary> /*/// <summary>
/// Desc:尖时段电量 /// Desc:尖时段电量
/// Default: /// Default:
/// Nullable:True /// Nullable:True
@ -240,15 +240,15 @@ namespace Entity.DbModel.Station
/// Nullable:True /// Nullable:True
/// </summary> /// </summary>
[SugarColumn(ColumnName = "ac_valley_elec_count")] [SugarColumn(ColumnName = "ac_valley_elec_count")]
public decimal? ACValleyElecCount { get; set; } public decimal? ACValleyElecCount { get; set; }*/
/// <summary> /*/// <summary>
/// Desc:电价版本号 /// Desc:电价版本号
/// Default: /// Default:
/// Nullable:True /// Nullable:True
/// </summary> /// </summary>
[SugarColumn(ColumnName = "elec_price_model_version")] [SugarColumn(ColumnName = "elec_price_model_version")]
public string ElecPriceModelVersion { get; set; } public string ElecPriceModelVersion { get; set; }*/
/// <summary> /// <summary>
/// Desc:换电订单编号 /// Desc:换电订单编号
@ -289,10 +289,81 @@ namespace Entity.DbModel.Station
[SugarColumn(ColumnName = "start_type")] [SugarColumn(ColumnName = "start_type")]
public int StartType { get; set; } public int StartType { get; set; }
/// <summary> /*/// <summary>
/// 上报次数 /// 上报次数
/// </summary> /// </summary>
[SugarColumn(ColumnName = "reporting_times")] [SugarColumn(ColumnName = "reporting_times")]
public int ReportingTimes { get; set; } public int ReportingTimes { get; set; }*/
/// <summary>
/// Desc:充电开始交流表电量
/// Default:
/// Nullable:True
/// </summary>
[SugarColumn(ColumnName = "start_ac_elec1")]
public decimal? StartAcElec1 { get; set; }
[SugarColumn(ColumnName = "start_ac_elec2")]
public decimal? StartAcElec2 { get; set; }
/// <summary>
/// Desc:充电结束交流表电量
/// Default:
/// Nullable:True
/// </summary>
[SugarColumn(ColumnName = "stop_ac_elec1")]
public decimal? StopAcElec1 { get; set; }
[SugarColumn(ColumnName = "stop_ac_elec2")]
public decimal? StopAcElec2 { get; set; }
/// <summary>
/// Desc:充电开始直流表电量
/// Default:
/// Nullable:True
/// </summary>
[SugarColumn(ColumnName = "start_dc_elec1")]
public decimal? StartDcElec1 { get; set; }
[SugarColumn(ColumnName = "start_dc_elec2")]
public decimal? StartDcElec2 { get; set; }
/// <summary>
/// Desc:充电结束直流表电量
/// Default:
/// Nullable:True
/// </summary>
[SugarColumn(ColumnName = "stop_dc_elec1")]
public decimal? StopDcElec1 { get; set; }
[SugarColumn(ColumnName = "stop_dc_elec2")]
public decimal? StopDcElec2 { get; set; }
/// <summary>
/// 充电金额
/// </summary>
[SugarColumn(ColumnName = "charge_amount")]
public decimal? ChargeAmount { get; set; }
/// <summary>
/// 充电前卡余额
/// </summary>
[SugarColumn(ColumnName = "card_balance_before")]
public decimal? CardBalanceBefore { get; set; }
/// <summary>
/// 充电后卡余额
/// </summary>
[SugarColumn(ColumnName = "card_balance_behind")]
public decimal? CardBalanceBehind { get; set; }
/// <summary>
/// 交易流水号
/// </summary>
[SugarColumn(ColumnName = "transaction_serial_num")]
public string TransactionSerialNum { get; set; }
} }
} }

@ -147,11 +147,11 @@ public class ChargeOrderService : BaseServices<ChargeOrder>
Expression<Func<ChargeOrder, bool>> condition2Expr = u => u.StopReason == chargeOrder.StopReason; Expression<Func<ChargeOrder, bool>> condition2Expr = u => u.StopReason == chargeOrder.StopReason;
where = where == null ? condition2Expr : Expression.Lambda<Func<ChargeOrder, bool>>(Expression.AndAlso(where.Body, condition2Expr.Body), parameter); where = where == null ? condition2Expr : Expression.Lambda<Func<ChargeOrder, bool>>(Expression.AndAlso(where.Body, condition2Expr.Body), parameter);
} }
if (!string.IsNullOrEmpty(chargeOrder.ElecPriceModelVersion)) /*if (!string.IsNullOrEmpty(chargeOrder.ElecPriceModelVersion))
{ {
Expression<Func<ChargeOrder, bool>> condition2Expr = u => u.ElecPriceModelVersion == chargeOrder.ElecPriceModelVersion; Expression<Func<ChargeOrder, bool>> condition2Expr = u => u.ElecPriceModelVersion == chargeOrder.ElecPriceModelVersion;
where = where == null ? condition2Expr : Expression.Lambda<Func<ChargeOrder, bool>>(Expression.AndAlso(where.Body, condition2Expr.Body), parameter); where = where == null ? condition2Expr : Expression.Lambda<Func<ChargeOrder, bool>>(Expression.AndAlso(where.Body, condition2Expr.Body), parameter);
} }*/
if (!string.IsNullOrEmpty(chargeOrder.SwapOrderSn)) if (!string.IsNullOrEmpty(chargeOrder.SwapOrderSn))
{ {
Expression<Func<ChargeOrder, bool>> condition2Expr = u => u.SwapOrderSn == chargeOrder.SwapOrderSn; Expression<Func<ChargeOrder, bool>> condition2Expr = u => u.SwapOrderSn == chargeOrder.SwapOrderSn;

@ -98,14 +98,18 @@ public class MonitorService
var tboxCarInfoModel = StationSoftMgr.SwappingStateMachine.BoxCarInfoModel; var tboxCarInfoModel = StationSoftMgr.SwappingStateMachine.BoxCarInfoModel;
List<BinInfo> binInfos = BinInfoRepository.QueryListByClause(i => i.Exists == 1 && i.Status == 1); List<BinInfo> binInfos = BinInfoRepository.QueryListByClause(i => i.Exists == 1 && i.Status == 1);
var plcSwapModel = new PlcSwapModelResp();
if(ClientMgr.PlcClient!=null)
{
plcSwapModel.ModelState = ClientMgr.PlcClient.Auto ? 1010 : 1000;
plcSwapModel.ControlModel = ClientMgr.PlcClient.Remote ? 1010 : 1000;
}
SwapMonitorScreenResp monitorScreenResp = new() SwapMonitorScreenResp monitorScreenResp = new()
{ {
PlcSwapModel = new PlcSwapModelResp()
{ PlcSwapModel = plcSwapModel,
ModelState = ClientMgr.PlcClient.Auto?1010:1000,
//StationInLampSts = ClientMgr.PlcClient.
ControlModel = ClientMgr.PlcClient.Remote?1010:1000,
},
StateInfo = stateInfoList, StateInfo = stateInfoList,
VehicleInfo = new SwapVehicleResp() VehicleInfo = new SwapVehicleResp()
{ {

Loading…
Cancel
Save