This commit is contained in:
qianhao.xu
2024-11-08 10:28:37 +08:00
parent a7381c057d
commit 8456a19615

View File

@@ -63,7 +63,7 @@ namespace DOAN.ServiceCore
inventorylog.PackageNum = 2;
inventorylog.CreatedBy = "PLC";
inventorylog.CreatedTime = DateTime.Now.ToLocalTime();
await DbScoped.SugarScope.CopyNew().Insertable(storagelocation).ExecuteCommandAsync();
await DbScoped.SugarScope.CopyNew().Updateable(storagelocation).ExecuteCommandAsync();
}
else
{
@@ -75,7 +75,7 @@ namespace DOAN.ServiceCore
inventorylog.PackageNum = 4;
inventorylog.CreatedBy = "PLC";
inventorylog.CreatedTime = DateTime.Now.ToLocalTime();
await DbScoped.SugarScope.CopyNew().Insertable(storagelocation).ExecuteCommandAsync();
await DbScoped.SugarScope.CopyNew().Updateable(storagelocation).ExecuteCommandAsync();
}
}