From 59705f3628e80a3c51af4e6d97169b4acd02efe1 Mon Sep 17 00:00:00 2001 From: wet <1034391973@qq.com> Date: Tue, 25 Apr 2023 16:36:18 +0800 Subject: [PATCH] 1 --- .../BookingOrderSeaeEdi/BookingOrderSeaeEdiService.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Myshipping.Application/Service/BookingOrderSeaeEdi/BookingOrderSeaeEdiService.cs b/Myshipping.Application/Service/BookingOrderSeaeEdi/BookingOrderSeaeEdiService.cs index 69d766f2..9bae2c1d 100644 --- a/Myshipping.Application/Service/BookingOrderSeaeEdi/BookingOrderSeaeEdiService.cs +++ b/Myshipping.Application/Service/BookingOrderSeaeEdi/BookingOrderSeaeEdiService.cs @@ -168,6 +168,12 @@ namespace Myshipping.Application ctn.SIZE = ctn.CTNALL != null ? ctn.CTNALL.Substring(0, 2) : ""; ctn.CTN = ctn.CTNALL != null ? ctn.CTNALL.Substring(2, 2) : ""; + } + if (ctn.CTNALL.Contains("'")) + { + ctn.SIZE = ctn.CTNALL.Split("'")[0].ToString(); + ctn.CTN = ctn.CTNALL.Split("'")[1].ToString(); + } await _seaeedictn.InsertAsync(ctn); }