|
@@ -1,4 +1,5 @@
|
|
|
using Aspose.Cells;
|
|
|
+using Aspose.Cells.Charts;
|
|
|
using Aspose.Words;
|
|
|
using Aspose.Words.Drawing;
|
|
|
using Aspose.Words.Tables;
|
|
@@ -30,6 +31,7 @@ using OASystem.Domain.ViewModels.Statistics;
|
|
|
using OASystem.Infrastructure.Repositories.Financial;
|
|
|
using OASystem.Infrastructure.Repositories.Groups;
|
|
|
using OfficeOpenXml;
|
|
|
+using Org.BouncyCastle.Asn1.Ocsp;
|
|
|
using Quartz.Util;
|
|
|
using SqlSugar;
|
|
|
using SqlSugar.Extensions;
|
|
@@ -108,39 +110,39 @@ namespace OASystem.API.Controllers
|
|
|
private readonly OpinionaireRepository _opinionaireRep; //对外收款账单仓库
|
|
|
|
|
|
public GroupsController(
|
|
|
- ILogger<GroupsController> logger,
|
|
|
+ ILogger<GroupsController> logger,
|
|
|
IMapper mapper,
|
|
|
IHubContext<ChatHub, IChatClient> hubContext,
|
|
|
- SqlSugarClient sqlSugar,
|
|
|
- GrpScheduleRepository grpScheduleRep,
|
|
|
+ SqlSugarClient sqlSugar,
|
|
|
+ GrpScheduleRepository grpScheduleRep,
|
|
|
DelegationInfoRepository groupRepository,
|
|
|
- TaskAssignmentRepository taskAssignmentRep,
|
|
|
- AirTicketResRepository airTicketResRep,
|
|
|
+ TaskAssignmentRepository taskAssignmentRep,
|
|
|
+ AirTicketResRepository airTicketResRep,
|
|
|
DecreasePaymentsRepository decreasePaymentsRep,
|
|
|
- InvitationOfficialActivitiesRepository InvitationOfficialActivitiesRep,
|
|
|
- DelegationEnDataRepository delegationEnDataRep,
|
|
|
- EnterExitCostRepository enterExitCostRep,
|
|
|
+ InvitationOfficialActivitiesRepository InvitationOfficialActivitiesRep,
|
|
|
+ DelegationEnDataRepository delegationEnDataRep,
|
|
|
+ EnterExitCostRepository enterExitCostRep,
|
|
|
DelegationVisaRepository delegationVisaRep,
|
|
|
- MessageRepository message,
|
|
|
- VisaPriceRepository visaPriceRep,
|
|
|
+ MessageRepository message,
|
|
|
+ VisaPriceRepository visaPriceRep,
|
|
|
CarTouristGuideGroundRepository carTouristGuideGroundRep,
|
|
|
- CheckBoxsRepository checkBoxs,
|
|
|
- GroupCostRepository GroupCostRepository,
|
|
|
+ CheckBoxsRepository checkBoxs,
|
|
|
+ GroupCostRepository GroupCostRepository,
|
|
|
CostTypeHotelNumberRepository CostTypeHotelNumberRepository,
|
|
|
GroupCostParameterRepository GroupCostParameterRepository,
|
|
|
- HotelPriceRepository hotelPriceRep,
|
|
|
- CustomersRepository customersRep,
|
|
|
+ HotelPriceRepository hotelPriceRep,
|
|
|
+ CustomersRepository customersRep,
|
|
|
SetDataRepository setDataRep,
|
|
|
- TourClientListRepository tourClientListRep,
|
|
|
+ TourClientListRepository tourClientListRep,
|
|
|
TeamRateRepository teamRateRep,
|
|
|
UsersRepository usersRep, IJuHeApiService juHeApi,
|
|
|
- InvertedListRepository invertedListRep,
|
|
|
- VisaFeeInfoRepository visaFeeInfoRep,
|
|
|
- TicketBlackCodeRepository ticketBlackCodeRep,
|
|
|
+ InvertedListRepository invertedListRep,
|
|
|
+ VisaFeeInfoRepository visaFeeInfoRep,
|
|
|
+ TicketBlackCodeRepository ticketBlackCodeRep,
|
|
|
HotelInquiryRepository hotelInquiryRep,
|
|
|
- ThreeCodeRepository threeCodeRepository,
|
|
|
- FeeAuditRepository feeAuditRep,
|
|
|
- VisaCommissionRepository visaCommissionRep,
|
|
|
+ ThreeCodeRepository threeCodeRepository,
|
|
|
+ FeeAuditRepository feeAuditRep,
|
|
|
+ VisaCommissionRepository visaCommissionRep,
|
|
|
ForeignReceivablesRepository ffrRep,
|
|
|
OpinionaireRepository opinionaireRep
|
|
|
)
|
|
@@ -820,7 +822,7 @@ namespace OASystem.API.Controllers
|
|
|
await GeneralMethod.PostGroupAuthAddInit(dto.UserId, diId);
|
|
|
|
|
|
//消息提示 王鸽 主管号 2024-10-21 新增LZ UID
|
|
|
- List<int> _managerIds = new List<int>() { 21,22, 32 };
|
|
|
+ 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)
|
|
|
{
|
|
@@ -1881,7 +1883,7 @@ FROM
|
|
|
entity.PayMoney = czInfo.Price * czInfo.PriceCount;
|
|
|
entity.RMBPrice = czInfo.Price * czInfo.PriceCount * entity.DayRate;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
}
|
|
|
|
|
|
/*
|
|
@@ -2738,47 +2740,41 @@ FROM
|
|
|
[ProducesResponseType(typeof(JsonView), StatusCodes.Status200OK)]
|
|
|
public async Task<IActionResult> OpAirTicketRes(AirTicketResOpDto dto)
|
|
|
{
|
|
|
- try
|
|
|
+ Result groupData = await _airTicketResRep.OpAirTicketRes(dto, _setDataRep.PostCurrencyByDiid);
|
|
|
+ if (groupData.Code != 0)
|
|
|
{
|
|
|
- Result groupData = await _airTicketResRep.OpAirTicketRes(dto, _setDataRep.PostCurrencyByDiid);
|
|
|
- if (groupData.Code != 0)
|
|
|
- {
|
|
|
- return Ok(JsonView(false, groupData.Msg));
|
|
|
- }
|
|
|
+ return Ok(JsonView(false, groupData.Msg));
|
|
|
+ }
|
|
|
|
|
|
- #region 应用推送
|
|
|
- try
|
|
|
- {
|
|
|
- int ccpId = groupData.Data.GetType().GetProperty("ccpId").GetValue(groupData.Data, null);
|
|
|
- int sign = groupData.Data.GetType().GetProperty("sign").GetValue(groupData.Data, null);
|
|
|
+ #region 应用推送
|
|
|
+ try
|
|
|
+ {
|
|
|
+ int ccpId = groupData.Data.GetType().GetProperty("ccpId").GetValue(groupData.Data, null);
|
|
|
+ int sign = groupData.Data.GetType().GetProperty("sign").GetValue(groupData.Data, null);
|
|
|
|
|
|
- await AppNoticeLibrary.SendChatMsg_GroupStatus_ApplyFee(ccpId, sign, QiyeWeChatEnum.GuoJiaoLeaderChat);
|
|
|
+ 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;";
|
|
|
+ //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);
|
|
|
+ await GeneralMethod.MessageIssueAndNotification(MessageTypeEnum.GroupBusinessOperations, title, content, userIds, diId);
|
|
|
|
|
|
- }
|
|
|
- catch (Exception ex)
|
|
|
- {
|
|
|
- }
|
|
|
- #endregion
|
|
|
+ await GeneralMethod.iOS_PushNotifications("051", $"机票费用审核", "", content);
|
|
|
|
|
|
- return Ok(JsonView(true, groupData.Msg, groupData.Data));
|
|
|
}
|
|
|
catch (Exception ex)
|
|
|
{
|
|
|
- return Ok(JsonView(false, "程序错误!"));
|
|
|
- throw;
|
|
|
}
|
|
|
+ #endregion
|
|
|
+
|
|
|
+ return Ok(JsonView(true, groupData.Msg, groupData.Data));
|
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
@@ -3662,6 +3658,10 @@ FROM
|
|
|
|
|
|
await GeneralMethod.MessageIssueAndNotification(MessageTypeEnum.GroupBusinessOperations, title, content, userIds, diId);
|
|
|
|
|
|
+ await GeneralMethod.iOS_PushNotifications("051", $"其他款项费用审核", "", content);
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
#endregion
|
|
|
|
|
|
return Ok(JsonView(true, groupData.Msg, groupData.Data));
|
|
@@ -3806,7 +3806,7 @@ FROM
|
|
|
foreach (DataRow item in dt.Rows)
|
|
|
{
|
|
|
var otaOrderNo = item["OTAOrderNo"].ToString();
|
|
|
- var oaData = oaDatas.Find(x => !string.IsNullOrEmpty(x.OTAOrderNo) && x.OTAOrderNo.Contains(otaOrderNo));
|
|
|
+ var oaData = oaDatas.Find(x => !string.IsNullOrEmpty(x.OTAOrderNo) && x.OTAOrderNo.Contains(otaOrderNo));
|
|
|
if (oaData == null) continue;
|
|
|
|
|
|
item["GroupName"] = oaData.TeamName;
|
|
@@ -3999,7 +3999,7 @@ FROM
|
|
|
catch (Exception)
|
|
|
{
|
|
|
|
|
|
- files = new List<string>() { info.Attachment }.ToArray();
|
|
|
+ files = new List<string>() { info.Attachment }.ToArray();
|
|
|
}
|
|
|
}
|
|
|
if (files.Length > 0)
|
|
@@ -4009,7 +4009,7 @@ FROM
|
|
|
string filePath2 = string.Empty;
|
|
|
if (files1.Length > 0)
|
|
|
{
|
|
|
- filePath2 = JsonConvert.SerializeObject( files1);
|
|
|
+ filePath2 = JsonConvert.SerializeObject(files1);
|
|
|
}
|
|
|
|
|
|
id = await _sqlSugar.Updateable<Grp_InvitationOfficialActivities>()
|
|
@@ -4018,16 +4018,16 @@ FROM
|
|
|
.ExecuteCommandAsync();
|
|
|
}
|
|
|
}
|
|
|
- }
|
|
|
+ }
|
|
|
if (id != 0)
|
|
|
- {
|
|
|
- return Ok(JsonView(true, "成功!"));
|
|
|
- }
|
|
|
- else
|
|
|
- {
|
|
|
- return Ok(JsonView(false, "失败!"));
|
|
|
+ {
|
|
|
+ return Ok(JsonView(true, "成功!"));
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ return Ok(JsonView(false, "失败!"));
|
|
|
+ }
|
|
|
}
|
|
|
- }
|
|
|
catch (Exception ex)
|
|
|
{
|
|
|
return Ok(JsonView(false, "程序错误!"));
|
|
@@ -4175,7 +4175,7 @@ FROM
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- return Ok(JsonView(new {url = @$"{AppSettingsHelper.Get("OfficeBaseUrl")}{AppSettingsHelper.Get("GrpFileFtpPath")}/商邀相关文件/{zipFilePathGuid}" }));
|
|
|
+ return Ok(JsonView(new { url = @$"{AppSettingsHelper.Get("OfficeBaseUrl")}{AppSettingsHelper.Get("GrpFileFtpPath")}/商邀相关文件/{zipFilePathGuid}" }));
|
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
@@ -4262,6 +4262,8 @@ FROM
|
|
|
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);
|
|
|
+
|
|
|
+ await GeneralMethod.iOS_PushNotifications("051", $"商邀费用审核", "", content);
|
|
|
}
|
|
|
catch (Exception ex)
|
|
|
{
|
|
@@ -5231,7 +5233,7 @@ FROM
|
|
|
string url = string.Format("http://oa.pan-american-intl.com:4399/#/Sankunginfo?sign={0}&fileName={1}", sign, fileUrl);
|
|
|
await AppNoticeLibrary.SendUserMsg_GroupShare_ToGM(dto.DiId, new List<string>() { "208", "233", "21" }, dto.UserId, url);
|
|
|
//汇率信息记录
|
|
|
- await GeneralMethod.RateRecordSave(dto.UserId,sign,"出入境费用");
|
|
|
+ await GeneralMethod.RateRecordSave(dto.UserId, sign, "出入境费用");
|
|
|
|
|
|
return Ok(JsonView(true, data.Msg, data.Data));
|
|
|
}
|
|
@@ -5300,7 +5302,7 @@ FROM
|
|
|
var _DayAndCosts = _sqlSugar.Queryable<Grp_DayAndCost>().Where(it => it.IsDel == 0 && it.DiId == dto.DiId).ToList();
|
|
|
if (_EnterExitCosts == null)
|
|
|
{
|
|
|
- return Ok(JsonView(400, "该团组未填写出入境费用;",""));
|
|
|
+ return Ok(JsonView(400, "该团组未填写出入境费用;", ""));
|
|
|
}
|
|
|
|
|
|
//数据源
|
|
@@ -5673,7 +5675,7 @@ FROM
|
|
|
string url = AppSettingsHelper.Get("WordBaseUrl") + "Office/Word/EnterExitCost/File/" + strFileName;
|
|
|
|
|
|
if (dto.PortType == 1 || dto.PortType == 3) return Ok(JsonView(true, "成功", new { Url = url }));
|
|
|
- else if (dto.PortType == 2 ) return Ok(JsonView(true, "成功", url));
|
|
|
+ else if (dto.PortType == 2) return Ok(JsonView(true, "成功", url));
|
|
|
}
|
|
|
else if (dto.SubTypeId == 1006)//1006(因公出国(境)经费测算明细表)
|
|
|
{
|
|
@@ -5897,7 +5899,7 @@ FROM
|
|
|
string url = AppSettingsHelper.Get("WordBaseUrl") + "Office/Word/EnterExitCost/File/" + strFileName;
|
|
|
|
|
|
if (dto.PortType == 1 || dto.PortType == 3) return Ok(JsonView(true, "成功", new { Url = url }));
|
|
|
- else if (dto.PortType == 2 ) return Ok(JsonView(true, "成功", url));
|
|
|
+ else if (dto.PortType == 2) return Ok(JsonView(true, "成功", url));
|
|
|
}
|
|
|
else if (dto.SubTypeId == 1007) //1007(四川省商务厅出国经费财政先行审核表)
|
|
|
{
|
|
@@ -6578,7 +6580,7 @@ FROM
|
|
|
{
|
|
|
if (DeleClientList.Count < 1)
|
|
|
{
|
|
|
- return Ok(JsonView(false, "团组成员暂未录入!!!",""));
|
|
|
+ return Ok(JsonView(false, "团组成员暂未录入!!!", ""));
|
|
|
}
|
|
|
|
|
|
//获取模板
|
|
@@ -7138,7 +7140,9 @@ FROM
|
|
|
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);
|
|
|
+ await GeneralMethod.MessageIssueAndNotification(MessageTypeEnum.GroupBusinessOperations, title, content, userIds, diId);
|
|
|
+
|
|
|
+ await GeneralMethod.iOS_PushNotifications("051", $"签证费用审核", "", content);
|
|
|
}
|
|
|
catch (Exception ex)
|
|
|
{
|
|
@@ -7511,6 +7515,7 @@ FROM
|
|
|
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);
|
|
|
+ await GeneralMethod.iOS_PushNotifications("051", "OP费用审核", "", content);
|
|
|
}
|
|
|
catch (Exception ex)
|
|
|
{
|
|
@@ -10994,6 +10999,9 @@ ORDER by gctggrc.id DESC
|
|
|
[ProducesResponseType(typeof(JsonView), StatusCodes.Status200OK)]
|
|
|
public async Task<IActionResult> PostHotelReservationsAddOrEdit(HotelReservationsAddOrEditDto _dto)
|
|
|
{
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
#region 参数验证
|
|
|
if (_dto.UserId < 1) return Ok(JsonView(false, "员工Id为空"));
|
|
|
if (_dto.PageId < 1) _dto.PageId = 28; //酒店预定Id
|
|
@@ -11032,6 +11040,35 @@ ORDER by gctggrc.id DESC
|
|
|
|
|
|
#region 应用推送
|
|
|
|
|
|
+ try
|
|
|
+ {
|
|
|
+
|
|
|
+ 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 hotelId = (int)_view.Data.GetType().GetProperty("hotelId").GetValue(_view.Data, null);
|
|
|
+ _logger.LogInformation($"【iOS推送通知Exception】Begin");
|
|
|
+ //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;";
|
|
|
+
|
|
|
+ Logs($"【iOS推送通知Exception】Start");
|
|
|
+ await GeneralMethod.iOS_PushNotifications("051", title, "", content);
|
|
|
+ Logs($"【iOS推送通知Exception】End ");
|
|
|
+
|
|
|
+ }
|
|
|
+ catch (Exception ex)
|
|
|
+ {
|
|
|
+ _logger.LogInformation($"【iOS推送通知Exception】【{ex.Message}】");
|
|
|
+ Log.Error($"【iOS推送通知Exception】【{ex.Message}】");
|
|
|
+ Logs($"【iOS推送通知Exception】【{ex.Message}】");
|
|
|
+ }
|
|
|
+
|
|
|
try
|
|
|
{
|
|
|
int ccpId = (int)_view.Data.GetType().GetProperty("ccpId").GetValue(_view.Data, null);
|
|
@@ -11057,6 +11094,7 @@ ORDER by gctggrc.id DESC
|
|
|
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);
|
|
|
+ //await GeneralMethod.iOS_PushNotifications("051", "费用审核", "", content);
|
|
|
|
|
|
}
|
|
|
catch (Exception ex)
|
|
@@ -12264,7 +12302,7 @@ ORDER by gctggrc.id DESC
|
|
|
if (hrDtas.Count < 1) return Ok(JsonView(StatusCodes.Status400BadRequest, "酒店预订费用未录入,不支持预定成本Excel导出", ""));
|
|
|
var hotelSubData = _sqlSugar.Queryable<Grp_HotelReservationsContent>().Where(it => it.IsDel == 0 && it.DiId == _dto.DiId).ToList();
|
|
|
var ccpData = _sqlSugar.Queryable<Grp_CreditCardPayment>().Where(it => it.IsDel == 0 && it.DIId == _dto.DiId && it.CTable == 76).ToList();
|
|
|
-
|
|
|
+
|
|
|
var _GroupCostParameter = _sqlSugar.Queryable<Grp_GroupCostParameter>().Where(it => it.IsDel == 0 && it.DiId == _dto.DiId).First();
|
|
|
//if (_GroupCostParameter == null) return Ok(JsonView(StatusCodes.Status400BadRequest, "团组成本费用未录入,不支持预定成本Excel导出", ""));
|
|
|
if (_GroupCostParameter == null)
|
|
@@ -12474,7 +12512,7 @@ ORDER by gctggrc.id DESC
|
|
|
var userInfo = _sqlSugar.Queryable<Sys_Users>().Where(it => it.Id == hrDtas[0].CreateUserId).First();
|
|
|
designer.SetDataSource("TourNo", groupInfo.TourCode);
|
|
|
|
|
|
- var rateDatas1 = rateDatas.Distinct();
|
|
|
+ var rateDatas1 = rateDatas.Distinct();
|
|
|
var rateStr = string.Empty;
|
|
|
foreach (var item in rateDatas1)
|
|
|
{
|
|
@@ -13151,6 +13189,7 @@ ORDER by gctggrc.id DESC
|
|
|
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);
|
|
|
+ await GeneralMethod.iOS_PushNotifications("051", $"保险费用审核", "", content);
|
|
|
}
|
|
|
catch (Exception ex)
|
|
|
{
|
|
@@ -15943,7 +15982,7 @@ And (UnitName != '' Or UnitName != null) {sqlWhere}");
|
|
|
[ProducesResponseType(typeof(JsonView), StatusCodes.Status200OK)]
|
|
|
public async Task<IActionResult> OpinionaireManageList(int groupId)
|
|
|
{
|
|
|
- if (groupId < 1) Ok(JsonView(false,"请传入有效的diId"));
|
|
|
+ if (groupId < 1) Ok(JsonView(false, "请传入有效的diId"));
|
|
|
|
|
|
var data = await _opinionaireRep.Query(x => x.DiId == groupId)
|
|
|
.Select(x => new
|
|
@@ -15997,7 +16036,7 @@ And (UnitName != '' Or UnitName != null) {sqlWhere}");
|
|
|
var upd = await _opinionaireRep._sqlSugar
|
|
|
.Updateable(updData)
|
|
|
.UpdateColumns(x => new { x.CityName, x.TourGuideName })
|
|
|
- .WhereColumns(x =>new{ x.Id})
|
|
|
+ .WhereColumns(x => new { x.Id })
|
|
|
.ExecuteCommandAsync();
|
|
|
}
|
|
|
_opinionaireRep.CommitTran();
|