1、修改服务项目增加单独推送东胜同步方法

2、Draft格式单比对dto增加3个字段
optimize
jianghaiqing 1 year ago
parent 5a20e11b92
commit 8115380598

@ -2522,7 +2522,43 @@ namespace Myshipping.Application
return result;
}
#region 推送东胜同步
/// <summary>
/// 推送东胜同步
/// </summary>
/// <param name="ids">订舱主键组</param>
/// <returns>返回回执</returns>
[HttpPost("/BookingValueAdded/SinglePushBKOrderSyncDS")]
public async Task<TaskManageOrderResultDto> SinglePushBKOrderSyncDS([FromBody] long[] ids)
{
TaskManageOrderResultDto result = new TaskManageOrderResultDto();
string batchNo = IDGen.NextID().ToString();
try
{
var rlt = await _bookingOrderService.SendBookingOrder(ids);
if(rlt != null)
{
result.succ = true;
result.msg = "同步完成";
}
else
{
result.succ = false;
result.msg = "同步失败";
}
}
catch (Exception ex)
{
result.succ = false;
result.msg = $"推送东胜同步失败,原因:{ex.Message}";
}
return result;
}
#endregion
}
public class DateTimeJsonConverter : System.Text.Json.Serialization.JsonConverter<Nullable<DateTime>>

@ -131,5 +131,11 @@ namespace Myshipping.Application
/// <returns>返回回执</returns>
Task<TaskManageOrderResultDto> CancelServiceStatus(ModifyServiceProjectStatusDto model);
/// <summary>
/// 推送东胜同步
/// </summary>
/// <param name="ids">订舱主键组</param>
/// <returns>返回回执</returns>
Task<TaskManageOrderResultDto> SinglePushBKOrderSyncDS(long[] ids);
}
}

@ -198,6 +198,24 @@ namespace Myshipping.Application
[Description("包装")]
public string KindPKGs { get; set; }
/// <summary>
/// 温度(冻柜)
/// </summary>
[Description("冻:温度")]
public string TempSet { get; set; }
/// <summary>
/// 通风(冻柜)
/// </summary>
[Description("冻:通风")]
public string Reeferf { get; set; }
/// <summary>
/// 湿度(冻柜)
/// </summary>
[Description("冻:湿度")]
public string Humidity { get; set; }
/// <summary>
/// 箱明细
/// </summary>

Loading…
Cancel
Save