增加 可换电 可充电配置

zw
lxw 6 months ago
parent 88975274ba
commit f7642c0090

@ -2,172 +2,182 @@ namespace Entity.Api.Resp;
public class BinInfoResp public class BinInfoResp
{ {
/// <summary> /// <summary>
/// Desc:id /// Desc:id
/// Default: /// Default:
/// Nullable:False /// Nullable:False
/// </summary> /// </summary>
public int Id { get; set; } public int Id { get; set; }
/// <summary> /// <summary>
/// Desc:仓位编号 /// Desc:仓位编号
/// Default: /// Default:
/// Nullable:True /// Nullable:True
/// </summary> /// </summary>
public string No { get; set; } public string No { get; set; }
/// <summary> /// <summary>
/// Desc:仓位编码 /// Desc:仓位编码
/// Default: /// Default:
/// Nullable:True /// Nullable:True
/// </summary> /// </summary>
public string Code { get; set; } public string Code { get; set; }
/// <summary> /// <summary>
/// Desc:仓位名称 /// Desc:仓位名称
/// Default: /// Default:
/// Nullable:True /// Nullable:True
/// </summary> /// </summary>
public string Name { get; set; } public string Name { get; set; }
/// <summary> /// <summary>
/// Desc:在位状态0-不在位1-在位2-无效 /// Desc:在位状态0-不在位1-在位2-无效
/// Default: /// Default:
/// Nullable:True /// Nullable:True
/// </summary> /// </summary>
public int Exists { get; set; } public int Exists { get; set; }
/// <summary> /// <summary>
/// Desc:电池编号 /// Desc:电池编号
/// Default: /// Default:
/// Nullable:True /// Nullable:True
/// </summary> /// </summary>
public string BatteryNo { get; set; } public string BatteryNo { get; set; }
/// <summary> /// <summary>
/// Desc:充电机编号 /// Desc:充电机编号
/// Default: /// Default:
/// Nullable:True /// Nullable:True
/// </summary> /// </summary>
public string ChargerNo { get; set; } public string ChargerNo { get; set; }
/// <summary> /// <summary>
/// Desc:充电枪编号 /// Desc:充电枪编号
/// Default: /// Default:
/// Nullable:True /// Nullable:True
/// </summary> /// </summary>
public string ChargerGunNo { get; set; } public string ChargerGunNo { get; set; }
/// <summary> /// <summary>
/// Desc:水冷编号 /// Desc:水冷编号
/// Default: /// Default:
/// Nullable:True /// Nullable:True
/// </summary> /// </summary>
public string WaterCoolNo { get; set; } public string WaterCoolNo { get; set; }
/// <summary> /// <summary>
/// Desc:是否有电插头;0-无电插头1-有电插头 /// Desc:是否有电插头;0-无电插头1-有电插头
/// Default: /// Default:
/// Nullable:True /// Nullable:True
/// </summary> /// </summary>
public int? ElecPluginFlag { get; set; } public int? ElecPluginFlag { get; set; }
/// <summary> /// <summary>
/// Desc:电插头状态;0-未知1-已经连接2-未连接 /// Desc:电插头状态;0-未知1-已经连接2-未连接
/// Default: /// Default:
/// Nullable:True /// Nullable:True
/// </summary> /// </summary>
public string ElecPluginStatus { get; set; } public string ElecPluginStatus { get; set; }
/// <summary> /// <summary>
/// Desc:是否有水插头;0-无水插头1-有水插头 /// Desc:是否有水插头;0-无水插头1-有水插头
/// Default: /// Default:
/// Nullable:False /// Nullable:False
/// </summary> /// </summary>
public string WaterPluginFlag { get; set; } public string WaterPluginFlag { get; set; }
/// <summary> /// <summary>
/// Desc:预约锁定;0-未锁定1-锁定 /// Desc:预约锁定;0-未锁定1-锁定
/// Default: /// Default:
/// Nullable:True /// Nullable:True
/// </summary> /// </summary>
public int AmtLock { get; set; } public int AmtLock { get; set; }
/// <summary> /// <summary>
/// Desc:soc /// Desc:soc
/// Default: /// Default:
/// Nullable:True /// Nullable:True
/// </summary> /// </summary>
public decimal? Soc { get; set; } public decimal? Soc { get; set; }
/// <summary> /// <summary>
/// Desc:soe /// Desc:soe
/// Default: /// Default:
/// Nullable:True /// Nullable:True
/// </summary> /// </summary>
public decimal? Soe { get; set; } public decimal? Soe { get; set; }
/// <summary> /// <summary>
/// Desc:soh /// Desc:soh
/// Default: /// Default:
/// Nullable:True /// Nullable:True
/// </summary> /// </summary>
public decimal? Soh { get; set; } public decimal? Soh { get; set; }
/// <summary> /// <summary>
/// Desc:电池入仓顺序 /// Desc:电池入仓顺序
/// Default: /// Default:
/// Nullable:True /// Nullable:True
/// </summary> /// </summary>
public int? BatteryEnterSeq { get; set; } public int? BatteryEnterSeq { get; set; }
/// <summary> /// <summary>
/// Desc:充电状态;0-未知1-正在充电2-无电池3-禁用 /// Desc:充电状态;0-未知1-正在充电2-无电池3-禁用
/// Default:0 /// Default:0
/// Nullable:True /// Nullable:True
/// </summary> /// </summary>
public int? ChargeStatus { get; set; } public int? ChargeStatus { get; set; }
/// <summary> /// <summary>
/// Desc:仓位状态;0-禁用1-启用 /// Desc:仓位状态;0-禁用1-启用
/// Default:1 /// Default:1
/// Nullable:True /// Nullable:True
/// </summary> /// </summary>
public int? Status { get; set; } public int? Status { get; set; }
/// <summary>
/// <summary> /// Desc:创建时间
/// Desc:创建时间 /// Default:CURRENT_TIMESTAMP
/// Default:CURRENT_TIMESTAMP /// Nullable:True
/// Nullable:True /// </summary>
/// </summary> public DateTime? CreatedTime { get; set; }
public DateTime? CreatedTime { get; set; }
/// <summary>
/// <summary> /// Desc:更新人
/// Desc:更新人 /// Default:
/// Default: /// Nullable:True
/// Nullable:True /// </summary>
/// </summary> public string UpdatedBy { get; set; }
public string UpdatedBy { get; set; }
/// <summary>
/// <summary> /// Desc:最后结束充电时间 结束充电后更新
/// Desc:最后结束充电时间 结束充电后更新 /// Default:
/// Default: /// Nullable:True
/// Nullable:True /// </summary>
/// </summary> public DateTime? LastChargeFinishTime { get; set; }
public DateTime? LastChargeFinishTime { get; set; }
/// <summary>
/// <summary> /// Desc:更新时间
/// Desc:更新时间 /// Default:CURRENT_TIMESTAMP
/// Default:CURRENT_TIMESTAMP /// Nullable:True
/// Nullable:True /// </summary>
/// </summary> public DateTime? UpdatedTime { get; set; }
public DateTime? UpdatedTime { get; set; }
/// <summary>
/// <summary> /// 缓存仓标记 0:不是 1:是
/// 缓存仓标记 0:不是 1:是 /// </summary>
/// </summary> public int CacheBinFlag { get; set; }
public int CacheBinFlag { get; set; }
}
/// <summary>
/// 是否可以换电 0:不可换 1可换
/// </summary>
public int CanSwapFlag { get; set; }
/// <summary>
/// 是否可以充电 0:不可换 1可换
/// </summary>
public int CanChargeFlag { get; set; }
}

@ -209,5 +209,20 @@ namespace Entity.DbModel.Station
/// </summary> /// </summary>
[SugarColumn(ColumnName = "cache_bin_flag")] [SugarColumn(ColumnName = "cache_bin_flag")]
public int CacheBinFlag { get; set; } public int CacheBinFlag { get; set; }
/// <summary>
/// 是否可以换电 0:不可换 1可换
/// </summary>
[SugarColumn(ColumnName = "can_swap_flag")]
public int CanSwapFlag { get; set; }
/// <summary>
/// 是否可以充电 0:不可换 1可换
/// </summary>
[SugarColumn(ColumnName = "can_charge_flag")]
public int CanChargeFlag { get; set; }
} }
} }

@ -26,7 +26,7 @@ public class BinInfoRepository : BaseRepository<BinInfo>
SuccessFlag = false, SuccessFlag = false,
}; };
List<BinInfo> list = List<BinInfo> list =
QueryListByClause(i => i.CacheBinFlag == 0 && QueryListByClause(i => i.CacheBinFlag == 0 && i.CanSwapFlag==1 &&
i.Exists == 1 && i.Status == 1 && i.AmtLock == (int)InfoEnum.AmtBatLockStatus.UnLock, i.Exists == 1 && i.Status == 1 && i.AmtLock == (int)InfoEnum.AmtBatLockStatus.UnLock,
"battery_enter_seq asc"); "battery_enter_seq asc");
BinInfo? cacheBinBattery = ChooseCacheBinBattery(); BinInfo? cacheBinBattery = ChooseCacheBinBattery();

Loading…
Cancel
Save