From b64a4af91e4e9acc47420a9f87c54d4cd41fa38a Mon Sep 17 00:00:00 2001 From: alex Date: Thu, 13 Jul 2023 14:34:51 +0800 Subject: [PATCH] 1 --- WarehouseMgr/Tnb.WarehouseMgr/WmsOutStockService.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/WarehouseMgr/Tnb.WarehouseMgr/WmsOutStockService.cs b/WarehouseMgr/Tnb.WarehouseMgr/WmsOutStockService.cs index 1719855f..df13798d 100644 --- a/WarehouseMgr/Tnb.WarehouseMgr/WmsOutStockService.cs +++ b/WarehouseMgr/Tnb.WarehouseMgr/WmsOutStockService.cs @@ -211,9 +211,9 @@ namespace Tnb.WarehouseMgr WmsPretaskH preTask = new() { org_id = _userManager.User.OrganizeId, - startlocation_id = sPoint?.location_id!, - startlocation_code = sPoint?.location_code!, - endlocation_id = ePoint?.location_id!, + startlocation_id = sPoint?.location_id ?? string.Empty, + startlocation_code = sPoint?.location_code ?? string.Empty, + endlocation_id = ePoint?.location_id ?? string.Empty, endlocation_code = ePoint?.location_code!, start_floor = sPoint?.floor.ToString(), end_floor = ePoint?.floor.ToString(), @@ -223,7 +223,7 @@ namespace Tnb.WarehouseMgr task_type = WmsWareHouseConst.WMS_PRETASK_OUTSTOCK_TYPE_ID, carry_id = carry.id, carry_code = carry.carry_code, - area_id = sPoint?.area_id!, + area_id = sPoint?.area_id ?? string.Empty, area_code = it.Key, require_id = input.data["ReturnIdentity"].ToString(), require_code = input.data[nameof(preTask.bill_code)]?.ToString()!,