From 74c660263b3db6e52be6ded05e4d0715eb4ce903 Mon Sep 17 00:00:00 2001 From: dengyu Date: Thu, 17 Oct 2024 17:36:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8B=E7=BA=BF=E6=93=8D=E4=BD=9C=E9=9C=80?= =?UTF-8?q?=E8=A6=81=E5=AE=A1=E6=89=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Method/CM_BaseInfoService.cs | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/ds-wms-service/DS.WMS.Core/ContainerManagement/Method/CM_BaseInfoService.cs b/ds-wms-service/DS.WMS.Core/ContainerManagement/Method/CM_BaseInfoService.cs index 1b58685e..ee3dfb74 100644 --- a/ds-wms-service/DS.WMS.Core/ContainerManagement/Method/CM_BaseInfoService.cs +++ b/ds-wms-service/DS.WMS.Core/ContainerManagement/Method/CM_BaseInfoService.cs @@ -37,6 +37,9 @@ public class CM_BaseInfoService : ICM_BaseInfoService private readonly ISaasDbService saasService; private readonly IEPPlusService epplusService; private readonly ICM_State_Change_TemplatImportService templatImportService; + private readonly ICM_RentInService CM_RentInService; + private readonly ICM_RentOutService CM_RentOutService; + private readonly ICM_SellCtnService CM_SellCtnService; /// /// @@ -50,6 +53,10 @@ public class CM_BaseInfoService : ICM_BaseInfoService saasService = _serviceProvider.GetRequiredService(); epplusService = _serviceProvider.GetRequiredService(); templatImportService = _serviceProvider.GetRequiredService(); + + CM_RentInService = _serviceProvider.GetRequiredService(); + CM_RentOutService = _serviceProvider.GetRequiredService(); + CM_SellCtnService = _serviceProvider.GetRequiredService(); } /// @@ -354,6 +361,12 @@ public class CM_BaseInfoService : ICM_BaseInfoService tenantDb.Updateable(Head).IgnoreColumns(ignoreAllNullColumns: true).ExecuteCommand(); + + if (Head.BillState == "1100") + { + CM_RentInService.CM_RentIn_Confirm(Head.Id); + } + return DataResult.Successed($"执行成功!", MultiLanguageConst.OperationSuccess); } @@ -382,6 +395,13 @@ public class CM_BaseInfoService : ICM_BaseInfoService tenantDb.Updateable(Head).IgnoreColumns(ignoreAllNullColumns: true).ExecuteCommand(); + + + if (Head.BillState == "1100") + { + CM_RentOutService.CM_RentOut_Confirm(Head.Id); + } + return DataResult.Successed($"执行成功!", MultiLanguageConst.OperationSuccess); } @@ -410,6 +430,12 @@ public class CM_BaseInfoService : ICM_BaseInfoService tenantDb.Updateable(Head).IgnoreColumns(ignoreAllNullColumns: true).ExecuteCommand(); + + if (Head.BillState == "1100") + { + CM_SellCtnService.CM_SellCtn_Confirm(Head.Id); + } + return DataResult.Successed($"执行成功!", MultiLanguageConst.OperationSuccess); }