From f381f1821b29fa329e3973788ddceba2cd18271b Mon Sep 17 00:00:00 2001 From: jianghaiqing Date: Mon, 21 Oct 2024 11:05:59 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9SITC=20=E5=86=B7=E5=86=BB=20?= =?UTF-8?q?=E6=B9=BF=E5=BA=A6=E3=80=81=E9=80=9A=E9=A3=8E=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E5=A1=AB=E5=86=99=E5=8D=95=E4=BD=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Myshipping.Application/EDI/SITCEdiHelper.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Myshipping.Application/EDI/SITCEdiHelper.cs b/Myshipping.Application/EDI/SITCEdiHelper.cs index 47a0850c..35bdef04 100644 --- a/Myshipping.Application/EDI/SITCEdiHelper.cs +++ b/Myshipping.Application/EDI/SITCEdiHelper.cs @@ -135,8 +135,12 @@ namespace Myshipping.Application.EDI.SITC e.tempMax = InttrEdi.BSLIST[0].TEMPMAX; e.tempSetting = InttrEdi.BSLIST[0].TEMPSET; e.unit = "C"; - e.humdity = InttrEdi.BSLIST[0].HUMIDITY; - e.vent = InttrEdi.BSLIST[0].REEFERF; + + if(!string.IsNullOrWhiteSpace(InttrEdi.BSLIST[0].HUMIDITY)) + e.humdity = $"{InttrEdi.BSLIST[0].HUMIDITY}%"; + + if(!string.IsNullOrWhiteSpace(InttrEdi.BSLIST[0].REEFERF)) + e.vent = $"{InttrEdi.BSLIST[0].REEFERF}CBM/H"; postModel.extras.Add(e); }