增加格式单下载的日志

master
jianghaiqing 7 months ago
parent f2f2cd8754
commit 6a33e96e84

@ -97,5 +97,20 @@ namespace Myshipping.Application
/// <param name="dispatchBatchId">预甩调度批次ID</param>
/// <returns>返回回执</returns>
Task<TaskManageOrderResultDto> GetUserFeedBack(string dispatchBatchId);
/// <summary>
/// 发送预甩的通知
/// </summary>
/// <param name="model">请求详情</param>
/// <returns>返回回执</returns>
Task<TaskManageOrderResultDto> SendRollingNominationNotice(RollingNominationNoticeDto model);
/// <summary>
/// 获取预甩的通知预览
/// </summary>
/// <param name="model">请求详情</param>
/// <returns>返回回执</returns>
Task<TaskManageOrderResultDto> GetRollingNominationNoticeReview(RollingNominationNoticeDto model);
}
}

@ -2644,7 +2644,7 @@ namespace Myshipping.Application
CLOSEVGMDATE = bcOrder.VGM_CUTOFF_TIME,
CLOSINGDATE = bcOrder.CY_CUTOFF_TIME,
CLOSEDOCDATE = bcOrder.CUT_SINGLE_TIME,
ctnInputs = new List<BookingCtnDto>()
};

@ -196,6 +196,8 @@ namespace Myshipping.Application
throw Oops.Oh($"任务主键{taskPKId} 附件下载请求失败,请确认文件是否存在");
}
_logger.LogInformation($"taskPKId={taskPKId} 下载文件完整路径 fileFullPath={fileFullPath}");
var fileName = HttpUtility.UrlEncode(fileInfo.FILE_NAME, Encoding.GetEncoding("UTF-8"));
var result = new FileStreamResult(new FileStream(fileFullPath, FileMode.Open), "application/octet-stream") { FileDownloadName = fileName };
return result;

@ -1065,5 +1065,74 @@ namespace Myshipping.Application
return result;
}
#endregion
/// <summary>
/// 发送预甩的通知
/// </summary>
/// <param name="model">请求详情</param>
/// <returns></returns>
public async Task<TaskManageOrderResultDto> SendRollingNominationNotice(RollingNominationNoticeDto model)
{
TaskManageOrderResultDto result = new TaskManageOrderResultDto();
try
{
if (model.nominationDispatchId == null || model.nominationDispatchId.Length == 0)
{
throw Oops.Oh($"预甩调度批次ID不能为空");
}
var list = _taskRollingNominationDispatchInfoRepository.AsQueryable()
.Where(a => model.nominationDispatchId.Contains(a.BATCH_ID)).ToList();
if (list.Count == 0)
throw Oops.Oh($"预甩调度批次ID无法获取业务信息");
//
}
catch (Exception ex)
{
result.succ = false;
result.msg = $"取消访问链接异常,原因:{ex.Message}";
}
return result;
}
#region 获取预甩的通知预览
/// <summary>
/// 获取预甩的通知预览
/// </summary>
/// <param name="model">请求详情</param>
/// <returns></returns>
public async Task<TaskManageOrderResultDto> GetRollingNominationNoticeReview(RollingNominationNoticeDto model)
{
TaskManageOrderResultDto result = new TaskManageOrderResultDto();
try
{
//if (string.IsNullOrWhiteSpace(dispatchBatchId))
//{
// throw Oops.Oh($"预甩调度批次ID不能为空");
//}
//var list = _taskRollingNominationDispatchInfoRepository.AsQueryable()
// .Where(a => a.BATCH_ID == dispatchBatchId).ToList();
//if (list.Count == 0)
// throw Oops.Oh($"预甩调度批次ID无法获取业务信息");
//var service = _namedServiceProvider.GetService(nameof(TaskManageShareLinkService));
//result = await service.CancelShareLink(dispatchBatchId);
}
catch (Exception ex)
{
result.succ = false;
result.msg = $"取消访问链接异常,原因:{ex.Message}";
}
return result;
}
#endregion
}
}

Loading…
Cancel
Save