DS7_JinGang
hanxuntao 2 years ago
commit d1b2c3cb2a

@ -37,7 +37,7 @@ namespace DSWeb.Areas.CommMng.DAL
try try
{ {
var strSendObj = JsonConvert.Serialize(sendobj); var strSendObj = JsonConvert.Serialize(sendobj);
BasicDataRefDAL.SaveLog(strSendObj, "", logname, "发送"); BasicDataRefDAL.SaveLog("URL:"+ URL+";"+strSendObj, "", logname, "发送");
var rtn = WebRequestHelper.DoPost(URL, strSendObj, timeout: 50000); var rtn = WebRequestHelper.DoPost(URL, strSendObj, timeout: 50000);
BasicDataRefDAL.SaveLog(rtn, "", logname, "返回"); BasicDataRefDAL.SaveLog(rtn, "", logname, "返回");
result.OK("", rtn); result.OK("", rtn);
@ -500,7 +500,7 @@ namespace DSWeb.Areas.CommMng.DAL
override public DBResult DoDeal(string rtn) override public DBResult DoDeal(string rtn)
{ {
var result = new DBResult(); var result = new DBResult();
result.OK();
var _r = JsonConvert.Deserialize<ESLPortResult_GetMblnoBySO>(rtn); var _r = JsonConvert.Deserialize<ESLPortResult_GetMblnoBySO>(rtn);
try try
{ {
@ -519,11 +519,18 @@ namespace DSWeb.Areas.CommMng.DAL
var sqlstr = $" update op_seae set MBLNO='{_r.data.esl_no}',APPLYNO='{_r.data.ref_no}' where bsno =({bsnostr})"; var sqlstr = $" update op_seae set MBLNO='{_r.data.esl_no}',APPLYNO='{_r.data.ref_no}' where bsno =({bsnostr})";
BasicDataRefDAL.ExecSql(sqlstr); BasicDataRefDAL.ExecSql(sqlstr);
result.OK($"舱位号获取成功:[{_r.data.esl_no}]");
}
else
{
result.OK($"未能取得ESL号可能业务属于其他账号");
} }
} }
result.OK($"舱位号获取成功:[{_r.data.esl_no}]"); else {
result.OK($"未能取得ESL号可能业务属于其他账号");
}
} }
catch (Exception e) catch (Exception e)
{ {

Loading…
Cancel
Save