重启定时任务

This commit is contained in:
alex
2023-08-15 16:46:41 +08:00
parent 7152bbddb3
commit 0b23512a57
5 changed files with 105 additions and 40 deletions

View File

@@ -116,6 +116,7 @@ namespace Tnb.WarehouseMgr
ko.carry_id = firstCarry?.id;
ko.carry_code = firstCarry?.carry_code;
await _db.Updateable(ko).UpdateColumns(it => new { it.status, it.carry_id, it.carry_code }).ExecuteCommandAsync();
//await KittingOutByIsToBeShipped();
if (firstCarry != null)
{
firstCarry.source_id = ko.source_id;
@@ -153,6 +154,7 @@ namespace Tnb.WarehouseMgr
ko.status = WmsWareHouseConst.BILLSTATUS_CALLED_ID;
await curDb.Updateable(ko).UpdateColumns(it => it.status).ExecuteCommandAsync();
isCalled = true;
//await Publish(nameof(IWmsSetSortingService.PackSortingByAdd));
}
}
}
@@ -405,7 +407,7 @@ namespace Tnb.WarehouseMgr
await _db.Insertable(kittingOuts).ExecuteCommandAsync();
await _db.Insertable(kittingOutDs).ExecuteCommandAsync();
await _db.Ado.CommitTranAsync();
await KittingOutByAdd();
isSuccessFul = true;