后台任务
This commit is contained in:
@@ -68,6 +68,8 @@ namespace DOAN.ServiceCore
|
||||
inventorylog.CreatedBy = "PLC";
|
||||
inventorylog.CreatedTime = DateTime.Now.ToLocalTime();
|
||||
await DbScoped.SugarScope.CopyNew().Updateable(storagelocation).ExecuteCommandAsync();
|
||||
await DbScoped.SugarScope.CopyNew().Insertable(inventorylog).ExecuteCommandAsync();
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -80,6 +82,7 @@ namespace DOAN.ServiceCore
|
||||
inventorylog.CreatedBy = "PLC";
|
||||
inventorylog.CreatedTime = DateTime.Now.ToLocalTime();
|
||||
await DbScoped.SugarScope.CopyNew().Updateable(storagelocation).ExecuteCommandAsync();
|
||||
await DbScoped.SugarScope.CopyNew().Insertable(inventorylog).ExecuteCommandAsync();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user