|
|
|
@ -105,29 +105,19 @@ namespace Aucma.Core.BoxFoam.Business
|
|
|
|
|
public void init()
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
//allSpaces = _baseSpaceInfoServices.Query(x => x.StoreCode == storeCode);
|
|
|
|
|
//foreach (var space in allSpaces)
|
|
|
|
|
//{
|
|
|
|
|
// spaceAddresses.Add(spaceConfig.GetSpaceAddress(storeCode, space.SpaceCode));
|
|
|
|
|
//}
|
|
|
|
|
//// 模拟入库
|
|
|
|
|
////Task.Run(() =>
|
|
|
|
|
////{
|
|
|
|
|
//// Thread.Sleep(2000);
|
|
|
|
|
//// InStore("B24010181060282920011");
|
|
|
|
|
////});
|
|
|
|
|
////实时监测入库任务下发和入库任务完成
|
|
|
|
|
//StartPassDownAndRealInstoreFinish();
|
|
|
|
|
|
|
|
|
|
Task.Run(() =>
|
|
|
|
|
allSpaces = _baseSpaceInfoServices.Query(x => x.StoreCode == storeCode);
|
|
|
|
|
foreach (var space in allSpaces)
|
|
|
|
|
{
|
|
|
|
|
while (true)
|
|
|
|
|
{
|
|
|
|
|
var allSpaces = _baseSpaceInfoServices.Query(x => x.StoreCode == storeCode);
|
|
|
|
|
Console.WriteLine(allSpaces.ToJson());
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
spaceAddresses.Add(spaceConfig.GetSpaceAddress(storeCode, space.SpaceCode));
|
|
|
|
|
}
|
|
|
|
|
// 模拟入库
|
|
|
|
|
//Task.Run(() =>
|
|
|
|
|
//{
|
|
|
|
|
// Thread.Sleep(2000);
|
|
|
|
|
// InStore("B24010181060282920011");
|
|
|
|
|
//});
|
|
|
|
|
//实时监测入库任务下发和入库任务完成
|
|
|
|
|
StartPassDownAndRealInstoreFinish();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|