123
This commit is contained in:
@@ -61,17 +61,26 @@ namespace DOAN.ServiceCore
|
|||||||
storagelocation.PackageNum = 2;
|
storagelocation.PackageNum = 2;
|
||||||
inventorylog.Operation = 1;
|
inventorylog.Operation = 1;
|
||||||
inventorylog.PackageNum = 2;
|
inventorylog.PackageNum = 2;
|
||||||
|
inventorylog.CreatedBy = "PLC";
|
||||||
|
inventorylog.CreatedTime = DateTime.Now.ToLocalTime();
|
||||||
|
await DbScoped.SugarScope.CopyNew().Insertable(storagelocation).ExecuteCommandAsync();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
//补料
|
if (storagelocation.PackageNum<=2)
|
||||||
storagelocation.PackageNum = 4;
|
{
|
||||||
inventorylog.Operation = 2;
|
//补料成功
|
||||||
inventorylog.PackageNum = 4;
|
storagelocation.PackageNum = 4;
|
||||||
|
inventorylog.Operation = 2;
|
||||||
|
inventorylog.PackageNum = 4;
|
||||||
|
inventorylog.CreatedBy = "PLC";
|
||||||
|
inventorylog.CreatedTime = DateTime.Now.ToLocalTime();
|
||||||
|
await DbScoped.SugarScope.CopyNew().Insertable(storagelocation).ExecuteCommandAsync();
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
inventorylog.CreatedBy = "PLC";
|
|
||||||
inventorylog.CreatedTime = DateTime.Now.ToLocalTime();
|
|
||||||
await DbScoped.SugarScope.CopyNew().Insertable(storagelocation).ExecuteCommandAsync();
|
|
||||||
|
|
||||||
|
|
||||||
await Task.Delay(5000, stoppingToken);
|
await Task.Delay(5000, stoppingToken);
|
||||||
|
|||||||
Reference in New Issue
Block a user