From 0b32a617aec0fbf6ce0d64853ec4cc0e7cf64efa Mon Sep 17 00:00:00 2001 From: 刘磊 <1161824510@qq.com> Date: 星期三, 25 六月 2025 11:35:26 +0800 Subject: [PATCH] 同步 --- 项目代码/WMS/WIDESEA_WMSServer/WIDESEA_StoragIntegrationServices/ToAPP/Partial/SaveCZInfo.cs | 22 +++++++++++++++++++++- 1 files changed, 21 insertions(+), 1 deletions(-) diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_StoragIntegrationServices/ToAPP/Partial/SaveCZInfo.cs" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_StoragIntegrationServices/ToAPP/Partial/SaveCZInfo.cs" index a243234..3d4d78a 100644 --- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_StoragIntegrationServices/ToAPP/Partial/SaveCZInfo.cs" +++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_StoragIntegrationServices/ToAPP/Partial/SaveCZInfo.cs" @@ -9,7 +9,9 @@ using WIDESEA_Core.Helper; using WIDESEA_DTO.WMS; using WIDESEA_Model.Models; +using WIDESEA_Model.Models.GZ_ZC.DistributeWheels; using WIDESEA_StorageBasicRepository; +using WIDESEA_StorageBasicService; namespace WIDESEA_StoragIntegrationServices { @@ -149,7 +151,7 @@ if (string.IsNullOrEmpty(level)) throw new Exception("绛夌骇杞崲澶辫触,璇锋鏌ユ帴鍙g瓑绾у弬鏁�"); //level = leftLevel; } - else if ("rihgt".Equals(wheelsPosition)) + else if ("right".Equals(wheelsPosition)) { level = LevelChangeHelper.LevelChangeType(rightLevel); if (string.IsNullOrEmpty(level)) throw new Exception("绛夌骇杞崲澶辫触,璇锋鏌ユ帴鍙g瓑绾у弬鏁�"); @@ -363,10 +365,20 @@ _unitOfWorkManage.BeginTran(); //寮�鍚簨鍔� + + _CZInfo_MesRepository.AddData(CZInfo_Mes); //娣诲姞杞﹁酱淇℃伅 _WheelsStockRepository.UpdateData(wheelsStocks); //鏇存柊搴撳瓨鏁版嵁 _locationRepository.UpdateData(locationInfos); //鏇存柊搴撲綅鏁版嵁 _taskRepository.AddData(listTask); //娣诲姞浠诲姟鏁版嵁 + if(leftContainer != null) + { + _AxleshelfService.AddAxleshe(leftContainer, CZInfo_Mes,clxh, wheelsPosition, newOrOld); //娣诲姞杞﹁酱涓婃灦璁板綍 + } + if (rightContainer != null) + { + _AxleshelfService.AddAxleshe(rightContainer, CZInfo_Mes,clxh,wheelsPosition,newOrOld); //娣诲姞杞﹁酱涓婃灦璁板綍 + } //涓嬪彂鍑哄簱浠诲姟缁橶CS var configs = _configService.GetConfigsByCategory(CateGoryConst.CONFIG_SYS_IPAddress); @@ -398,6 +410,9 @@ _unitOfWorkManage.RollbackTran(); //鍥炴粴浜嬪姟 throw new Exception("WCS澶勭悊澶辫触"); } + + _unitOfWorkManage.CommitTran(); //鎻愪氦浜嬪姟 + content.OK($"杞﹁疆鍑哄簱浠诲姟涓嬪彂缁橶CS鎴愬姛."); return content; } else @@ -413,6 +428,9 @@ } } + + + private Dt_Task CreateOutTask(Dt_WheelsStock wheelsStock, string CZTM) { CheckInfo checkInfo = new CheckInfo() @@ -453,5 +471,7 @@ }; return task; } + + } } -- Gitblit v1.9.3