From eecdfa4c2d184f45cf1b653390cc03f60c70f45d Mon Sep 17 00:00:00 2001 From: ddlucky Date: Mon, 13 Mar 2023 18:02:37 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=B3=E8=B4=B8=E4=BA=91=E4=BB=BB=E5=8A=A1?= =?UTF-8?q?=E5=A4=84=E7=90=86=20=E9=99=A4=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- DSWeb/Areas/MvcShipping/DAL/MsOpTask/MsOpTaskDAL.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/DSWeb/Areas/MvcShipping/DAL/MsOpTask/MsOpTaskDAL.cs b/DSWeb/Areas/MvcShipping/DAL/MsOpTask/MsOpTaskDAL.cs index 0d3b58f4..fe4718bf 100644 --- a/DSWeb/Areas/MvcShipping/DAL/MsOpTask/MsOpTaskDAL.cs +++ b/DSWeb/Areas/MvcShipping/DAL/MsOpTask/MsOpTaskDAL.cs @@ -1002,10 +1002,13 @@ namespace DSWeb.Areas.MvcShipping.DAL //提取两个op_logicinfo中的json var 报关业务logic = BasicDataRefDAL.GetLogicInfo(TASKNO, "关贸云报关"); - var 报关业务json = 报关业务logic["JSONSTR"]; + var 报关业务json = ""; + + if(报关业务logic.ContainsKey("JSONSTR")) 报关业务json = 报关业务logic["JSONSTR"]; var 报关费用logic = BasicDataRefDAL.GetLogicInfo(TASKNO, "关贸云费用"); - var 报关费用json = 报关费用logic["JSONSTR"]; + var 报关费用json = ""; + if (报关费用logic.ContainsKey("JSONSTR")) 报关费用json = 报关费用logic["JSONSTR"]; var headinfo = JsonConvert.Deserialize(报关业务json);