From 6cca86eac4a6b7321e51caae442090f1e5ce4cb9 Mon Sep 17 00:00:00 2001 From: jianghaiqing Date: Thu, 31 Oct 2024 10:00:39 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=B5=B7=E4=B8=B0?= =?UTF-8?q?=E6=88=AA=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Myshipping.Application/EDI/SITCEdiHelper.cs | 24 ++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/Myshipping.Application/EDI/SITCEdiHelper.cs b/Myshipping.Application/EDI/SITCEdiHelper.cs index dc539aaa..1bc21f59 100644 --- a/Myshipping.Application/EDI/SITCEdiHelper.cs +++ b/Myshipping.Application/EDI/SITCEdiHelper.cs @@ -136,11 +136,29 @@ namespace Myshipping.Application.EDI.SITC e.tempSetting = InttrEdi.BSLIST[0].TEMPSET; e.unit = "C"; - if(!string.IsNullOrWhiteSpace(InttrEdi.BSLIST[0].HUMIDITY)) - e.humdity = $"{InttrEdi.BSLIST[0].HUMIDITY}%"; + if (!string.IsNullOrWhiteSpace(InttrEdi.BSLIST[0].HUMIDITY)) + { + //湿度等于0时,湿度空着不传值 + if (InttrEdi.BSLIST[0].HUMIDITY.Trim() != "0") + { + e.humdity = $"{InttrEdi.BSLIST[0].HUMIDITY}%"; + } + } + if(!string.IsNullOrWhiteSpace(InttrEdi.BSLIST[0].REEFERF)) - e.vent = $"{InttrEdi.BSLIST[0].REEFERF}CBM/H"; + { + //通风等于0时,通风传CLOSED + if (InttrEdi.BSLIST[0].REEFERF.Trim() != "0") + { + e.vent = $"{InttrEdi.BSLIST[0].REEFERF}CBM/H"; + } + else + { + e.vent = "CLOSED"; + } + } + postModel.extras.Add(e); } From 744b7a4226e838d31af7d505c04a7ad7bff4e899 Mon Sep 17 00:00:00 2001 From: jianghaiqing Date: Thu, 31 Oct 2024 10:24:23 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E4=BF=AE=E6=94=B9SITC=20=E8=AE=A2=E8=88=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Myshipping.Application/EDI/SITCEdiHelper.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Myshipping.Application/EDI/SITCEdiHelper.cs b/Myshipping.Application/EDI/SITCEdiHelper.cs index 1bc21f59..5ce06f6f 100644 --- a/Myshipping.Application/EDI/SITCEdiHelper.cs +++ b/Myshipping.Application/EDI/SITCEdiHelper.cs @@ -143,6 +143,10 @@ namespace Myshipping.Application.EDI.SITC { e.humdity = $"{InttrEdi.BSLIST[0].HUMIDITY}%"; } + else + { + e.humdity = ""; + } }