|
@@ -5,6 +5,7 @@ using Aspose.Words.Drawing;
|
|
using Aspose.Words.Tables;
|
|
using Aspose.Words.Tables;
|
|
using EyeSoft.Collections.Generic;
|
|
using EyeSoft.Collections.Generic;
|
|
using EyeSoft.IO;
|
|
using EyeSoft.IO;
|
|
|
|
+using Google.Protobuf.WellKnownTypes;
|
|
using Microsoft.AspNetCore.SignalR;
|
|
using Microsoft.AspNetCore.SignalR;
|
|
using MySqlX.XDevAPI.Relational;
|
|
using MySqlX.XDevAPI.Relational;
|
|
using NetUV.Core.Handles;
|
|
using NetUV.Core.Handles;
|
|
@@ -32,6 +33,7 @@ using OASystem.Domain.Entities.Groups;
|
|
using OASystem.Domain.ViewModels;
|
|
using OASystem.Domain.ViewModels;
|
|
using OASystem.Domain.ViewModels.Groups;
|
|
using OASystem.Domain.ViewModels.Groups;
|
|
using OASystem.Domain.ViewModels.Statistics;
|
|
using OASystem.Domain.ViewModels.Statistics;
|
|
|
|
+using OASystem.Infrastructure.Repositories.CRM;
|
|
using OASystem.Infrastructure.Repositories.Financial;
|
|
using OASystem.Infrastructure.Repositories.Financial;
|
|
using OASystem.Infrastructure.Repositories.Groups;
|
|
using OASystem.Infrastructure.Repositories.Groups;
|
|
using OfficeOpenXml;
|
|
using OfficeOpenXml;
|
|
@@ -114,6 +116,7 @@ namespace OASystem.API.Controllers
|
|
private readonly OpinionaireRepository _opinionaireRep; //对外收款账单仓库
|
|
private readonly OpinionaireRepository _opinionaireRep; //对外收款账单仓库
|
|
private readonly List<CurrencyInfo> _currencyInit;
|
|
private readonly List<CurrencyInfo> _currencyInit;
|
|
private readonly List<int> _portTypeData;
|
|
private readonly List<int> _portTypeData;
|
|
|
|
+ private readonly TableOperationRecordRepository _tableorRep;
|
|
|
|
|
|
public GroupsController(
|
|
public GroupsController(
|
|
ILogger<GroupsController> logger,
|
|
ILogger<GroupsController> logger,
|
|
@@ -150,7 +153,8 @@ namespace OASystem.API.Controllers
|
|
FeeAuditRepository feeAuditRep,
|
|
FeeAuditRepository feeAuditRep,
|
|
VisaCommissionRepository visaCommissionRep,
|
|
VisaCommissionRepository visaCommissionRep,
|
|
ForeignReceivablesRepository ffrRep,
|
|
ForeignReceivablesRepository ffrRep,
|
|
- OpinionaireRepository opinionaireRep
|
|
|
|
|
|
+ OpinionaireRepository opinionaireRep,
|
|
|
|
+ TableOperationRecordRepository tableorRep
|
|
)
|
|
)
|
|
{
|
|
{
|
|
_logger = logger;
|
|
_logger = logger;
|
|
@@ -204,6 +208,7 @@ namespace OASystem.API.Controllers
|
|
new CurrencyInfo (){ CurrencyCode="HKD",CurrencyName = "港币",Rate = 0.9500M },
|
|
new CurrencyInfo (){ CurrencyCode="HKD",CurrencyName = "港币",Rate = 0.9500M },
|
|
};
|
|
};
|
|
_portTypeData = new List<int>() { 2, 3 };
|
|
_portTypeData = new List<int>() { 2, 3 };
|
|
|
|
+ _tableorRep = tableorRep;
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
@@ -11733,13 +11738,45 @@ ORDER by gctggrc.id DESC
|
|
int ccpId = (int)_view.Data.GetType().GetProperty("ccpId").GetValue(_view.Data, null);
|
|
int ccpId = (int)_view.Data.GetType().GetProperty("ccpId").GetValue(_view.Data, null);
|
|
int sign = (int)_view.Data.GetType().GetProperty("sign").GetValue(_view.Data, null);
|
|
int sign = (int)_view.Data.GetType().GetProperty("sign").GetValue(_view.Data, null);
|
|
int hotelId = (int)_view.Data.GetType().GetProperty("hotelId").GetValue(_view.Data, null);
|
|
int hotelId = (int)_view.Data.GetType().GetProperty("hotelId").GetValue(_view.Data, null);
|
|
|
|
+
|
|
|
|
+ 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();
|
|
|
|
+
|
|
|
|
+ #region 操作记录
|
|
|
|
+
|
|
|
|
+ var opInfo = new Crm_TableOperationRecord() {
|
|
|
|
+ TableName = "Grp_HotelReservations",
|
|
|
|
+ PortType = _dto.PortType,
|
|
|
|
+ DataId = hotelId,
|
|
|
|
+ CreateUserId = _dto.UserId
|
|
|
|
+ };
|
|
|
|
+ var opStatus = OperationEnum.NoOperation;
|
|
|
|
+ if (_dto.Id<1) //添加操作
|
|
|
|
+ {
|
|
|
|
+ opInfo.OperationItem = OperationEnum.Add;
|
|
|
|
+ }
|
|
|
|
+ else if (_dto.Id > 0)
|
|
|
|
+ {
|
|
|
|
+ opInfo.OperationItem = OperationEnum.Edit;
|
|
|
|
+ }
|
|
|
|
+ string opRemark = string.Empty;
|
|
|
|
+ if (ccpInfo != null)
|
|
|
|
+ {
|
|
|
|
+ // USD 1211.86、 CNY 8761.75、汇率:7.2300
|
|
|
|
+ var currency = _sqlSugar.Queryable<Sys_SetData>().Where(x => x.IsDel == 0 && x.Id == ccpInfo.PaymentCurrency).First()?.Name;
|
|
|
|
+ var cnyPrice = ccpInfo.PayMoney * ccpInfo.DayRate;
|
|
|
|
+ opRemark = $"{currency} {ccpInfo.PayMoney.ToString("#0.00")}、CNY {cnyPrice.ToString("#0.00")}、汇率:{ccpInfo.DayRate.ToString("#0.0000")}";
|
|
|
|
+ }
|
|
|
|
+ opInfo.Remark = opRemark;
|
|
|
|
+ await _tableorRep.AddAsync(opInfo);
|
|
|
|
+ #endregion
|
|
|
|
+
|
|
|
|
+
|
|
_logger.LogInformation($"【iOS推送通知Exception】Begin");
|
|
_logger.LogInformation($"【iOS推送通知Exception】Begin");
|
|
//2024-10-21 新增LZ UID
|
|
//2024-10-21 新增LZ UID
|
|
var userIds = new List<int>() { 21 };
|
|
var userIds = new List<int>() { 21 };
|
|
string title = $"费用审核";
|
|
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 = "";
|
|
string content = "";
|
|
if (_dto.Id == 0) content = $"[新增-酒店费用录入({groupInfo?.TeamName ?? "-"})]一项费用:{(ccpInfo.PayMoney * ccpInfo.DayRate).ToString("#0.00")} CNY;";
|
|
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;";
|
|
else if (_dto.Id > 0) content = $"[更新-酒店费用录入({groupInfo?.TeamName ?? "-"})]一项费用:{(ccpInfo.PayMoney * ccpInfo.DayRate).ToString("#0.00")} CNY;";
|