From a34059e688e947a2ea079a0646872f1a21089940 Mon Sep 17 00:00:00 2001 From: huanghongfeng <huanghongfeng@hnkhzn.com> Date: 星期一, 22 九月 2025 14:47:00 +0800 Subject: [PATCH] 1 --- 项目代码/WMS/WIDESEA_WMSServer/WIDESEA_StoragIntegrationServices/ToAPP/Partial/SaveCLinfo.cs | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_StoragIntegrationServices/ToAPP/Partial/SaveCLinfo.cs" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_StoragIntegrationServices/ToAPP/Partial/SaveCLinfo.cs" index a81acea..75645b5 100644 --- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_StoragIntegrationServices/ToAPP/Partial/SaveCLinfo.cs" +++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_StoragIntegrationServices/ToAPP/Partial/SaveCLinfo.cs" @@ -31,14 +31,14 @@ if (string.IsNullOrEmpty(clCode) || string.IsNullOrEmpty(clh)) throw new Exception($"杞﹁疆鏉$爜涓嶈兘涓虹┖"); - if (!clCode.Contains("/") && !clCode.ToUpper().StartsWith("L")) throw new Exception($"杞﹁疆鏉$爜閿欒,璇烽噸鏂版牳瀵�"); + //if ((!clCode.Contains("/") && !clCode.ToUpper().StartsWith("L")) || (!clCode.Contains("/") && !clCode.ToUpper().StartsWith("BVV"))) throw new Exception($"杞﹁疆鏉$爜閿欒,璇烽噸鏂版牳瀵�"); var clinfo = _InWheels_MesRepository.QueryFirst(x => x.Wheels_code == clCode || x.Wheels_Num == clh); if (clinfo != null) throw new Exception("杞﹁疆褰曞叆淇℃伅宸插瓨鍦�"); //妫�娴嬪簱瀛樻槸鍚﹀凡瀛樺湪 - _WheelsStockRepository.QueryFirst(x => x.Wheels_code == clCode || x.Wheels_Num == clh); - if (clinfo != null) throw new Exception("搴撳唴宸插瓨鍦�,璇锋鏌ュ簱瀛�"); + Dt_WheelsStock dt_WheelsStock= _WheelsStockRepository.QueryFirst(x => x.Wheels_code == clCode || x.Wheels_Num == clh); + if (dt_WheelsStock != null) throw new Exception("搴撳唴宸插瓨鍦�,璇锋鏌ュ簱瀛�"); //搴忓垪鍙� //string madeUnit = saveModel.MainData["xlh"].ToString(); -- Gitblit v1.9.3