|
|
@ -178,7 +178,8 @@ namespace Myshipping.Application
|
|
|
|
.Select((detail, dispatch) => new { Detail = detail, Dispatch = dispatch }).ToList();
|
|
|
|
.Select((detail, dispatch) => new { Detail = detail, Dispatch = dispatch }).ToList();
|
|
|
|
|
|
|
|
|
|
|
|
model.PreBillList = withDispatchList.Where(a=>
|
|
|
|
model.PreBillList = withDispatchList.Where(a=>
|
|
|
|
a.Dispatch != null || (a.Dispatch == null && !a.Detail.NOM_STATUS_NOTE.Equals("Load",StringComparison.OrdinalIgnoreCase)))
|
|
|
|
a.Dispatch != null || ((a.Dispatch == null || string.IsNullOrWhiteSpace(a.Dispatch.PK_ID))
|
|
|
|
|
|
|
|
&& !a.Detail.NOM_STATUS_NOTE.Equals("Load",StringComparison.OrdinalIgnoreCase)))
|
|
|
|
.GroupBy(a => a.Detail.CUSTOMERID)
|
|
|
|
.GroupBy(a => a.Detail.CUSTOMERID)
|
|
|
|
.SelectMany((a,idx) => {
|
|
|
|
.SelectMany((a,idx) => {
|
|
|
|
var cArg = a.ToList();
|
|
|
|
var cArg = a.ToList();
|
|
|
@ -225,10 +226,11 @@ namespace Myshipping.Application
|
|
|
|
}).ToList();
|
|
|
|
}).ToList();
|
|
|
|
}).ToList();
|
|
|
|
}).ToList();
|
|
|
|
|
|
|
|
|
|
|
|
if(withDispatchList.Any(a=>a.Dispatch == null
|
|
|
|
if(withDispatchList.Any(a=>(a.Dispatch == null || string.IsNullOrWhiteSpace(a.Dispatch.PK_ID))
|
|
|
|
&& a.Detail.NOM_STATUS_NOTE.Equals("Load", StringComparison.OrdinalIgnoreCase)))
|
|
|
|
&& a.Detail.NOM_STATUS_NOTE.Equals("Load", StringComparison.OrdinalIgnoreCase)))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
model.LoadDetailList = withDispatchList.Where(a => a.Dispatch == null
|
|
|
|
model.LoadDetailList = withDispatchList.Where(a =>
|
|
|
|
|
|
|
|
(a.Dispatch == null || string.IsNullOrWhiteSpace(a.Dispatch.PK_ID))
|
|
|
|
&& a.Detail.NOM_STATUS_NOTE.Equals("Load", StringComparison.OrdinalIgnoreCase))
|
|
|
|
&& a.Detail.NOM_STATUS_NOTE.Equals("Load", StringComparison.OrdinalIgnoreCase))
|
|
|
|
.Select(a => a.Detail.Adapt<TaskRollingNominationShipDetailShowDto>()).ToList();
|
|
|
|
.Select(a => a.Detail.Adapt<TaskRollingNominationShipDetailShowDto>()).ToList();
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -243,77 +245,95 @@ namespace Myshipping.Application
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#endregion
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#region 生成预甩货客户访问链接
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
|
/// 生成预甩货客户访问链接
|
|
|
|
/// 生成预甩货客户访问链接
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="taskPkIds">预甩货任务主键组</param>
|
|
|
|
/// <param name="taskPkIds">预甩货任务主键组</param>
|
|
|
|
/// <returns>返回回执</returns>
|
|
|
|
/// <returns>返回回执</returns>
|
|
|
|
public async Task<TaskManageOrderResultDto> CreateShareLink(string[] taskPkIds)
|
|
|
|
[HttpPost("/TaskManageRollingNomination/CreateShareLink")]
|
|
|
|
|
|
|
|
public async Task<TaskManageOrderResultDto> CreateShareLink([FromQuery] string[] taskPkIds)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
TaskManageOrderResultDto result = new TaskManageOrderResultDto();
|
|
|
|
TaskManageOrderResultDto result = new TaskManageOrderResultDto();
|
|
|
|
|
|
|
|
|
|
|
|
return result;
|
|
|
|
return result;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#region 取消预甩货客户访问链接
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
|
/// 取消预甩货客户访问链接
|
|
|
|
/// 取消预甩货客户访问链接
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="taskPkIds">预甩货任务主键组</param>
|
|
|
|
/// <param name="taskPkIds">预甩货任务主键组</param>
|
|
|
|
/// <returns>返回回执</returns>
|
|
|
|
/// <returns>返回回执</returns>
|
|
|
|
|
|
|
|
[HttpPost("/TaskManageRollingNomination/CancelShareLink")]
|
|
|
|
public async Task<TaskManageOrderResultDto> CancelShareLink(string[] taskPkIds)
|
|
|
|
public async Task<TaskManageOrderResultDto> CancelShareLink(string[] taskPkIds)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
TaskManageOrderResultDto result = new TaskManageOrderResultDto();
|
|
|
|
TaskManageOrderResultDto result = new TaskManageOrderResultDto();
|
|
|
|
|
|
|
|
|
|
|
|
return result;
|
|
|
|
return result;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#region 推送预甩货客户访问链接
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
|
/// 推送预甩货客户访问链接
|
|
|
|
/// 推送预甩货客户访问链接
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="taskPkIds">预甩货任务主键组</param>
|
|
|
|
/// <param name="taskPkIds">预甩货任务主键组</param>
|
|
|
|
/// <returns>返回回执</returns>
|
|
|
|
/// <returns>返回回执</returns>
|
|
|
|
|
|
|
|
[HttpPost("/TaskManageRollingNomination/PushShareLink")]
|
|
|
|
public async Task<TaskManageOrderResultDto> PushShareLink(string[] taskPkIds)
|
|
|
|
public async Task<TaskManageOrderResultDto> PushShareLink(string[] taskPkIds)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
TaskManageOrderResultDto result = new TaskManageOrderResultDto();
|
|
|
|
TaskManageOrderResultDto result = new TaskManageOrderResultDto();
|
|
|
|
|
|
|
|
|
|
|
|
return result;
|
|
|
|
return result;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#region 生成预甩货调度
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
|
/// 生成预甩货调度
|
|
|
|
/// 生成预甩货调度
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="nominationShipId">预甩货船信息主键</param>
|
|
|
|
/// <param name="nominationShipId">预甩货船信息主键</param>
|
|
|
|
/// <param name="loadDetailIds">预甩货可Load明细信息主键组</param>
|
|
|
|
/// <param name="loadDetailIds">预甩货可Load明细信息主键组</param>
|
|
|
|
/// <returns>返回回执</returns>
|
|
|
|
/// <returns>返回回执</returns>
|
|
|
|
|
|
|
|
[HttpPost("/TaskManageRollingNomination/DispatchRollingNomination")]
|
|
|
|
public async Task<TaskManageOrderResultDto> DispatchRollingNomination(string nominationShipId, string[] loadDetailIds)
|
|
|
|
public async Task<TaskManageOrderResultDto> DispatchRollingNomination(string nominationShipId, string[] loadDetailIds)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
TaskManageOrderResultDto result = new TaskManageOrderResultDto();
|
|
|
|
TaskManageOrderResultDto result = new TaskManageOrderResultDto();
|
|
|
|
|
|
|
|
|
|
|
|
return result;
|
|
|
|
return result;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#region 查看分享链接
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
|
/// 查看分享链接
|
|
|
|
/// 查看分享链接
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="batchId">预甩任务主键</param>
|
|
|
|
/// <param name="batchId">预甩任务主键</param>
|
|
|
|
/// <returns>返回回执</returns>
|
|
|
|
/// <returns>返回回执</returns>
|
|
|
|
|
|
|
|
[HttpGet("/TaskManageRollingNomination/GetUrl")]
|
|
|
|
public async Task<TaskManageOrderResultDto> GetUrl(string batchId)
|
|
|
|
public async Task<TaskManageOrderResultDto> GetUrl(string batchId)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
TaskManageOrderResultDto result = new TaskManageOrderResultDto();
|
|
|
|
TaskManageOrderResultDto result = new TaskManageOrderResultDto();
|
|
|
|
|
|
|
|
|
|
|
|
return result;
|
|
|
|
return result;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#region 获取Status是load的可配载的列表
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
|
/// 获取Status是load的可配载的列表
|
|
|
|
/// 获取Status是load的可配载的列表
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="taskPkId">预甩货任务主键</param>
|
|
|
|
/// <param name="taskPkId">预甩货任务主键</param>
|
|
|
|
/// <returns>返回回执</returns>
|
|
|
|
/// <returns>返回回执</returns>
|
|
|
|
|
|
|
|
[HttpGet("/TaskManageRollingNomination/GetLoadStatusDetailList")]
|
|
|
|
public async Task<TaskManageOrderResultDto> GetLoadStatusDetailList(string taskPkId)
|
|
|
|
public async Task<TaskManageOrderResultDto> GetLoadStatusDetailList(string taskPkId)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
TaskManageOrderResultDto result = new TaskManageOrderResultDto();
|
|
|
|
TaskManageOrderResultDto result = new TaskManageOrderResultDto();
|
|
|
|
|
|
|
|
|
|
|
|
return result;
|
|
|
|
return result;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|