|
@@ -40,6 +40,7 @@ namespace OASystem.API.Controllers
|
|
[Route("api/[controller]/[action]")]
|
|
[Route("api/[controller]/[action]")]
|
|
public class GroupsController : ControllerBase
|
|
public class GroupsController : ControllerBase
|
|
{
|
|
{
|
|
|
|
+ private readonly ILogger<GroupsController> _logger;
|
|
private readonly GrpScheduleRepository _grpScheduleRep;
|
|
private readonly GrpScheduleRepository _grpScheduleRep;
|
|
private readonly IMapper _mapper;
|
|
private readonly IMapper _mapper;
|
|
private readonly DelegationInfoRepository _groupRepository;
|
|
private readonly DelegationInfoRepository _groupRepository;
|
|
@@ -81,7 +82,7 @@ namespace OASystem.API.Controllers
|
|
private readonly HotelInquiryRepository _hotelInquiryRep;
|
|
private readonly HotelInquiryRepository _hotelInquiryRep;
|
|
private readonly FeeAuditRepository _feeAuditRep;
|
|
private readonly FeeAuditRepository _feeAuditRep;
|
|
|
|
|
|
- public GroupsController(IMapper mapper, SqlSugarClient sqlSugar, GrpScheduleRepository grpScheduleRep, DelegationInfoRepository groupRepository,
|
|
|
|
|
|
+ public GroupsController(ILogger<GroupsController> logger, IMapper mapper, SqlSugarClient sqlSugar, GrpScheduleRepository grpScheduleRep, DelegationInfoRepository groupRepository,
|
|
TaskAssignmentRepository taskAssignmentRep, AirTicketResRepository airTicketResRep, DecreasePaymentsRepository decreasePaymentsRep,
|
|
TaskAssignmentRepository taskAssignmentRep, AirTicketResRepository airTicketResRep, DecreasePaymentsRepository decreasePaymentsRep,
|
|
InvitationOfficialActivitiesRepository InvitationOfficialActivitiesRep, DelegationEnDataRepository delegationEnDataRep, EnterExitCostRepository enterExitCostRep
|
|
InvitationOfficialActivitiesRepository InvitationOfficialActivitiesRep, DelegationEnDataRepository delegationEnDataRep, EnterExitCostRepository enterExitCostRep
|
|
, DelegationVisaRepository delegationVisaRep, MessageRepository message, VisaPriceRepository visaPriceRep, CarTouristGuideGroundRepository carTouristGuideGroundRep,
|
|
, DelegationVisaRepository delegationVisaRep, MessageRepository message, VisaPriceRepository visaPriceRep, CarTouristGuideGroundRepository carTouristGuideGroundRep,
|
|
@@ -91,6 +92,7 @@ namespace OASystem.API.Controllers
|
|
InvertedListRepository invertedListRep, VisaFeeInfoRepository visaFeeInfoRep, TicketBlackCodeRepository ticketBlackCodeRep, HotelInquiryRepository hotelInquiryRep,
|
|
InvertedListRepository invertedListRep, VisaFeeInfoRepository visaFeeInfoRep, TicketBlackCodeRepository ticketBlackCodeRep, HotelInquiryRepository hotelInquiryRep,
|
|
ThreeCodeRepository threeCodeRepository, FeeAuditRepository feeAuditRep)
|
|
ThreeCodeRepository threeCodeRepository, FeeAuditRepository feeAuditRep)
|
|
{
|
|
{
|
|
|
|
+ _logger = logger;
|
|
_mapper = mapper;
|
|
_mapper = mapper;
|
|
_grpScheduleRep = grpScheduleRep;
|
|
_grpScheduleRep = grpScheduleRep;
|
|
_groupRepository = groupRepository;
|
|
_groupRepository = groupRepository;
|
|
@@ -1448,7 +1450,8 @@ namespace OASystem.API.Controllers
|
|
_detail.PriceName = priceModule;
|
|
_detail.PriceName = priceModule;
|
|
|
|
|
|
_detail.PayType = initDatas.Find(it => it.Id == entity.PayDId)?.Name ?? "-";
|
|
_detail.PayType = initDatas.Find(it => it.Id == entity.PayDId)?.Name ?? "-";
|
|
- _detail.CardType = initDatas.Find(it => it.Id == entity.CTDId)?.Name ?? "-";
|
|
|
|
|
|
+ if (_detail.PayType.Equals("现金")) _detail.CardType = "-";
|
|
|
|
+ else _detail.CardType = initDatas.Find(it => it.Id == entity.CTDId)?.Name ?? "-";
|
|
|
|
|
|
|
|
|
|
/*
|
|
/*
|
|
@@ -1527,16 +1530,29 @@ namespace OASystem.API.Controllers
|
|
//是否比较房型价格
|
|
//是否比较房型价格
|
|
bool __isSingle = false, __isDouble = false, __isSuite = false, __isOther = false;
|
|
bool __isSingle = false, __isDouble = false, __isSuite = false, __isOther = false;
|
|
|
|
|
|
- roomFeeStr += $"<br/><span style='width:70px;display: inline-block;'></span>";
|
|
|
|
|
|
+ //roomFeeStr += $"<br/><span style='width:70px;display: inline-block;'></span>";
|
|
|
|
+ roomFeeStr += $"<br/>";
|
|
|
|
|
|
if (hotelReservations.SingleRoomPrice > 0)
|
|
if (hotelReservations.SingleRoomPrice > 0)
|
|
- { roomFeestr1 += $"单间:{hotelReservations.SingleRoomPrice.ToString("#0.00")} * {hotelReservations.SingleRoomCount}"; __isSingle = true; }
|
|
|
|
|
|
+ {
|
|
|
|
+ roomFeestr1 += $"<span style='width:70px;display: inline-block;'></span>单间:{hotelReservations.SingleRoomPrice.ToString("#0.00")} * {hotelReservations.SingleRoomCount}<br/>";
|
|
|
|
+ __isSingle = true;
|
|
|
|
+ }
|
|
if (hotelReservations.DoubleRoomPrice > 0)
|
|
if (hotelReservations.DoubleRoomPrice > 0)
|
|
- { roomFeestr1 += $"双人间:{hotelReservations.DoubleRoomPrice.ToString("#0.00")} * {hotelReservations.DoubleRoomCount}"; __isDouble = true; }
|
|
|
|
|
|
+ {
|
|
|
|
+ roomFeestr1 += $"<span style='width:70px;display: inline-block;'></span>双人间:{hotelReservations.DoubleRoomPrice.ToString("#0.00")} * {hotelReservations.DoubleRoomCount}<br/>";
|
|
|
|
+ __isDouble = true;
|
|
|
|
+ }
|
|
if (hotelReservations.SuiteRoomPrice > 0)
|
|
if (hotelReservations.SuiteRoomPrice > 0)
|
|
- { roomFeestr1 += $"套房:{hotelReservations.SuiteRoomPrice.ToString("#0.00")} * {hotelReservations.SuiteRoomCount}"; __isSuite = true; }
|
|
|
|
|
|
+ {
|
|
|
|
+ roomFeestr1 += $"<span style='width:70px;display: inline-block;'></span>套房:{hotelReservations.SuiteRoomPrice.ToString("#0.00")} * {hotelReservations.SuiteRoomCount}<br/>";
|
|
|
|
+ __isSuite = true;
|
|
|
|
+ }
|
|
if (hotelReservations.OtherRoomPrice > 0)
|
|
if (hotelReservations.OtherRoomPrice > 0)
|
|
- { roomFeestr1 += $"其他:{hotelReservations.OtherRoomPrice.ToString("#0.00")} * {hotelReservations.OtherRoomCount}"; __isOther = true; }
|
|
|
|
|
|
+ {
|
|
|
|
+ roomFeestr1 += $"<span style='width:70px;display: inline-block;'></span>其他:{hotelReservations.OtherRoomPrice.ToString("#0.00")} * {hotelReservations.OtherRoomCount}";
|
|
|
|
+ __isOther = true;
|
|
|
|
+ }
|
|
|
|
|
|
if (roomFeestr1.Length > 0) roomFeeStr += roomFeestr1;
|
|
if (roomFeestr1.Length > 0) roomFeeStr += roomFeestr1;
|
|
else roomFeeStr += " 0.00 * 0";
|
|
else roomFeeStr += " 0.00 * 0";
|
|
@@ -1602,7 +1618,9 @@ namespace OASystem.API.Controllers
|
|
if (roomData != null)
|
|
if (roomData != null)
|
|
{
|
|
{
|
|
_detail.PayType = initDatas.Find(it => it.Id == roomData.PayDId)?.Name ?? "-";
|
|
_detail.PayType = initDatas.Find(it => it.Id == roomData.PayDId)?.Name ?? "-";
|
|
- _detail.CardType = initDatas.Find(it => it.Id == roomData.CTDId)?.Name ?? "-";
|
|
|
|
|
|
+
|
|
|
|
+ if (_detail.PayType.Equals("现金")) _detail.CardType = "-";
|
|
|
|
+ else _detail.CardType = initDatas.Find(it => it.Id == roomData.CTDId)?.Name ?? "-";
|
|
|
|
|
|
roomBool = roomData.IsOppay == 1 ? "是" : "否";
|
|
roomBool = roomData.IsOppay == 1 ? "是" : "否";
|
|
roomFee = roomData.Price;
|
|
roomFee = roomData.Price;
|
|
@@ -1636,13 +1654,13 @@ namespace OASystem.API.Controllers
|
|
hotelCsotTotal += item.Sum(x => x.HotelSingleRoomFee) + item.Sum(x => x.HotelDoubleRoomFee) + item.Sum(x => x.HotelSuiteRoomFee) + item.Sum(x => x.HotelSuiteFee);
|
|
hotelCsotTotal += item.Sum(x => x.HotelSingleRoomFee) + item.Sum(x => x.HotelDoubleRoomFee) + item.Sum(x => x.HotelSuiteRoomFee) + item.Sum(x => x.HotelSuiteFee);
|
|
hotelCost_day += @$"{item.First()?.Date ?? "-"}";
|
|
hotelCost_day += @$"{item.First()?.Date ?? "-"}";
|
|
if (item.Sum(x => x.HotelSingleRoomFee) != 0) hotelCost_day += @$" 单间:{item.Sum(x => x.HotelSingleRoomFee).ToString("#0.00")}";
|
|
if (item.Sum(x => x.HotelSingleRoomFee) != 0) hotelCost_day += @$" 单间:{item.Sum(x => x.HotelSingleRoomFee).ToString("#0.00")}";
|
|
- else { if (__isSingle) hotelCost_day += @$" 单间:0.00"; }
|
|
|
|
|
|
+ //else { if (__isSingle) hotelCost_day += @$" 单间:0.00"; }
|
|
if (item.Sum(x => x.HotelDoubleRoomFee) != 0) hotelCost_day += @$" 双人间:{item.Sum(x => x.HotelDoubleRoomFee).ToString("#0.00")}";
|
|
if (item.Sum(x => x.HotelDoubleRoomFee) != 0) hotelCost_day += @$" 双人间:{item.Sum(x => x.HotelDoubleRoomFee).ToString("#0.00")}";
|
|
- else { if (__isDouble) hotelCost_day += @$" 双人间:0.00"; }
|
|
|
|
|
|
+ //else { if (__isDouble) hotelCost_day += @$" 双人间:0.00"; }
|
|
if (item.Sum(x => x.HotelSuiteRoomFee) != 0) hotelCost_day += @$" 小套房/豪华套房:{item.Sum(x => x.HotelSuiteRoomFee).ToString("#0.00")}";
|
|
if (item.Sum(x => x.HotelSuiteRoomFee) != 0) hotelCost_day += @$" 小套房/豪华套房:{item.Sum(x => x.HotelSuiteRoomFee).ToString("#0.00")}";
|
|
- else { if (__isSuite) hotelCost_day += @$" 小套房/豪华套房:0.00"; }
|
|
|
|
|
|
+ //else { if (__isSuite) hotelCost_day += @$" 小套房/豪华套房:0.00"; }
|
|
if (item.Sum(x => x.HotelSuiteFee) != 0) hotelCost_day += @$" 套房:{item.Sum(x => x.HotelSuiteFee).ToString("#0.00")}";
|
|
if (item.Sum(x => x.HotelSuiteFee) != 0) hotelCost_day += @$" 套房:{item.Sum(x => x.HotelSuiteFee).ToString("#0.00")}";
|
|
- else { if (__isOther) hotelCost_day += @$" 套房:0.00"; }
|
|
|
|
|
|
+ //else { if (__isOther) hotelCost_day += @$" 套房:0.00"; }
|
|
hotelCost_day += @$"</br>";
|
|
hotelCost_day += @$"</br>";
|
|
}
|
|
}
|
|
|
|
|
|
@@ -1656,7 +1674,7 @@ namespace OASystem.API.Controllers
|
|
$"<span style='font-weight:800;'>{hotelReservations.HotelName} [{hotelReservations.CheckInDate} - {hotelReservations.CheckOutDate}]</span><br/>" +
|
|
$"<span style='font-weight:800;'>{hotelReservations.HotelName} [{hotelReservations.CheckInDate} - {hotelReservations.CheckOutDate}]</span><br/>" +
|
|
$"信用卡金额:{_detail.WaitPay} ({hotelCurrncyName})<br/>" +
|
|
$"信用卡金额:{_detail.WaitPay} ({hotelCurrncyName})<br/>" +
|
|
$"房间说明: {hotelReservations.Remark} <br/>" +
|
|
$"房间说明: {hotelReservations.Remark} <br/>" +
|
|
- $"房间费用: {roomCode} {roomName} 当时汇率 {roomData?.Rate.ToString("#0.0000")}{roomFeeStr} <br/>是否由地接代付:{roomBool}<br/><br/>" +
|
|
|
|
|
|
+ $"房间费用: {roomCode} {roomName} 当时汇率 {roomData?.Rate.ToString("#0.0000")}{roomFeeStr} 是否由地接代付:{roomBool}<br/><br/>" +
|
|
$"{hotelBreakfastStr}" +
|
|
$"{hotelBreakfastStr}" +
|
|
$"{hotelGovernmentRentStr}" +
|
|
$"{hotelGovernmentRentStr}" +
|
|
$"{hotelCityTaxStr}";
|
|
$"{hotelCityTaxStr}";
|
|
@@ -10040,8 +10058,9 @@ ORDER by gctggrc.id DESC
|
|
await AppNoticeLibrary.SendChatMsg_GroupStatus_ApplyFee(ccpId, sign, QiyeWeChatEnum.GuoJiaoLeaderChat);
|
|
await AppNoticeLibrary.SendChatMsg_GroupStatus_ApplyFee(ccpId, sign, QiyeWeChatEnum.GuoJiaoLeaderChat);
|
|
|
|
|
|
//自动审核
|
|
//自动审核
|
|
- await _feeAuditRep.FeeAutomaticAudit(1, _dto.DiId, hotelId);
|
|
|
|
|
|
+ var autoAdit = await _feeAuditRep.FeeAutomaticAudit(1, _dto.DiId, hotelId);
|
|
|
|
|
|
|
|
+ _logger.LogInformation($"【酒店自动审核】【{DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")}】执行调用 调用结果:{JsonConvert.SerializeObject(autoAdit)}");
|
|
}
|
|
}
|
|
catch (Exception ex)
|
|
catch (Exception ex)
|
|
{
|
|
{
|
|
@@ -10051,6 +10070,36 @@ ORDER by gctggrc.id DESC
|
|
return Ok(_view);
|
|
return Ok(_view);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ /// <summary>
|
|
|
|
+ /// 酒店自动审核测试
|
|
|
|
+ /// Add Or Edit
|
|
|
|
+ /// </summary>
|
|
|
|
+ /// <param name="_dto"></param>
|
|
|
|
+ /// <returns></returns>
|
|
|
|
+ [HttpPost]
|
|
|
|
+ [ProducesResponseType(typeof(JsonView), StatusCodes.Status200OK)]
|
|
|
|
+ public async Task<IActionResult> PostHotelAutoAuditTest(int diid,int dataId)
|
|
|
|
+ {
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ #region 应用推送
|
|
|
|
+
|
|
|
|
+ try
|
|
|
|
+ {
|
|
|
|
+ //自动审核
|
|
|
|
+ await _feeAuditRep.FeeAutomaticAudit(1, diid, dataId);
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ catch (Exception ex)
|
|
|
|
+ {
|
|
|
|
+
|
|
|
|
+ return Ok(JsonView(false, "操作失败"));
|
|
|
|
+ }
|
|
|
|
+ #endregion
|
|
|
|
+
|
|
|
|
+ return Ok(JsonView(false,"操作成功"));
|
|
|
|
+ }
|
|
|
|
+
|
|
/// <summary>
|
|
/// <summary>
|
|
/// 酒店预订
|
|
/// 酒店预订
|
|
/// Del
|
|
/// Del
|