|
|
@ -12,6 +12,7 @@ using Myshipping.Application.Entity;
|
|
|
|
using Myshipping.Core;
|
|
|
|
using Myshipping.Core;
|
|
|
|
using Myshipping.Core.Entity;
|
|
|
|
using Myshipping.Core.Entity;
|
|
|
|
using Myshipping.Core.Service;
|
|
|
|
using Myshipping.Core.Service;
|
|
|
|
|
|
|
|
using StackExchange.Profiling.Internal;
|
|
|
|
using System;
|
|
|
|
using System;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
using System.Linq;
|
|
|
|
using System.Linq;
|
|
|
@ -278,14 +279,44 @@ namespace Myshipping.Application
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
|
/// 批量执行下货纸比对
|
|
|
|
/// 下货纸自动比对回写状态
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="bookingIds">订舱主键组</param>
|
|
|
|
/// <param name="model">比对回写详情</param>
|
|
|
|
/// <returns>返回回执</returns>
|
|
|
|
/// <returns>返回回执</returns>
|
|
|
|
public async Task<TaskManageExcuteResultDto> AutoTaskShippingOrderCompareCallBackAsync(string[] bookingIds)
|
|
|
|
public async Task<TaskManageExcuteResultDto> AutoTaskShippingOrderCompareCallBackAsync([FromBody] ShippingOrderCompareCallBackInfo model)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
TaskManageExcuteResultDto result = new TaskManageExcuteResultDto();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
try
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
if(string.IsNullOrWhiteSpace(model.reqBusiId))
|
|
|
|
|
|
|
|
throw Oops.Oh($"订舱主键{model.reqBusiId}不能为空");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (string.IsNullOrWhiteSpace(model.compareId))
|
|
|
|
|
|
|
|
throw Oops.Oh($"比对ID{model.compareId}不能为空");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (string.IsNullOrWhiteSpace(model.compareMode))
|
|
|
|
|
|
|
|
throw Oops.Oh($"下货纸比对方式不能为空{model.compareMode}不能为空");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (string.IsNullOrWhiteSpace(model.compareRltCode))
|
|
|
|
|
|
|
|
throw Oops.Oh($"比对结果代码{model.compareRltCode}不能为空");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (string.IsNullOrWhiteSpace(model.compareRltName))
|
|
|
|
|
|
|
|
throw Oops.Oh($"比对结果名称{model.compareId}不能为空");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var bookingOrder = await _bookingOrderRepository.AsQueryable()
|
|
|
|
|
|
|
|
.FirstAsync(a => a.Id == long.Parse(model.reqBusiId));
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
catch (Exception ex)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
return new TaskManageExcuteResultDto();
|
|
|
|
result.succ = false;
|
|
|
|
|
|
|
|
result.msg = $"下货纸自动比对回写状态失败,{ex.Message}";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return result;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
|
/// 生成请求规则报文
|
|
|
|
/// 生成请求规则报文
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
|