|
@@ -46,6 +46,7 @@ using Ubiety.Dns.Core;
|
|
|
using static NPOI.POIFS.Crypt.CryptoFunctions;
|
|
|
using static OASystem.API.OAMethodLib.JWTHelper;
|
|
|
using static OASystem.Infrastructure.Repositories.Groups.AirTicketResRepository;
|
|
|
+using static OpenAI.GPT3.ObjectModels.SharedModels.IOpenAiModels;
|
|
|
using Bookmark = Aspose.Words.Bookmark;
|
|
|
using Cell = Aspose.Words.Tables.Cell;
|
|
|
using Table = Aspose.Words.Tables.Table;
|
|
@@ -105,16 +106,42 @@ namespace OASystem.API.Controllers
|
|
|
private readonly ForeignReceivablesRepository _ffrRep; //对外收款账单仓库
|
|
|
private readonly OpinionaireRepository _opinionaireRep; //对外收款账单仓库
|
|
|
|
|
|
- public GroupsController(ILogger<GroupsController> logger, IMapper mapper, SqlSugarClient sqlSugar, GrpScheduleRepository grpScheduleRep, DelegationInfoRepository groupRepository,
|
|
|
- TaskAssignmentRepository taskAssignmentRep, AirTicketResRepository airTicketResRep, DecreasePaymentsRepository decreasePaymentsRep,
|
|
|
- InvitationOfficialActivitiesRepository InvitationOfficialActivitiesRep, DelegationEnDataRepository delegationEnDataRep, EnterExitCostRepository enterExitCostRep
|
|
|
- , DelegationVisaRepository delegationVisaRep, MessageRepository message, VisaPriceRepository visaPriceRep, CarTouristGuideGroundRepository carTouristGuideGroundRep,
|
|
|
- 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, TicketBlackCodeRepository ticketBlackCodeRep, HotelInquiryRepository hotelInquiryRep,
|
|
|
- ThreeCodeRepository threeCodeRepository, FeeAuditRepository feeAuditRep, VisaCommissionRepository visaCommissionRep, ForeignReceivablesRepository ffrRep,
|
|
|
- OpinionaireRepository opinionaireRep)
|
|
|
+ public GroupsController(ILogger<GroupsController> logger,
|
|
|
+ IMapper mapper,
|
|
|
+ SqlSugarClient sqlSugar,
|
|
|
+ GrpScheduleRepository grpScheduleRep,
|
|
|
+ DelegationInfoRepository groupRepository,
|
|
|
+ TaskAssignmentRepository taskAssignmentRep,
|
|
|
+ AirTicketResRepository airTicketResRep,
|
|
|
+ DecreasePaymentsRepository decreasePaymentsRep,
|
|
|
+ InvitationOfficialActivitiesRepository InvitationOfficialActivitiesRep,
|
|
|
+ DelegationEnDataRepository delegationEnDataRep,
|
|
|
+ EnterExitCostRepository enterExitCostRep,
|
|
|
+ DelegationVisaRepository delegationVisaRep,
|
|
|
+ MessageRepository message,
|
|
|
+ VisaPriceRepository visaPriceRep,
|
|
|
+ CarTouristGuideGroundRepository carTouristGuideGroundRep,
|
|
|
+ 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,
|
|
|
+ TicketBlackCodeRepository ticketBlackCodeRep,
|
|
|
+ HotelInquiryRepository hotelInquiryRep,
|
|
|
+ ThreeCodeRepository threeCodeRepository,
|
|
|
+ FeeAuditRepository feeAuditRep,
|
|
|
+ VisaCommissionRepository visaCommissionRep,
|
|
|
+ ForeignReceivablesRepository ffrRep,
|
|
|
+ OpinionaireRepository opinionaireRep
|
|
|
+ )
|
|
|
{
|
|
|
_logger = logger;
|
|
|
_mapper = mapper;
|
|
@@ -624,8 +651,8 @@ namespace OASystem.API.Controllers
|
|
|
//默认分配权限
|
|
|
await GeneralMethod.PostGroupAuthAddInit(dto.UserId, diId);
|
|
|
|
|
|
- //消息提示 王鸽 主管号
|
|
|
- List<int> _managerIds = new List<int>() { 22, 32 };
|
|
|
+ //消息提示 王鸽 主管号 2024-10-21 新增LZ UID
|
|
|
+ var _managerIds = new List<int>() { 22, 32, 21 };
|
|
|
var userIds = _usersRep._sqlSugar.Queryable<Sys_Users>().Where(it => it.IsDel == 0 && _managerIds.Contains(it.JobPostId)).Select(it => it.Id).ToList();
|
|
|
if (userIds.Count > 0)
|
|
|
{
|
|
@@ -790,8 +817,8 @@ namespace OASystem.API.Controllers
|
|
|
//默认分配权限
|
|
|
await GeneralMethod.PostGroupAuthAddInit(dto.UserId, diId);
|
|
|
|
|
|
- //消息提示 王鸽 主管号
|
|
|
- List<int> _managerIds = new List<int>() { 22, 32 };
|
|
|
+ //消息提示 王鸽 主管号 2024-10-21 新增LZ UID
|
|
|
+ List<int> _managerIds = new List<int>() { 21,22, 32 };
|
|
|
var userIds = _usersRep._sqlSugar.Queryable<Sys_Users>().Where(it => it.IsDel == 0 && _managerIds.Contains(it.JobPostId)).Select(it => it.Id).ToList();
|
|
|
if (userIds.Count > 0)
|
|
|
{
|
|
@@ -2725,6 +2752,18 @@ FROM
|
|
|
|
|
|
await AppNoticeLibrary.SendChatMsg_GroupStatus_ApplyFee(ccpId, sign, QiyeWeChatEnum.GuoJiaoLeaderChat);
|
|
|
|
|
|
+ //2024-10-21 新增LZ UID
|
|
|
+ var userIds = new List<int>() { 21 };
|
|
|
+ string title = $"系统通知";
|
|
|
+ string content = "";
|
|
|
+ var diId = dto.AirTicketResOpData.DiId;
|
|
|
+ var groupInfo = await _groupRepository.Query(x => x.Id == diId).FirstAsync();
|
|
|
+ var ccpInfo = await _sqlSugar.Queryable<Grp_CreditCardPayment>().Where(x => x.Id == ccpId).FirstAsync();
|
|
|
+ if (dto.Status == 1) content = $"[新增-机票费用录入({groupInfo?.TeamName ?? "-"})]一项费用:{(ccpInfo.PayMoney * ccpInfo.DayRate).ToString("#0.00")} CNY;";
|
|
|
+ else if (dto.Status == 2) content = $"[更新-机票费用录入({groupInfo?.TeamName ?? "-"})]一项费用:{(ccpInfo.PayMoney * ccpInfo.DayRate).ToString("#0.00")} CNY;";
|
|
|
+
|
|
|
+ await GeneralMethod.MessageIssueAndNotification(MessageTypeEnum.GroupBusinessOperations, title, content, userIds, diId);
|
|
|
+
|
|
|
}
|
|
|
catch (Exception ex)
|
|
|
{
|
|
@@ -3609,6 +3648,18 @@ FROM
|
|
|
|
|
|
await AppNoticeLibrary.SendChatMsg_GroupStatus_ApplyFee(ccpId, sign, QiyeWeChatEnum.GuoJiaoLeaderChat);
|
|
|
|
|
|
+ //2024-10-21 新增LZ UID
|
|
|
+ var userIds = new List<int>() { 21 };
|
|
|
+ string title = $"系统通知";
|
|
|
+ string content = "";
|
|
|
+ var diId = dto.DiId;
|
|
|
+ var groupInfo = await _groupRepository.Query(x => x.Id == diId).FirstAsync();
|
|
|
+ var ccpInfo = await _sqlSugar.Queryable<Grp_CreditCardPayment>().Where(x => x.Id == ccpId).FirstAsync();
|
|
|
+ if (dto.Status == 1) content = $"[新增-增减款项({groupInfo?.TeamName ?? "-"})]一项费用:{(ccpInfo.PayMoney * ccpInfo.DayRate).ToString("#0.00")} CNY;";
|
|
|
+ else if (dto.Status == 2) content = $"[更新-增减款项({groupInfo?.TeamName ?? "-"})]一项费用:{(ccpInfo.PayMoney * ccpInfo.DayRate).ToString("#0.00")} CNY;";
|
|
|
+
|
|
|
+ await GeneralMethod.MessageIssueAndNotification(MessageTypeEnum.GroupBusinessOperations, title, content, userIds, diId);
|
|
|
+
|
|
|
#endregion
|
|
|
|
|
|
return Ok(JsonView(true, groupData.Msg, groupData.Data));
|
|
@@ -4125,8 +4176,6 @@ FROM
|
|
|
return Ok(JsonView(new {url = @$"{AppSettingsHelper.Get("OfficeBaseUrl")}{AppSettingsHelper.Get("GrpFileFtpPath")}/商邀相关文件/{zipFilePathGuid}" }));
|
|
|
}
|
|
|
|
|
|
-
|
|
|
-
|
|
|
/// <summary>
|
|
|
/// 商邀费用 Info Page 基础数据源
|
|
|
/// </summary>
|
|
@@ -4199,6 +4248,18 @@ FROM
|
|
|
int sign = groupData.Data.GetType().GetProperty("sign").GetValue(groupData.Data, null);
|
|
|
|
|
|
await AppNoticeLibrary.SendChatMsg_GroupStatus_ApplyFee(ccpId, sign, QiyeWeChatEnum.GuoJiaoLeaderChat);
|
|
|
+
|
|
|
+ //2024-10-21 新增LZ UID
|
|
|
+ var userIds = new List<int>() { 21 };
|
|
|
+ string title = $"系统通知";
|
|
|
+ string content = "";
|
|
|
+ var diId = dto.DiId;
|
|
|
+ var groupInfo = await _groupRepository.Query(x => x.Id == diId).FirstAsync();
|
|
|
+ var ccpInfo = await _sqlSugar.Queryable<Grp_CreditCardPayment>().Where(x => x.Id == ccpId).FirstAsync();
|
|
|
+ if (dto.Status == 1) content = $"[新增-商邀费用录入({groupInfo?.TeamName ?? "-"})]一项费用:{(ccpInfo.PayMoney * ccpInfo.DayRate).ToString("#0.00")} CNY;";
|
|
|
+ else if (dto.Status == 2) content = $"[更新-商邀费用录入({groupInfo?.TeamName ?? "-"})]一项费用:{(ccpInfo.PayMoney * ccpInfo.DayRate).ToString("#0.00")} CNY;";
|
|
|
+
|
|
|
+ await GeneralMethod.MessageIssueAndNotification(MessageTypeEnum.GroupBusinessOperations, title, content, userIds, diId);
|
|
|
}
|
|
|
catch (Exception ex)
|
|
|
{
|
|
@@ -7052,6 +7113,18 @@ FROM
|
|
|
int sign = groupData.Data.GetType().GetProperty("sign").GetValue(groupData.Data, null);
|
|
|
|
|
|
await AppNoticeLibrary.SendChatMsg_GroupStatus_ApplyFee(ccpId, sign, QiyeWeChatEnum.GuoJiaoLeaderChat);
|
|
|
+
|
|
|
+ //2024-10-21 新增LZ UID
|
|
|
+ var userIds = new List<int>() { 21 };
|
|
|
+ string title = $"系统通知";
|
|
|
+ string content = "";
|
|
|
+ var diId = dto.DiId;
|
|
|
+ var groupInfo = await _groupRepository.Query(x => x.Id == diId).FirstAsync();
|
|
|
+ var ccpInfo = await _sqlSugar.Queryable<Grp_CreditCardPayment>().Where(x => x.Id == ccpId).FirstAsync();
|
|
|
+ if (dto.Status == 1) content = $"[新增-签证费用录入({groupInfo?.TeamName ?? "-"})]一项费用:{(ccpInfo.PayMoney * ccpInfo.DayRate).ToString("#0.00")} CNY;";
|
|
|
+ else if (dto.Status == 2) content = $"[更新-签证费用录入({groupInfo?.TeamName ?? "-"})]一项费用:{(ccpInfo.PayMoney * ccpInfo.DayRate).ToString("#0.00")} CNY;";
|
|
|
+
|
|
|
+ await GeneralMethod.MessageIssueAndNotification(MessageTypeEnum.GroupBusinessOperations, title, content, userIds, diId);
|
|
|
}
|
|
|
catch (Exception ex)
|
|
|
{
|
|
@@ -7415,7 +7488,15 @@ FROM
|
|
|
|
|
|
await AppNoticeLibrary.SendChatMsg_GroupStatus_ApplyFee(ccpId, sign, QiyeWeChatEnum.GuoJiaoLeaderChat);
|
|
|
|
|
|
+ //2024-10-21 新增LZ UID
|
|
|
+ var userIds = new List<int>() { 21 };
|
|
|
+ string title = $"系统通知";
|
|
|
+ var diId = dto.DiId;
|
|
|
+ var groupInfo = await _groupRepository.Query(x => x.Id == diId).FirstAsync();
|
|
|
+ var ccpInfo = await _sqlSugar.Queryable<Grp_CreditCardPayment>().Where(x => x.Id == ccpId).FirstAsync();
|
|
|
+ string content = $"[更新-OP费用录入填写详情({groupInfo?.TeamName ?? "-"})]一项费用:{(((ccpInfo.PayMoney * ccpInfo.DayRate) / 100) * ccpInfo.PayPercentage).ToString("#0.00")} CNY;";
|
|
|
|
|
|
+ await GeneralMethod.MessageIssueAndNotification(MessageTypeEnum.GroupBusinessOperations, title, content, userIds, diId);
|
|
|
}
|
|
|
catch (Exception ex)
|
|
|
{
|
|
@@ -10949,6 +11030,20 @@ ORDER by gctggrc.id DESC
|
|
|
//if (autoAdit.Code != 200) _view.Msg += $"\r\n{autoAdit.Msg}";
|
|
|
|
|
|
_logger.LogInformation($"【酒店自动审核】【{DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")}】执行调用 调用结果:{JsonConvert.SerializeObject(autoAdit)}");
|
|
|
+
|
|
|
+
|
|
|
+ //2024-10-21 新增LZ UID
|
|
|
+ var userIds = new List<int>() { 21 };
|
|
|
+ string title = $"系统通知";
|
|
|
+ var diId = _dto.DiId;
|
|
|
+ var groupInfo = await _groupRepository.Query(x => x.Id == diId).FirstAsync();
|
|
|
+ var ccpInfo = await _sqlSugar.Queryable<Grp_CreditCardPayment>().Where(x => x.Id == ccpId).FirstAsync();
|
|
|
+ string content = "";
|
|
|
+ if (_dto.Id == 0) content = $"[新增-酒店费用录入({groupInfo?.TeamName ?? "-"})]一项费用:{(ccpInfo.PayMoney * ccpInfo.DayRate).ToString("#0.00")} CNY;";
|
|
|
+ else if (_dto.Id > 0) content = $"[更新-酒店费用录入({groupInfo?.TeamName ?? "-"})]一项费用:{(ccpInfo.PayMoney * ccpInfo.DayRate).ToString("#0.00")} CNY;";
|
|
|
+
|
|
|
+ await GeneralMethod.MessageIssueAndNotification(MessageTypeEnum.GroupBusinessOperations, title, content, userIds, diId);
|
|
|
+
|
|
|
}
|
|
|
catch (Exception ex)
|
|
|
{
|
|
@@ -12734,6 +12829,18 @@ ORDER by gctggrc.id DESC
|
|
|
int sign = groupData.Data.GetType().GetProperty("sign").GetValue(groupData.Data, null);
|
|
|
|
|
|
await AppNoticeLibrary.SendChatMsg_GroupStatus_ApplyFee(ccpId, sign, QiyeWeChatEnum.GuoJiaoLeaderChat);
|
|
|
+
|
|
|
+ //2024-10-21 新增LZ UID
|
|
|
+ var userIds = new List<int>() { 21 };
|
|
|
+ string title = $"系统通知";
|
|
|
+ var diId = dto.DiId;
|
|
|
+ var groupInfo = await _groupRepository.Query(x => x.Id == diId).FirstAsync();
|
|
|
+ var ccpInfo = await _sqlSugar.Queryable<Grp_CreditCardPayment>().Where(x => x.Id == ccpId).FirstAsync();
|
|
|
+ string content = "";
|
|
|
+ if (dto.Status == 1) content = $"[新增-保险费用录入({groupInfo?.TeamName ?? "-"})]一项费用:{(ccpInfo.PayMoney * ccpInfo.DayRate).ToString("#0.00")} CNY;";
|
|
|
+ else if (dto.Status == 2) content = $"[更新-保险费用录入({groupInfo?.TeamName ?? "-"})]一项费用:{(ccpInfo.PayMoney * ccpInfo.DayRate).ToString("#0.00")} CNY;";
|
|
|
+
|
|
|
+ await GeneralMethod.MessageIssueAndNotification(MessageTypeEnum.GroupBusinessOperations, title, content, userIds, diId);
|
|
|
}
|
|
|
catch (Exception ex)
|
|
|
{
|