后台任务

This commit is contained in:
qianhao.xu 2024-11-08 11:32:28 +08:00
parent 477334ef25
commit 4fcad8a63e

View File

@ -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();
}
}