|
|
|
@ -30,6 +30,8 @@ using System.Text.Json.Nodes;
|
|
|
|
|
using LanguageExt.Pipes;
|
|
|
|
|
using DS.WMS.Core.Op.Interface;
|
|
|
|
|
using DS.WMS.Core.Map.Method;
|
|
|
|
|
using Microsoft.Owin.Security.Provider;
|
|
|
|
|
using LanguageExt;
|
|
|
|
|
|
|
|
|
|
namespace DS.WMS.Core.Op.Method
|
|
|
|
|
{
|
|
|
|
@ -54,6 +56,7 @@ namespace DS.WMS.Core.Op.Method
|
|
|
|
|
const string CONST_MSK_API_COMMODITY_URL = "MSKApiCommodity";
|
|
|
|
|
|
|
|
|
|
const string CONST_MSK_API_MAPPING_MODULE = "BOOK_MSK_API";
|
|
|
|
|
const string CONST_MSK_API_CHANNEL_SHOW = "BOOKING_CHANNEL_SELECT_SHOW";
|
|
|
|
|
|
|
|
|
|
const long CONST_ADMIN_TENANTID = 1288018625843826688;
|
|
|
|
|
|
|
|
|
@ -2166,5 +2169,27 @@ namespace DS.WMS.Core.Op.Method
|
|
|
|
|
return data;
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region 获取预订舱途径选择
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 获取预订舱途径选择
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns>返回回执</returns>
|
|
|
|
|
public async Task<DataResult<List<string>>> GetBookingChannelSelectShow()
|
|
|
|
|
{
|
|
|
|
|
var tenantDb = saasService.GetBizDbScopeById(user.TenantId);
|
|
|
|
|
|
|
|
|
|
var rlt = await configService.GetConfig(CONST_MSK_API_CHANNEL_SHOW, long.Parse(user.TenantId), false);
|
|
|
|
|
|
|
|
|
|
if (rlt.Succeeded)
|
|
|
|
|
{
|
|
|
|
|
var list = rlt.Data.Value.Split(new char[] { ',' }).ToList();
|
|
|
|
|
|
|
|
|
|
return DataResult<List<string>>.Success(list);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return DataResult<List<string>>.FailedData(new List<string>());
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|