|
|
|
@ -149,7 +149,6 @@ namespace Myshipping.Application
|
|
|
|
|
billNo = readModel.MasterBlNo;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(string.IsNullOrWhiteSpace(billNo))
|
|
|
|
|
{
|
|
|
|
|
_logger.LogInformation("批次={no} 请求Draft文件解析未获取到有效提单号", batchNo);
|
|
|
|
@ -160,7 +159,7 @@ namespace Myshipping.Application
|
|
|
|
|
var bookingOrder = _bookingOrderRepository.AsQueryable().Filter(null, true)
|
|
|
|
|
.First(a => a.MBLNO.Equals(billNo));
|
|
|
|
|
|
|
|
|
|
if (model == null)
|
|
|
|
|
if (bookingOrder == null)
|
|
|
|
|
{
|
|
|
|
|
_logger.LogInformation("批次={no} 提单号{billNo}无法获取业务信息", batchNo, billNo);
|
|
|
|
|
|
|
|
|
@ -206,6 +205,7 @@ namespace Myshipping.Application
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
msgModel.Main.BusinessInfo = mainInfo;
|
|
|
|
|
msgModel.Main.DraftInfo = readModel;
|
|
|
|
|
|
|
|
|
|
//推送Draft比对
|
|
|
|
|
DateTime bCompareDate = DateTime.Now;
|
|
|
|
@ -285,10 +285,10 @@ namespace Myshipping.Application
|
|
|
|
|
/// <param name="contentType">请求类型</param>
|
|
|
|
|
/// <returns>返回回执</returns>
|
|
|
|
|
[NonAction]
|
|
|
|
|
private async Task<TaskManageExcuteResultDto> ExcuteReadPDF(NameValueCollection nameValueCollection, dynamic fileInfo,
|
|
|
|
|
private async Task<TaskManageExcuteCommonResultDto> ExcuteReadPDF(NameValueCollection nameValueCollection, dynamic fileInfo,
|
|
|
|
|
string contentType = "application/json")
|
|
|
|
|
{
|
|
|
|
|
TaskManageExcuteResultDto model = null;
|
|
|
|
|
TaskManageExcuteCommonResultDto model = null;
|
|
|
|
|
var result = string.Empty;
|
|
|
|
|
|
|
|
|
|
using (var httpClient = new HttpClient())
|
|
|
|
@ -332,7 +332,7 @@ namespace Myshipping.Application
|
|
|
|
|
var response = httpClient.PostAsync(App.Configuration["DraftReadUrl"], reduceAttach).Result;
|
|
|
|
|
result = response.Content.ReadAsStringAsync().Result;
|
|
|
|
|
|
|
|
|
|
model = JSON.Deserialize<TaskManageExcuteResultDto>(result);
|
|
|
|
|
model = JSON.Deserialize<TaskManageExcuteCommonResultDto>(result);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
catch (Exception ex)
|
|
|
|
|