|
@@ -112,6 +112,7 @@ namespace OASystem.API.Controllers
|
|
|
private readonly IJuHeApiService _juHeApi;
|
|
|
private readonly InvertedListRepository _invertedListRep;
|
|
|
private readonly VisaFeeInfoRepository _visaFeeInfoRep;
|
|
|
+ private readonly TicketBlackCodeRepository _ticketBlackCodeRep;
|
|
|
|
|
|
public GroupsController(IMapper mapper, SqlSugarClient sqlSugar, GrpScheduleRepository grpScheduleRep, DelegationInfoRepository groupRepository,
|
|
|
TaskAssignmentRepository taskAssignmentRep, AirTicketResRepository airTicketResRep, DecreasePaymentsRepository decreasePaymentsRep,
|
|
@@ -120,7 +121,7 @@ namespace OASystem.API.Controllers
|
|
|
CheckBoxsRepository checkBoxs, GroupCostRepository GroupCostRepository, CostTypeHotelNumberRepository CostTypeHotelNumberRepository,
|
|
|
GroupCostParameterRepository GroupCostParameterRepository, HotelPriceRepository hotelPriceRep, CustomersRepository customersRep, SetDataRepository setDataRep,
|
|
|
TourClientListRepository tourClientListRep, TeamRateRepository teamRateRep, IHubContext<ChatHub, IChatClient> hubContext, UsersRepository usersRep, IJuHeApiService juHeApi,
|
|
|
- InvertedListRepository invertedListRep, VisaFeeInfoRepository visaFeeInfoRep)
|
|
|
+ InvertedListRepository invertedListRep, VisaFeeInfoRepository visaFeeInfoRep, TicketBlackCodeRepository ticketBlackCodeRep)
|
|
|
{
|
|
|
_mapper = mapper;
|
|
|
_grpScheduleRep = grpScheduleRep;
|
|
@@ -156,6 +157,7 @@ namespace OASystem.API.Controllers
|
|
|
_juHeApi = juHeApi;
|
|
|
_invertedListRep = invertedListRep;
|
|
|
_visaFeeInfoRep = visaFeeInfoRep;
|
|
|
+ _ticketBlackCodeRep = ticketBlackCodeRep;
|
|
|
}
|
|
|
|
|
|
#region 流程管控
|
|
@@ -3656,45 +3658,10 @@ namespace OASystem.API.Controllers
|
|
|
/// <returns></returns>
|
|
|
[HttpPost]
|
|
|
[ProducesResponseType(typeof(JsonView), StatusCodes.Status200OK)]
|
|
|
- public async Task<IActionResult> GetEnterExitCostRealTimeRateAndVisaTips(EnterExitCostInfobyDiIdDto dto)
|
|
|
+ public async Task<IActionResult> GetEnterExitCostCorrelationTips(EnterExitCostInfobyDiIdDto dto)
|
|
|
{
|
|
|
var groupInfo = await _sqlSugar.Queryable<Grp_DelegationInfo>().FirstAsync(it => it.Id == dto.DiId && it.IsDel == 0);
|
|
|
|
|
|
- //签证费用 tips
|
|
|
- List<dynamic> visaInfos = new List<dynamic>();
|
|
|
- if (groupInfo != null)
|
|
|
- {
|
|
|
- List<string> countrys = _groupRepository.GroupSplitCountry(groupInfo.VisitCountry);
|
|
|
- if (countrys.Count > 0)
|
|
|
- {
|
|
|
- foreach (var item in countrys)
|
|
|
- {
|
|
|
- var countryVisaFees = _sqlSugar.Queryable<Res_CountryFeeCost>().First(it => it.IsDel == 0 && countrys.Contains(it.VisaCountry));
|
|
|
- if (countryVisaFees != null)
|
|
|
- {
|
|
|
- visaInfos.Add(new
|
|
|
- {
|
|
|
- isExist = true,
|
|
|
- country = item,
|
|
|
- visaFee = countryVisaFees.VisaPrice,
|
|
|
- lastUpdateDt = countryVisaFees.LastUpdateTime
|
|
|
- });
|
|
|
- }
|
|
|
- else
|
|
|
- {
|
|
|
- visaInfos.Add(new
|
|
|
- {
|
|
|
- isExist = false,
|
|
|
- country = $"“{item}”未在签证费用模块录入!",
|
|
|
- visaFee = 0.00M,
|
|
|
- lastUpdateDt = ""
|
|
|
- });
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
//默认币种显示
|
|
|
List<CurrencyInfo> _currencyInfos = new List<CurrencyInfo>()
|
|
|
{
|
|
@@ -3726,10 +3693,13 @@ namespace OASystem.API.Controllers
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ var visaData = await _visaFeeInfoRep.EntryAndExitTips(dto.DiId);
|
|
|
+ var airData = await _ticketBlackCodeRep.EntryAndExitTips(dto.DiId);
|
|
|
return Ok(JsonView(true, "查询成功!", new
|
|
|
{
|
|
|
//GroupNameData = groupNameData.Data,
|
|
|
- visaInfos = visaInfos,
|
|
|
+ visaData = visaData.Data,
|
|
|
+ airData = airData.Data,
|
|
|
reteInfos = reteInfos
|
|
|
}));
|
|
|
}
|
|
@@ -11128,10 +11098,10 @@ namespace OASystem.API.Controllers
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
- #region 签证费用(签证费、代办费)
|
|
|
+ #region 三公签证费用(签证费、代办费)
|
|
|
|
|
|
/// <summary>
|
|
|
- /// 签证费用(签证费、代办费)
|
|
|
+ /// 三公签证费用(签证费、代办费)
|
|
|
/// List
|
|
|
/// </summary>
|
|
|
/// <returns></returns>
|
|
@@ -11149,7 +11119,7 @@ namespace OASystem.API.Controllers
|
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
|
- /// 签证费用(签证费、代办费)
|
|
|
+ /// 三公签证费用(签证费、代办费)
|
|
|
/// Add Or Update
|
|
|
/// </summary>
|
|
|
/// <returns></returns>
|