bug修复
This commit is contained in:
@@ -47,13 +47,12 @@ namespace Tnb.WarehouseMgr
|
||||
context = new(cfg);
|
||||
|
||||
s_elevatorMap = await context.Queryable<WmsElevatorH>().ToDictionaryAsync(x => x.elevator_id, x => x.elevator_code);
|
||||
|
||||
s_loadedStatusDic = context.Queryable<WmsElevatorH>().ToList().ToDictionary(x => x.elevator_id, x => x.is_use);
|
||||
|
||||
if (s_eleUseStatusDic.Count < 1)
|
||||
{
|
||||
foreach (var (k, _) in s_elevatorMap)
|
||||
{
|
||||
s_eleUseStatusDic[k] = 0;
|
||||
s_loadedStatusDic[k] = 0;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user