我的任务-修改换船/放弃换船

optimize
jianghaiqing 2 years ago
parent 23aa63ff64
commit c4e4da73f1

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

Loading…
Cancel
Save