|
|
|
@ -436,11 +436,29 @@ namespace DSWeb.MvcShipping.DAL.MsOpVgmSendDAL
|
|
|
|
|
|
|
|
|
|
if (_r.statusCode == 200)
|
|
|
|
|
{
|
|
|
|
|
//20240904 然后判断 CarrierSendFlag 或 YGTSendFlag 中有-1的 对应发送失败
|
|
|
|
|
|
|
|
|
|
var cdc = new CommonDataContext();
|
|
|
|
|
var updrec = cdc.op_seae_vgm_send.FirstOrDefault(x => x.BSNO == OpSeaehead.BSNO);
|
|
|
|
|
updrec.MFNO = _r.data.MFNO;
|
|
|
|
|
updrec.LINKURL = _r.data.LINKURL;
|
|
|
|
|
updrec.VGMSTATUS = _r.data.sendstatus;
|
|
|
|
|
//updrec.VGMSTATUS = _r.data.sendstatus;
|
|
|
|
|
updrec.VGMSTATUS = "";
|
|
|
|
|
if (_r.CarrierSendFlag == -1) {
|
|
|
|
|
updrec.VGMSTATUS = "船公司发送失败";
|
|
|
|
|
}
|
|
|
|
|
if (_r.CarrierSendFlag == 1)
|
|
|
|
|
{
|
|
|
|
|
updrec.VGMSTATUS = "船公司发送成功";
|
|
|
|
|
}
|
|
|
|
|
if (_r.YGTSendFlag == -1)
|
|
|
|
|
{
|
|
|
|
|
updrec.VGMSTATUS += " 云港通发送失败";
|
|
|
|
|
}
|
|
|
|
|
if (_r.YGTSendFlag == 1)
|
|
|
|
|
{
|
|
|
|
|
updrec.VGMSTATUS += " 云港通发送成功";
|
|
|
|
|
}
|
|
|
|
|
cdc.op_seae_vgm_send.AddOrUpdate(updrec);
|
|
|
|
|
cdc.SaveChanges();
|
|
|
|
|
result.OK("上传成功",updrec);
|
|
|
|
|