关贸云业务导入,对只传业务没传费用的做防错处理

DS7_JingHan
ddlucky 2 years ago
parent eecdfa4c2d
commit 49c760f15a

@ -1019,13 +1019,17 @@ namespace DSWeb.Areas.MvcShipping.DAL
return result; return result;
} }
if (!string.IsNullOrWhiteSpace(json))
{
var feehead = JsonConvert.Deserialize<GuanMaoYun_Fee>(json); var feehead = JsonConvert.Deserialize<GuanMaoYun_Fee>(json);
var j2 = PublicAPIDAL.GuanMaoYun_Fee_Save(feehead); var j2 = PublicAPIDAL.GuanMaoYun_Fee_Save(feehead);
if (!j2.Success) { if (!j2.Success)
{
result.SetErrorInfo(j2.Message); result.SetErrorInfo(j2.Message);
return result; return result;
} }
}
result.OK("导入完成"); result.OK("导入完成");

Loading…
Cancel
Save