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

DS7_JingHan
ddlucky 2 years ago
parent eecdfa4c2d
commit 49c760f15a

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

Loading…
Cancel
Save