From b7f15702a2352cfd541cd064ad722e19bad054a7 Mon Sep 17 00:00:00 2001 From: FanLian Date: Fri, 14 Jul 2023 15:47:52 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4BaseWareHouseService?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- WarehouseMgr/Tnb.WarehouseMgr/BaseWareHouseService.cs | 2 +- WarehouseMgr/Tnb.WarehouseMgr/WmsRobotCallbackService.cs | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/WarehouseMgr/Tnb.WarehouseMgr/BaseWareHouseService.cs b/WarehouseMgr/Tnb.WarehouseMgr/BaseWareHouseService.cs index e9d315a5..d59ffd89 100644 --- a/WarehouseMgr/Tnb.WarehouseMgr/BaseWareHouseService.cs +++ b/WarehouseMgr/Tnb.WarehouseMgr/BaseWareHouseService.cs @@ -35,7 +35,7 @@ namespace Tnb.WarehouseMgr foreach (var serviceType in serviceTypes) { var callerName = serviceType.GetCustomAttribute()?.Name ?? string.Empty; - if (callerName.IsNullOrEmpty() && !serviceType.IsNull()) + if (!callerName.IsNullOrEmpty()) { var obj = Activator.CreateInstance(serviceType) as IWHStorageService; if (obj == null) continue; diff --git a/WarehouseMgr/Tnb.WarehouseMgr/WmsRobotCallbackService.cs b/WarehouseMgr/Tnb.WarehouseMgr/WmsRobotCallbackService.cs index f20877fc..a98b96af 100644 --- a/WarehouseMgr/Tnb.WarehouseMgr/WmsRobotCallbackService.cs +++ b/WarehouseMgr/Tnb.WarehouseMgr/WmsRobotCallbackService.cs @@ -80,6 +80,9 @@ namespace Tnb.WarehouseMgr carry.carry_status = ((int)EnumCarryStatus.齐套).ToString(); await _db.Updateable(carry).UpdateColumns(it => new { it.collocation_scheme_id, it.collocation_scheme_code, it.carry_status }).ExecuteCommandAsync(); + subCarry.carry_status = ((int)EnumCarryStatus.齐套).ToString(); + subCarry.out_status = ((int)EnumOutStatus.正常).ToString(); + await _db.Updateable(subCarry).UpdateColumns(it => new { it.out_status, it.carry_status }).ExecuteCommandAsync(); if (input.isLast) { var kittingout = await _db.Queryable().FirstAsync(it => it.collocation_scheme_id == carry.collocation_scheme_id && it.status == WmsWareHouseConst.BILLSTATUS_CALLED_ID);