修改约号保存,修改下货纸比对回写接口

optimize
jianghaiqing 1 year ago
parent 34c5c74b27
commit fae8d14767

@ -612,6 +612,7 @@ namespace Myshipping.Application
info.LANE_CODE = model.LaneCode?.Trim();
info.LANE_CNAME = model.LaneCName?.Trim();
info.POD_CODE = model.PODCode?.Trim();
info.CARRIER_CODE = model.CarrierCode?.Trim();
await _paraContractNoInfoRepository.AsUpdateable(info).IgnoreColumns(it => new
{

@ -0,0 +1,49 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Myshipping.Application
{
/// <summary>
/// 下货纸比对回写
/// </summary>
public class ShippingOrderCompareCallBackInfo
{
/// <summary>
/// 请求主键
/// </summary>
public string reqBusiId { get; set; }
/// <summary>
/// 比对ID
/// </summary>
public string compareId { get; set; }
/// <summary>
/// 下货纸比对方式 MANUAL-手动 AUTO-自动
/// </summary>
public string compareMode { get; set; } = "AUTO";
/// <summary>
/// 比对结果代码
/// </summary>
public string compareRltCode { get; set; }
/// <summary>
/// 比对结果名称
/// </summary>
public string compareRltName { get; set; }
/// <summary>
/// 比对日期
/// </summary>
public DateTime compareDate { get; set; }
/// <summary>
/// 比对详情
/// </summary>
public List<CompareResultDetailInfo> compareDetailList { get; set; }
}
}

@ -26,12 +26,11 @@ namespace Myshipping.Application
/// <returns>返回回执</returns>
Task<TaskManageExcuteResultDto> ExcuteShippingOrderCompareBatchAsync(string[] bookingIds);
/// <summary>
/// 批量执行下货纸比对
/// 下货纸自动比对回写状态
/// </summary>
/// <param name="bookingIds">订舱主键组</param>
/// <param name="model">比对回写详情</param>
/// <returns>返回回执</returns>
Task<TaskManageExcuteResultDto> AutoTaskShippingOrderCompareCallBackAsync(string[] bookingIds);
Task<TaskManageExcuteResultDto> AutoTaskShippingOrderCompareCallBackAsync(ShippingOrderCompareCallBackInfo model);
}
}

@ -12,6 +12,7 @@ using Myshipping.Application.Entity;
using Myshipping.Core;
using Myshipping.Core.Entity;
using Myshipping.Core.Service;
using StackExchange.Profiling.Internal;
using System;
using System.Collections.Generic;
using System.Linq;
@ -278,14 +279,44 @@ namespace Myshipping.Application
/// <summary>
/// 批量执行下货纸比对
/// 下货纸自动比对回写状态
/// </summary>
/// <param name="bookingIds">订舱主键组</param>
/// <param name="model">比对回写详情</param>
/// <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>

@ -18111,6 +18111,11 @@
东胜id
</summary>
</member>
<member name="P:Myshipping.Application.Entity.DjyVesselInfo.Sign">
<summary>
是否调用接口标志
</summary>
</member>
<member name="P:Myshipping.Application.Entity.DjyVesselInfoDto.BSNO">
<summary>
东胜id

Loading…
Cancel
Save