From 23159f5d6eb5f70e2c5db3e7c02525cd891da9dd Mon Sep 17 00:00:00 2001 From: cjy Date: Tue, 12 Nov 2024 17:21:32 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=9A=E6=AC=A1=E6=94=B9=E9=85=8D=E7=BC=96?= =?UTF-8?q?=E5=8F=B7=E5=9C=A8GP=E5=90=8E=E5=8A=A0=E6=95=B0=E5=AD=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Op/Method/SeaExportRefundService.cs | 23 ++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/ds-wms-service/DS.WMS.Core/Op/Method/SeaExportRefundService.cs b/ds-wms-service/DS.WMS.Core/Op/Method/SeaExportRefundService.cs index 57513eb6..cc1bfd6a 100644 --- a/ds-wms-service/DS.WMS.Core/Op/Method/SeaExportRefundService.cs +++ b/ds-wms-service/DS.WMS.Core/Op/Method/SeaExportRefundService.cs @@ -350,7 +350,28 @@ namespace DS.WMS.Core.Op.Method } #endregion //更新原单信息 - info.CustomerNo = info.CustomerNo + "-GP"; + if (info.CustomerNo.Contains("-GP")) + { + var strArr = info.CustomerNo.Split('-'); + var last = strArr.LastOrDefault(); + if (last == "GP") + { + info.CustomerNo = info.CustomerNo + "-2"; + } + else + { + int num = int.Parse(last); + num = num + 1; + var first = strArr.FirstOrDefault(); + info.CustomerNo = info.CustomerNo + "-GP" + "-" + num; + + } + } + else + { + info.CustomerNo = info.CustomerNo + "-GP"; + } + info.IsBooking = false; info.IsCustoms = false; info.IsLand = false;