自定义定时任务,代码逻辑调整

This commit is contained in:
alex
2023-08-17 15:14:10 +08:00
parent 333e4cc1f1
commit d836d3820c
3 changed files with 73 additions and 7 deletions

View File

@@ -100,6 +100,8 @@ namespace Tnb.WarehouseMgr
if (UserManager.AsscessToken.IsNullOrWhiteSpace()) return;
var curUser = await GetUserIdentity();
//Console.WriteLine($"ThreadID:{Thread.CurrentThread.ManagedThreadId}\t Thread pool: {Thread.CurrentThread.IsThreadPoolThread}");
var curDb = _db.CopyNew();
string firstLocationId = "27010980724501", secondLocationId = "27010987857941";
var endLocation = await curDb.Queryable<BasLocation>().SingleAsync(it => it.id == secondLocationId);