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

DS7_JingHan
ddlucky 2 years ago
parent eecdfa4c2d
commit 49c760f15a

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

Loading…
Cancel
Save