|
@@ -4,8 +4,10 @@ using Aspose.Words.Drawing;
|
|
|
using Aspose.Words.Tables;
|
|
using Aspose.Words.Tables;
|
|
|
using DiffMatchPatch;
|
|
using DiffMatchPatch;
|
|
|
using Dm.util;
|
|
using Dm.util;
|
|
|
|
|
+using Humanizer;
|
|
|
using iTextSharp.text.pdf;
|
|
using iTextSharp.text.pdf;
|
|
|
using Microsoft.AspNetCore.SignalR;
|
|
using Microsoft.AspNetCore.SignalR;
|
|
|
|
|
+using NPOI.SS.Formula.Functions;
|
|
|
using NPOI.SS.UserModel;
|
|
using NPOI.SS.UserModel;
|
|
|
using NPOI.SS.Util;
|
|
using NPOI.SS.Util;
|
|
|
using NPOI.XSSF.UserModel;
|
|
using NPOI.XSSF.UserModel;
|
|
@@ -31,6 +33,7 @@ using OASystem.Domain.Entities.Financial;
|
|
|
using OASystem.Domain.Entities.Groups;
|
|
using OASystem.Domain.Entities.Groups;
|
|
|
using OASystem.Domain.ViewModels.Financial;
|
|
using OASystem.Domain.ViewModels.Financial;
|
|
|
using OASystem.Domain.ViewModels.Groups;
|
|
using OASystem.Domain.ViewModels.Groups;
|
|
|
|
|
+using OASystem.Domain.ViewModels.JuHeExchangeRate;
|
|
|
using OASystem.Domain.ViewModels.OCR;
|
|
using OASystem.Domain.ViewModels.OCR;
|
|
|
using OASystem.Infrastructure.Logging;
|
|
using OASystem.Infrastructure.Logging;
|
|
|
using OASystem.Infrastructure.Repositories.CRM;
|
|
using OASystem.Infrastructure.Repositories.CRM;
|
|
@@ -8166,6 +8169,10 @@ FROM
|
|
|
[ProducesResponseType(typeof(JsonView), StatusCodes.Status200OK)]
|
|
[ProducesResponseType(typeof(JsonView), StatusCodes.Status200OK)]
|
|
|
public async Task<IActionResult> OpAirTicketRes(AirTicketResOpDto dto)
|
|
public async Task<IActionResult> OpAirTicketRes(AirTicketResOpDto dto)
|
|
|
{
|
|
{
|
|
|
|
|
+ //验证
|
|
|
|
|
+ (bool vaild, string msg) = await GeneralMethod.FeeOpVaild(dto.AirTicketResOpData.Id, 85);
|
|
|
|
|
+ if (vaild) return Ok(JsonView(false, msg));
|
|
|
|
|
+
|
|
|
Result groupData = await _airTicketResRep.OpAirTicketRes(dto, _setDataRep.PostCurrencyByDiid);
|
|
Result groupData = await _airTicketResRep.OpAirTicketRes(dto, _setDataRep.PostCurrencyByDiid);
|
|
|
if (groupData.Code != 0)
|
|
if (groupData.Code != 0)
|
|
|
{
|
|
{
|
|
@@ -8505,6 +8512,10 @@ FROM
|
|
|
{
|
|
{
|
|
|
try
|
|
try
|
|
|
{
|
|
{
|
|
|
|
|
+ //验证
|
|
|
|
|
+ (bool vaild, string msg) = await GeneralMethod.FeeOpVaild(dto.Id, 85);
|
|
|
|
|
+ if (vaild) return Ok(JsonView(false, msg));
|
|
|
|
|
+
|
|
|
var res = await _airTicketResRep.SoftDeleteByIdAsync<Grp_AirTicketReservations>(dto.Id.ToString(), dto.DeleteUserId);
|
|
var res = await _airTicketResRep.SoftDeleteByIdAsync<Grp_AirTicketReservations>(dto.Id.ToString(), dto.DeleteUserId);
|
|
|
if (res)
|
|
if (res)
|
|
|
{
|
|
{
|
|
@@ -8521,7 +8532,6 @@ FROM
|
|
|
catch (Exception ex)
|
|
catch (Exception ex)
|
|
|
{
|
|
{
|
|
|
return Ok(JsonView(false, "程序错误!"));
|
|
return Ok(JsonView(false, "程序错误!"));
|
|
|
- throw;
|
|
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -9747,7 +9757,6 @@ FROM
|
|
|
return Ok(JsonView(true, groupData.Msg, groupData.Data));
|
|
return Ok(JsonView(true, groupData.Msg, groupData.Data));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-
|
|
|
|
|
/// <summary>
|
|
/// <summary>
|
|
|
/// 商邀费用列表
|
|
/// 商邀费用列表
|
|
|
/// 下载文件
|
|
/// 下载文件
|
|
@@ -9865,6 +9874,10 @@ FROM
|
|
|
[ProducesResponseType(typeof(JsonView), StatusCodes.Status200OK)]
|
|
[ProducesResponseType(typeof(JsonView), StatusCodes.Status200OK)]
|
|
|
public async Task<IActionResult> OpInvitationOfficialActivities(OpInvitationOfficialActivitiesDto dto)
|
|
public async Task<IActionResult> OpInvitationOfficialActivities(OpInvitationOfficialActivitiesDto dto)
|
|
|
{
|
|
{
|
|
|
|
|
+ //验证
|
|
|
|
|
+ (bool vaild, string msg) = await GeneralMethod.FeeOpVaild(dto.Id, 81);
|
|
|
|
|
+ if (vaild) return Ok(JsonView(false, msg));
|
|
|
|
|
+
|
|
|
Result groupData = await _InvitationOfficialActivitiesRep.OpInvitationOfficialActivities(dto, _setDataRep.PostCurrencyByDiid);
|
|
Result groupData = await _InvitationOfficialActivitiesRep.OpInvitationOfficialActivities(dto, _setDataRep.PostCurrencyByDiid);
|
|
|
if (groupData.Code != 0)
|
|
if (groupData.Code != 0)
|
|
|
{
|
|
{
|
|
@@ -9912,7 +9925,12 @@ FROM
|
|
|
{
|
|
{
|
|
|
try
|
|
try
|
|
|
{
|
|
{
|
|
|
|
|
+ //验证
|
|
|
|
|
+ (bool vaild, string msg) = await GeneralMethod.FeeOpVaild(dto.Id, 81);
|
|
|
|
|
+ if (vaild) return Ok(JsonView(false, msg));
|
|
|
|
|
+
|
|
|
_sqlSugar.BeginTran();
|
|
_sqlSugar.BeginTran();
|
|
|
|
|
+
|
|
|
var res1 = _sqlSugar.Updateable<Grp_InvitationOfficialActivities>()
|
|
var res1 = _sqlSugar.Updateable<Grp_InvitationOfficialActivities>()
|
|
|
.SetColumns(it => new Grp_InvitationOfficialActivities()
|
|
.SetColumns(it => new Grp_InvitationOfficialActivities()
|
|
|
{
|
|
{
|
|
@@ -19928,6 +19946,14 @@ FROM
|
|
|
{
|
|
{
|
|
|
_sqlSugar.BeginTran();
|
|
_sqlSugar.BeginTran();
|
|
|
|
|
|
|
|
|
|
+ //验证
|
|
|
|
|
+ (bool vaild, string msg) = await GeneralMethod.FeeOpVaild(dto.Id, 80);
|
|
|
|
|
+ if (vaild)
|
|
|
|
|
+ {
|
|
|
|
|
+ _sqlSugar.RollbackTran();
|
|
|
|
|
+ return Ok(JsonView(false, msg));
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
var res = await _visaPriceRep.SoftDeleteByIdAsync<Grp_VisaInfo>(dto.Id.ToString(), dto.DeleteUserId);
|
|
var res = await _visaPriceRep.SoftDeleteByIdAsync<Grp_VisaInfo>(dto.Id.ToString(), dto.DeleteUserId);
|
|
|
|
|
|
|
|
if (!res)
|
|
if (!res)
|
|
@@ -20018,6 +20044,10 @@ end as 'country'
|
|
|
[ProducesResponseType(typeof(JsonView), StatusCodes.Status200OK)]
|
|
[ProducesResponseType(typeof(JsonView), StatusCodes.Status200OK)]
|
|
|
public async Task<IActionResult> OpVisaPrice(OpVisaPriceDto dto)
|
|
public async Task<IActionResult> OpVisaPrice(OpVisaPriceDto dto)
|
|
|
{
|
|
{
|
|
|
|
|
+ //验证
|
|
|
|
|
+ (bool vaild, string msg) = await GeneralMethod.FeeOpVaild(dto.Id, 80);
|
|
|
|
|
+ if (vaild) return Ok(JsonView(false, msg));
|
|
|
|
|
+
|
|
|
Result groupData = await _visaPriceRep.OpVisaPrice(dto);
|
|
Result groupData = await _visaPriceRep.OpVisaPrice(dto);
|
|
|
if (groupData.Code != 0)
|
|
if (groupData.Code != 0)
|
|
|
{
|
|
{
|
|
@@ -20252,9 +20282,18 @@ end as 'country'
|
|
|
{
|
|
{
|
|
|
_sqlSugar.BeginTran();
|
|
_sqlSugar.BeginTran();
|
|
|
|
|
|
|
|
|
|
+ //验证
|
|
|
|
|
+ (bool vaild, string msg) = await GeneralMethod.FeeOpVaild(dto.Id, 79);
|
|
|
|
|
+ if (vaild)
|
|
|
|
|
+ {
|
|
|
|
|
+ _sqlSugar.RollbackTran();
|
|
|
|
|
+ return Ok(JsonView(false, msg));
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
var res = await _carTouristGuideGroundRep.SoftDeleteByIdAsync<Grp_CarTouristGuideGroundReservations>(dto.Id.ToString(), dto.DeleteUserId);
|
|
var res = await _carTouristGuideGroundRep.SoftDeleteByIdAsync<Grp_CarTouristGuideGroundReservations>(dto.Id.ToString(), dto.DeleteUserId);
|
|
|
if (!res)
|
|
if (!res)
|
|
|
{
|
|
{
|
|
|
|
|
+ _sqlSugar.RollbackTran();
|
|
|
return Ok(JsonView(false, "删除失败"));
|
|
return Ok(JsonView(false, "删除失败"));
|
|
|
}
|
|
}
|
|
|
var result = await _sqlSugar.Updateable<Grp_CarTouristGuideGroundReservationsContent>().Where(a => a.CTGGRId == dto.Id && a.IsDel == 0).SetColumns(a => new Grp_CarTouristGuideGroundReservationsContent()
|
|
var result = await _sqlSugar.Updateable<Grp_CarTouristGuideGroundReservationsContent>().Where(a => a.CTGGRId == dto.Id && a.IsDel == 0).SetColumns(a => new Grp_CarTouristGuideGroundReservationsContent()
|
|
@@ -20302,7 +20341,6 @@ end as 'country'
|
|
|
}
|
|
}
|
|
|
catch (Exception ex)
|
|
catch (Exception ex)
|
|
|
{
|
|
{
|
|
|
-
|
|
|
|
|
_sqlSugar.RollbackTran();
|
|
_sqlSugar.RollbackTran();
|
|
|
return Ok(JsonView(false, "程序错误!" + ex.Message));
|
|
return Ok(JsonView(false, "程序错误!" + ex.Message));
|
|
|
}
|
|
}
|
|
@@ -20390,6 +20428,14 @@ end as 'country'
|
|
|
if (di == null) return Ok(JsonView(false, "团组错误!"));
|
|
if (di == null) return Ok(JsonView(false, "团组错误!"));
|
|
|
#endregion
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
+ //验证
|
|
|
|
|
+ (bool vaild, string msg) = await GeneralMethod.FeeOpVaild(dto.CTGGRId, 79);
|
|
|
|
|
+ if (vaild)
|
|
|
|
|
+ {
|
|
|
|
|
+ _sqlSugar.RollbackTran();
|
|
|
|
|
+ return Ok(JsonView(false, msg));
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
Result groupData = await _carTouristGuideGroundRep.OpCarTouristGuideGroundContent(dto);
|
|
Result groupData = await _carTouristGuideGroundRep.OpCarTouristGuideGroundContent(dto);
|
|
|
if (groupData.Code != 0)
|
|
if (groupData.Code != 0)
|
|
|
{
|
|
{
|
|
@@ -20446,7 +20492,6 @@ end as 'country'
|
|
|
}
|
|
}
|
|
|
#endregion
|
|
#endregion
|
|
|
|
|
|
|
|
-
|
|
|
|
|
#region 应用推送
|
|
#region 应用推送
|
|
|
try
|
|
try
|
|
|
{
|
|
{
|
|
@@ -25541,6 +25586,10 @@ AirHotelPrice
|
|
|
|
|
|
|
|
#endregion
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
+ //验证
|
|
|
|
|
+ (bool vaild, string msg) = await GeneralMethod.FeeOpVaild(_dto.Id, 76);
|
|
|
|
|
+ if (vaild) return Ok(JsonView(false, msg));
|
|
|
|
|
+
|
|
|
JsonView _view = await _hotelPriceRep.AddOrEdit(_dto);
|
|
JsonView _view = await _hotelPriceRep.AddOrEdit(_dto);
|
|
|
if (_view.Code != 200)
|
|
if (_view.Code != 200)
|
|
|
{
|
|
{
|
|
@@ -25782,6 +25831,10 @@ AirHotelPrice
|
|
|
|
|
|
|
|
#endregion
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
+ //验证
|
|
|
|
|
+ (bool vaild, string msg) = await GeneralMethod.FeeOpVaild(_dto.Id, 76);
|
|
|
|
|
+ if (vaild) return Ok(JsonView(false, msg));
|
|
|
|
|
+
|
|
|
var data = await _hotelPriceRep.Del(_dto.Id, _dto.UserId);
|
|
var data = await _hotelPriceRep.Del(_dto.Id, _dto.UserId);
|
|
|
|
|
|
|
|
#region 操作记录
|
|
#region 操作记录
|
|
@@ -26226,7 +26279,6 @@ AirHotelPrice
|
|
|
return Ok(JsonView(true, "操作成功!", Url));
|
|
return Ok(JsonView(true, "操作成功!", Url));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-
|
|
|
|
|
/// <summary>
|
|
/// <summary>
|
|
|
/// 酒店预订
|
|
/// 酒店预订
|
|
|
/// 生成VOUCHER 批量生成
|
|
/// 生成VOUCHER 批量生成
|
|
@@ -26885,7 +26937,6 @@ AirHotelPrice
|
|
|
return Ok(JsonView(true, "操作成功!", Url));
|
|
return Ok(JsonView(true, "操作成功!", Url));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-
|
|
|
|
|
/// <summary>
|
|
/// <summary>
|
|
|
/// 酒店预订
|
|
/// 酒店预订
|
|
|
/// 生成 预定成本 Excel
|
|
/// 生成 预定成本 Excel
|
|
@@ -27791,6 +27842,10 @@ AirHotelPrice
|
|
|
[ProducesResponseType(typeof(JsonView), StatusCodes.Status200OK)]
|
|
[ProducesResponseType(typeof(JsonView), StatusCodes.Status200OK)]
|
|
|
public async Task<IActionResult> OpCustomers(OpCustomersDto dto)
|
|
public async Task<IActionResult> OpCustomers(OpCustomersDto dto)
|
|
|
{
|
|
{
|
|
|
|
|
+ //验证
|
|
|
|
|
+ (bool vaild, string msg) = await GeneralMethod.FeeOpVaild(dto.Id, 82);
|
|
|
|
|
+ if (vaild) return Ok(JsonView(false, msg));
|
|
|
|
|
+
|
|
|
Result groupData = await _customersRep.OpCustomers(dto);
|
|
Result groupData = await _customersRep.OpCustomers(dto);
|
|
|
if (groupData.Code != 0)
|
|
if (groupData.Code != 0)
|
|
|
{
|
|
{
|
|
@@ -27949,6 +28004,10 @@ AirHotelPrice
|
|
|
{
|
|
{
|
|
|
try
|
|
try
|
|
|
{
|
|
{
|
|
|
|
|
+ //验证
|
|
|
|
|
+ (bool vaild, string msg) = await GeneralMethod.FeeOpVaild(dto.Id, 82);
|
|
|
|
|
+ if (vaild) return Ok(JsonView(false, msg));
|
|
|
|
|
+
|
|
|
var res = await _customersRep.SoftDeleteByIdAsync<Grp_Customers>(dto.Id.ToString(), dto.DeleteUserId);
|
|
var res = await _customersRep.SoftDeleteByIdAsync<Grp_Customers>(dto.Id.ToString(), dto.DeleteUserId);
|
|
|
if (!res)
|
|
if (!res)
|
|
|
{
|
|
{
|
|
@@ -27965,7 +28024,6 @@ AirHotelPrice
|
|
|
catch (Exception ex)
|
|
catch (Exception ex)
|
|
|
{
|
|
{
|
|
|
return Ok(JsonView(false, "程序错误!"));
|
|
return Ok(JsonView(false, "程序错误!"));
|
|
|
- throw;
|
|
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
#endregion
|
|
#endregion
|