This commit is contained in:
2024-06-14 17:06:57 +08:00
parent 5721d85013
commit 71e83874bf
11 changed files with 334 additions and 147 deletions

View File

@@ -223,10 +223,13 @@ namespace Tnb.WarehouseMgr
throw new ArgumentNullException(nameof(input));
}
bool isOk = await _db.Updateable<WmsDelivery>().SetColumns(it => new WmsDelivery { status = WmsWareHouseConst.BILLSTATUS_COMPLETE_ID }).Where(it => it.id == input.requireId).ExecuteCommandHasChangeAsync();
if (!isOk)
if (!string.IsNullOrEmpty(input.requireId))
{
throw Oops.Oh(ErrorCode.COM1001);
bool isOk = await _db.Updateable<WmsDelivery>().SetColumns(it => new WmsDelivery { status = WmsWareHouseConst.BILLSTATUS_COMPLETE_ID }).Where(it => it.id == input.requireId).ExecuteCommandHasChangeAsync();
if (!isOk)
{
throw Oops.Oh(ErrorCode.COM1001);
}
}
}