|
|
|
@ -637,7 +637,7 @@ namespace Myshipping.Application
|
|
|
|
|
}
|
|
|
|
|
catch (Exception ex)
|
|
|
|
|
{
|
|
|
|
|
throw Oops.Bah($"获取登陆人相关的任务统计信息异常,{0}", ex.Message);
|
|
|
|
|
throw Oops.Bah("获取登陆人相关的任务统计信息异常,{0}", ex.Message);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return resultInfo;
|
|
|
|
@ -766,7 +766,7 @@ namespace Myshipping.Application
|
|
|
|
|
}
|
|
|
|
|
catch (Exception ex)
|
|
|
|
|
{
|
|
|
|
|
throw Oops.Bah($"下载正本提单异常,{0}", ex.Message);
|
|
|
|
|
throw Oops.Bah("下载正本提单异常,{0}", ex.Message);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return result;
|
|
|
|
@ -1063,7 +1063,7 @@ namespace Myshipping.Application
|
|
|
|
|
}
|
|
|
|
|
catch (Exception ex)
|
|
|
|
|
{
|
|
|
|
|
throw Oops.Bah($"完成任务异常,{0}", ex.Message);
|
|
|
|
|
throw Oops.Bah("完成任务异常,{0}", ex.Message);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return result;
|
|
|
|
@ -1156,7 +1156,7 @@ namespace Myshipping.Application
|
|
|
|
|
}
|
|
|
|
|
catch (Exception ex)
|
|
|
|
|
{
|
|
|
|
|
throw Oops.Bah($"完成任务异常,{0}", ex.Message);
|
|
|
|
|
throw Oops.Bah("完成任务异常,{0}", ex.Message);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return result;
|
|
|
|
@ -1192,7 +1192,7 @@ namespace Myshipping.Application
|
|
|
|
|
}
|
|
|
|
|
catch (Exception ex)
|
|
|
|
|
{
|
|
|
|
|
throw Oops.Bah($"完成任务异常,{0}", ex.Message);
|
|
|
|
|
throw Oops.Bah("完成任务异常,{0}", ex.Message);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return result;
|
|
|
|
@ -1264,7 +1264,7 @@ namespace Myshipping.Application
|
|
|
|
|
}
|
|
|
|
|
catch (Exception ex)
|
|
|
|
|
{
|
|
|
|
|
throw Oops.Bah($"提单纸页数计算异常,{0}", ex.Message);
|
|
|
|
|
throw Oops.Bah("提单纸页数计算异常,{0}", ex.Message);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return list;
|
|
|
|
@ -1316,7 +1316,7 @@ namespace Myshipping.Application
|
|
|
|
|
}
|
|
|
|
|
catch (Exception ex)
|
|
|
|
|
{
|
|
|
|
|
throw Oops.Bah($"请求提单纸登记异常,{0}", ex.Message);
|
|
|
|
|
throw Oops.Bah("请求提单纸登记异常,{0}", ex.Message);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return result;
|
|
|
|
@ -1603,7 +1603,7 @@ namespace Myshipping.Application
|
|
|
|
|
}
|
|
|
|
|
catch (Exception ex)
|
|
|
|
|
{
|
|
|
|
|
throw Oops.Bah($"LARA提单纸登记异常,{0}", ex.Message);
|
|
|
|
|
throw Oops.Bah("LARA提单纸登记异常,{0}", ex.Message);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return result;
|
|
|
|
@ -1668,7 +1668,7 @@ namespace Myshipping.Application
|
|
|
|
|
{
|
|
|
|
|
_logger.LogInformation("批次={no} url={url} 下载文件异常, 结果{msg}", batchNo, fileUrl, ex.Message);
|
|
|
|
|
|
|
|
|
|
throw Oops.Bah($"{nameof(InnerGetDownloadFile)}下载文件异常", ex.Message);
|
|
|
|
|
throw Oops.Bah(nameof(InnerGetDownloadFile)+"下载文件异常,{0}", ex.Message);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return stream;
|
|
|
|
@ -1799,7 +1799,7 @@ namespace Myshipping.Application
|
|
|
|
|
}
|
|
|
|
|
catch (Exception ex)
|
|
|
|
|
{
|
|
|
|
|
throw Oops.Bah($"LARA提单纸登记异常,{0}", ex.Message);
|
|
|
|
|
throw Oops.Bah("LARA提单纸登记异常,{0}", ex.Message);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -1879,7 +1879,7 @@ namespace Myshipping.Application
|
|
|
|
|
}
|
|
|
|
|
catch (Exception ex)
|
|
|
|
|
{
|
|
|
|
|
throw Oops.Bah($"获取发送下货纸异常,{0}", ex.Message);
|
|
|
|
|
throw Oops.Bah("获取发送下货纸异常,{0}", ex.Message);
|
|
|
|
|
}
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
@ -1936,7 +1936,7 @@ namespace Myshipping.Application
|
|
|
|
|
}
|
|
|
|
|
catch (Exception ex)
|
|
|
|
|
{
|
|
|
|
|
throw Oops.Bah($"获取发送下货纸异常,{0}", ex.Message);
|
|
|
|
|
throw Oops.Bah("获取发送下货纸异常,{0}", ex.Message);
|
|
|
|
|
}
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
@ -1994,7 +1994,7 @@ namespace Myshipping.Application
|
|
|
|
|
}
|
|
|
|
|
catch(Exception ex)
|
|
|
|
|
{
|
|
|
|
|
throw Oops.Bah($"获取发送下货纸异常,{0}", ex.Message);
|
|
|
|
|
throw Oops.Bah("获取发送下货纸异常,{0}", ex.Message);
|
|
|
|
|
}
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
@ -2082,7 +2082,7 @@ namespace Myshipping.Application
|
|
|
|
|
}
|
|
|
|
|
catch(Exception ex)
|
|
|
|
|
{
|
|
|
|
|
throw Oops.Bah($"发送下货纸异常,{0}", ex.Message);
|
|
|
|
|
throw Oops.Bah("发送下货纸异常,{0}", ex.Message);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return result;
|
|
|
|
@ -2242,7 +2242,7 @@ namespace Myshipping.Application
|
|
|
|
|
}
|
|
|
|
|
catch (Exception ex)
|
|
|
|
|
{
|
|
|
|
|
throw Oops.Bah($"获取订舱详情异常,{0}", ex.Message);
|
|
|
|
|
throw Oops.Bah("获取订舱详情异常,{0}", ex.Message);
|
|
|
|
|
}
|
|
|
|
|
return model;
|
|
|
|
|
}
|
|
|
|
@ -2344,7 +2344,7 @@ namespace Myshipping.Application
|
|
|
|
|
}
|
|
|
|
|
catch (Exception ex)
|
|
|
|
|
{
|
|
|
|
|
throw Oops.Bah($"获取获取航次账单详情异常,{0}", ex.Message);
|
|
|
|
|
throw Oops.Bah("获取获取航次账单详情异常,{0}", ex.Message);
|
|
|
|
|
}
|
|
|
|
|
return model;
|
|
|
|
|
}
|
|
|
|
@ -2404,7 +2404,7 @@ namespace Myshipping.Application
|
|
|
|
|
}
|
|
|
|
|
catch (Exception ex)
|
|
|
|
|
{
|
|
|
|
|
throw Oops.Bah($"获取获取单票账单详情异常,{0}", ex.Message);
|
|
|
|
|
throw Oops.Bah("获取获取单票账单详情异常,{0}", ex.Message);
|
|
|
|
|
}
|
|
|
|
|
return model;
|
|
|
|
|
}
|
|
|
|
@ -2529,7 +2529,7 @@ namespace Myshipping.Application
|
|
|
|
|
}
|
|
|
|
|
catch (Exception ex)
|
|
|
|
|
{
|
|
|
|
|
throw Oops.Bah($"导出提单纸登记记录生成Excel异常,{0}", ex.Message);
|
|
|
|
|
throw Oops.Bah("导出提单纸登记记录生成Excel异常,{0}", ex.Message);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return ms;
|
|
|
|
@ -2711,7 +2711,7 @@ namespace Myshipping.Application
|
|
|
|
|
}
|
|
|
|
|
catch(Exception ex)
|
|
|
|
|
{
|
|
|
|
|
throw Oops.Bah($"保存SI信息异常,{0}", ex.Message);
|
|
|
|
|
throw Oops.Bah("保存SI信息异常,{0}", ex.Message);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return result;
|
|
|
|
@ -2786,7 +2786,7 @@ namespace Myshipping.Application
|
|
|
|
|
}
|
|
|
|
|
catch (Exception ex)
|
|
|
|
|
{
|
|
|
|
|
throw Oops.Bah($"获取获取单票账单详情异常,{0}", ex.Message);
|
|
|
|
|
throw Oops.Bah("获取获取单票账单详情异常,{0}", ex.Message);
|
|
|
|
|
}
|
|
|
|
|
return model;
|
|
|
|
|
}
|
|
|
|
@ -3124,7 +3124,7 @@ namespace Myshipping.Application
|
|
|
|
|
}
|
|
|
|
|
catch (Exception ex)
|
|
|
|
|
{
|
|
|
|
|
throw Oops.Bah($"获取VGM比较结果异常,{0}", ex.Message);
|
|
|
|
|
throw Oops.Bah("获取VGM比较结果异常,{0}", ex.Message);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return model;
|
|
|
|
@ -3257,7 +3257,7 @@ namespace Myshipping.Application
|
|
|
|
|
}
|
|
|
|
|
catch(Exception ex)
|
|
|
|
|
{
|
|
|
|
|
throw Oops.Bah($"更新订舱(VGM比较更新)异常,{0}", ex.Message);
|
|
|
|
|
throw Oops.Bah("更新订舱(VGM比较更新)异常,{0}", ex.Message);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return result;
|
|
|
|
@ -3303,7 +3303,7 @@ namespace Myshipping.Application
|
|
|
|
|
if (string.IsNullOrWhiteSpace(taskInfo.RESULT_NOTE))
|
|
|
|
|
throw Oops.Oh($"任务反馈详情不存在");
|
|
|
|
|
|
|
|
|
|
var rtl = JSON.Deserialize<dynamic>(taskInfo.RESULT_NOTE);
|
|
|
|
|
var rtl = Newtonsoft.Json.JsonConvert.DeserializeObject<dynamic>(taskInfo.RESULT_NOTE);
|
|
|
|
|
|
|
|
|
|
model.TaskId = taskInfo.PK_ID;
|
|
|
|
|
model.TaskStatus = taskInfo.STATUS;
|
|
|
|
@ -3311,8 +3311,8 @@ namespace Myshipping.Application
|
|
|
|
|
|
|
|
|
|
model.Vessel = rtl.vessel.ToString();
|
|
|
|
|
model.Voyno = rtl.voyno.ToString();
|
|
|
|
|
model.Vessel = rtl.shipagency == null? rtl.shipagency.ToString():"";
|
|
|
|
|
model.MailUrl = rtl.mailUrl.ToString();
|
|
|
|
|
model.ShipAgency = rtl.shipagency == null? rtl.shipagency.ToString():"";
|
|
|
|
|
model.MailUrl = rtl.mail_url.ToString();
|
|
|
|
|
|
|
|
|
|
//获得未处理的任务数量
|
|
|
|
|
model.TotalTask = await _taskBaseInfoRepository.AsQueryable().Where(t => t.CreatedTime < taskInfo.CreatedTime && t.STATUS == TaskStatusEnum.Create.ToString()
|
|
|
|
@ -3321,7 +3321,7 @@ namespace Myshipping.Application
|
|
|
|
|
}
|
|
|
|
|
catch (Exception ex)
|
|
|
|
|
{
|
|
|
|
|
throw Oops.Bah($"获取获取单票账单详情异常,{0}", ex.Message);
|
|
|
|
|
throw Oops.Bah("获取换船详情异常,{0}", ex.Message);
|
|
|
|
|
}
|
|
|
|
|
return model;
|
|
|
|
|
}
|
|
|
|
@ -3366,7 +3366,7 @@ namespace Myshipping.Application
|
|
|
|
|
if (string.IsNullOrWhiteSpace(taskInfo.RESULT_NOTE))
|
|
|
|
|
throw Oops.Oh($"任务反馈详情不存在");
|
|
|
|
|
|
|
|
|
|
var rtl = JSON.Deserialize<dynamic>(taskInfo.RESULT_NOTE);
|
|
|
|
|
var rtl = Newtonsoft.Json.JsonConvert.DeserializeObject<dynamic>(taskInfo.RESULT_NOTE);
|
|
|
|
|
|
|
|
|
|
model.TaskId = taskInfo.PK_ID;
|
|
|
|
|
model.TaskStatus = taskInfo.STATUS;
|
|
|
|
@ -3374,8 +3374,8 @@ namespace Myshipping.Application
|
|
|
|
|
|
|
|
|
|
model.Vessel = rtl.vessel.ToString();
|
|
|
|
|
model.Voyno = rtl.voyno.ToString();
|
|
|
|
|
model.Vessel = rtl.shipagency == null ? rtl.shipagency.ToString() : "";
|
|
|
|
|
model.MailUrl = rtl.mailUrl.ToString();
|
|
|
|
|
model.ShipAgency = rtl.shipagency == null ? rtl.shipagency.ToString() : "";
|
|
|
|
|
model.MailUrl = rtl.mail_url.ToString();
|
|
|
|
|
|
|
|
|
|
//获得未处理的任务数量
|
|
|
|
|
model.TotalTask = await _taskBaseInfoRepository.AsQueryable().Where(t => t.CreatedTime < taskInfo.CreatedTime && t.STATUS == TaskStatusEnum.Create.ToString()
|
|
|
|
@ -3384,7 +3384,7 @@ namespace Myshipping.Application
|
|
|
|
|
}
|
|
|
|
|
catch (Exception ex)
|
|
|
|
|
{
|
|
|
|
|
throw Oops.Bah($"获取获取单票账单详情异常,{0}", ex.Message);
|
|
|
|
|
throw Oops.Bah("获取取消换船详情异常,{0}", ex.Message);
|
|
|
|
|
}
|
|
|
|
|
return model;
|
|
|
|
|
}
|
|
|
|
@ -3410,7 +3410,7 @@ namespace Myshipping.Application
|
|
|
|
|
}
|
|
|
|
|
catch(Exception ex)
|
|
|
|
|
{
|
|
|
|
|
throw Oops.Bah($"文件名{0} 取页数异常,{1}", Name, ex.Message);
|
|
|
|
|
throw Oops.Bah("文件名{0} 取页数异常,{1}", Name, ex.Message);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|