增加 可换电 可充电配置

zw
lxw 6 months ago
parent 88975274ba
commit f7642c0090

@ -136,7 +136,6 @@ public class BinInfoResp
public int? Status { get; set; }
/// <summary>
/// Desc:创建时间
/// Default:CURRENT_TIMESTAMP
@ -170,4 +169,15 @@ public class BinInfoResp
/// 缓存仓标记 0:不是 1:是
/// </summary>
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>
[SugarColumn(ColumnName = "cache_bin_flag")]
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,
};
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,
"battery_enter_seq asc");
BinInfo? cacheBinBattery = ChooseCacheBinBattery();

Loading…
Cancel
Save