This commit is contained in:
2024-09-30 16:01:34 +08:00
parent 4e7d95000a
commit 5565182898
3 changed files with 20 additions and 9 deletions

View File

@@ -225,11 +225,7 @@ namespace Tnb.WarehouseMgr
if (!string.IsNullOrEmpty(input.requireId))
{
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);
}
await _db.Updateable<WmsDelivery>().SetColumns(it => new WmsDelivery { status = WmsWareHouseConst.BILLSTATUS_COMPLETE_ID }).Where(it => it.id == input.requireId).ExecuteCommandHasChangeAsync();
}
}