|
@@ -1,7 +1,6 @@
|
|
|
using Aspose.Cells;
|
|
|
using Aspose.Words;
|
|
|
using EyeSoft.Extensions;
|
|
|
-using NPOI.SS.Formula.PTG;
|
|
|
using OASystem.API.OAMethodLib;
|
|
|
using OASystem.API.OAMethodLib.QiYeWeChatAPI.AppNotice;
|
|
|
using OASystem.Domain.AesEncryption;
|
|
@@ -9,11 +8,9 @@ using OASystem.Domain.Dtos.Groups;
|
|
|
using OASystem.Domain.Entities.Groups;
|
|
|
using OASystem.Domain.ViewModels.Groups;
|
|
|
using OASystem.Infrastructure.Repositories.Groups;
|
|
|
-using System.Collections.Generic;
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
using System.Data;
|
|
|
using System.Diagnostics;
|
|
|
-using System.Linq;
|
|
|
using static OASystem.API.OAMethodLib.JWTHelper;
|
|
|
|
|
|
namespace OASystem.API.Controllers
|
|
@@ -806,31 +803,47 @@ namespace OASystem.API.Controllers
|
|
|
[ProducesResponseType(typeof(JsonView), StatusCodes.Status200OK)]
|
|
|
public async Task<IActionResult> QueryCountryFeeCost(DtoBase dto)
|
|
|
{
|
|
|
+ var portType = dto.PortType;
|
|
|
+ var countryVisaFees = await _countryFeeRep
|
|
|
+ .QueryDto<Res_CountryFeeCost, CountryFeeCostView>()
|
|
|
+ .OrderByDescending(x => x.CreateTime)
|
|
|
+ .ToListAsync();
|
|
|
|
|
|
- if (dto.PortType == 1)
|
|
|
- {
|
|
|
- var CountryFee = _countryFeeRep.QueryDto<Res_CountryFeeCost, CountryFeeCostView>().ToList();
|
|
|
- if (CountryFee.Count == 0)
|
|
|
- {
|
|
|
- return Ok(JsonView(false, "暂无数据!"));
|
|
|
- }
|
|
|
- CountryFee = CountryFee.OrderByDescending(s => s.CreateTime).ToList();
|
|
|
- return Ok(JsonView(true, "查询成功", CountryFee));
|
|
|
- }
|
|
|
- else if (dto.PortType == 2)
|
|
|
- {
|
|
|
- var CountryFee = _countryFeeRep.QueryDto<Res_CountryFeeCost, CountryFeeCostView>().ToList();
|
|
|
- if (CountryFee.Count == 0)
|
|
|
- {
|
|
|
- return Ok(JsonView(false, "暂无数据!"));
|
|
|
- }
|
|
|
- CountryFee = CountryFee.OrderByDescending(s => s.CreateTime).ToList();
|
|
|
- return Ok(JsonView(true, "查询成功", CountryFee));
|
|
|
- }
|
|
|
- else
|
|
|
- {
|
|
|
+ if (!countryVisaFees.Any()) return Ok(JsonView(false, "暂无数据!"));
|
|
|
+
|
|
|
+ if (portType == 1) return Ok(JsonView(true, "查询成功", countryVisaFees));
|
|
|
+ else if (portType == 2 || portType == 3) return Ok(JsonView(true, "查询成功", countryVisaFees));
|
|
|
+ else return Ok(JsonView(false, "请传入PortType参数!1:Web,2:Android,3:IOS"));
|
|
|
+ }
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ /// 签证费用资料查询 Page New
|
|
|
+ /// </summary>
|
|
|
+ /// <param name="dto"></param>
|
|
|
+ /// <returns></returns>
|
|
|
+ [HttpPost]
|
|
|
+ [ProducesResponseType(typeof(JsonView), StatusCodes.Status200OK)]
|
|
|
+ public async Task<IActionResult> QueryVisaCountryFeeCosts(QueryVisaCountryFeeCostsDto dto)
|
|
|
+ {
|
|
|
+ // 校验端口类型
|
|
|
+ if (dto.PortType != 1 && dto.PortType != 2 && dto.PortType != 3)
|
|
|
return Ok(JsonView(false, "请传入PortType参数!1:Web,2:Android,3:IOS"));
|
|
|
- }
|
|
|
+
|
|
|
+ var portType = dto.PortType;
|
|
|
+ RefAsync<int> total = 0;
|
|
|
+ var query = _countryFeeRep._sqlSugar
|
|
|
+ .Queryable<Res_CountryFeeCost>()
|
|
|
+ .Where(x => x.IsDel == 0)
|
|
|
+ .WhereIF(dto.VisaFeeType >= 0, x => x.VisaFeeType == dto.VisaFeeType)
|
|
|
+ .WhereIF(!string.IsNullOrEmpty(dto.CountryName), x => x.VisaCountry.Contains(dto.CountryName))
|
|
|
+ .OrderByDescending(x => x.CreateTime);
|
|
|
+
|
|
|
+ var countryVisaFees = await query.ToPageListAsync(dto.PageIndex, dto.PageSize, total);
|
|
|
+
|
|
|
+ if (!countryVisaFees.Any()) return Ok(JsonView(false, "暂无数据!"));
|
|
|
+ var view = _mapper.Map<List<CountryFeeCostView>>(countryVisaFees);
|
|
|
+
|
|
|
+ return Ok(JsonView(true, "查询成功", view, total));
|
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
@@ -842,29 +855,10 @@ namespace OASystem.API.Controllers
|
|
|
[ProducesResponseType(typeof(JsonView), StatusCodes.Status200OK)]
|
|
|
public async Task<IActionResult> OperationCountryFeeCost(OperationCountryFeeCostDto dto)
|
|
|
{
|
|
|
- if (string.IsNullOrWhiteSpace(dto.VisaContinent))
|
|
|
- {
|
|
|
- return Ok(JsonView(false, "请检查州名是否填写!"));
|
|
|
- }
|
|
|
- if (string.IsNullOrWhiteSpace(dto.VisaCountry))
|
|
|
- {
|
|
|
- return Ok(JsonView(false, "请检查国家名是否填写!"));
|
|
|
- }
|
|
|
- if (string.IsNullOrWhiteSpace(dto.VisaTime))
|
|
|
- {
|
|
|
- return Ok(JsonView(false, "请检一般签证时间是否填写正确!"));
|
|
|
- }
|
|
|
- if (string.IsNullOrWhiteSpace(dto.UrgentTime))
|
|
|
- {
|
|
|
- return Ok(JsonView(false, "请检加急时间是否填写正确!"));
|
|
|
- }
|
|
|
+ if (string.IsNullOrWhiteSpace(dto.VisaContinent) || string.IsNullOrWhiteSpace(dto.VisaCountry))
|
|
|
+ return Ok(JsonView(false, "请检查州名和国家名是否填写!"));
|
|
|
|
|
|
- Result result = await _countryFeeRep.OperationCountryFeeCost(dto);
|
|
|
- if (result.Code == 0)
|
|
|
- {
|
|
|
- return Ok(JsonView(true, result.Msg));
|
|
|
- }
|
|
|
- return Ok(JsonView(false, result.Msg));
|
|
|
+ return Ok(await _countryFeeRep.OperationCountryFeeCost(dto));
|
|
|
|
|
|
}
|
|
|
|
|
@@ -877,10 +871,8 @@ namespace OASystem.API.Controllers
|
|
|
public async Task<IActionResult> DelCountryFeeCost(DelCountryFeeCostDto dto)
|
|
|
{
|
|
|
var res = await _countryFeeRep.SoftDeleteByIdAsync<Res_CountryFeeCost>(dto.Id.ToString(), dto.DeleteUserId);
|
|
|
- if (!res)
|
|
|
- {
|
|
|
- return Ok(JsonView(false, "删除失败"));
|
|
|
- }
|
|
|
+ if (!res) return Ok(JsonView(false, "删除失败"));
|
|
|
+
|
|
|
return Ok(JsonView(true, "删除成功!"));
|
|
|
|
|
|
}
|
|
@@ -1629,14 +1621,14 @@ Inner Join Sys_Department as d With(Nolock) On u.DepId=d.Id Where m.Id={0} ", _m
|
|
|
|
|
|
var InvitationOfficialActivityDataList = _sqlSugar.Queryable<Res_InvitationOfficialActivityData>()
|
|
|
.Where(x => x.IsDel == 0)
|
|
|
- .Select(x => new Res_InvitationOfficialActivityData() {Id=x.Id,Country = x.Country })
|
|
|
+ .Select(x => new Res_InvitationOfficialActivityData() { Id = x.Id, Country = x.Country })
|
|
|
.ToList();
|
|
|
|
|
|
foreach (var item in InvitationOfficialActivityDataList)
|
|
|
{
|
|
|
EncryptionProcessor.DecryptProperties(item);
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
var ids = InvitationOfficialActivityDataList
|
|
|
.WhereIF(europeanCountries.Any(), x => !string.IsNullOrWhiteSpace(x.Country) && europeanCountries.Contains(x.Country))
|
|
|
.Select(x => x.Id)
|
|
@@ -2180,14 +2172,16 @@ Inner Join Sys_Department as d With(Nolock) On u.DepId=d.Id Where m.Id={0} ", _m
|
|
|
var translatorData1 = _mapper.Map<List<TranslatorView>>(translatorData);
|
|
|
foreach (var item in translatorData1) EncryptionProcessor.DecryptProperties(item);
|
|
|
|
|
|
- return Ok(JsonView(true,
|
|
|
- "查询成功!",
|
|
|
- new { Delegation = groupInfos,
|
|
|
- SetData = data1,
|
|
|
- DataSource = data2,
|
|
|
- currencyData = data3,
|
|
|
- DeleFile = _DeleFile,
|
|
|
- TranslatorData = translatorData1
|
|
|
+ return Ok(JsonView(true,
|
|
|
+ "查询成功!",
|
|
|
+ new
|
|
|
+ {
|
|
|
+ Delegation = groupInfos,
|
|
|
+ SetData = data1,
|
|
|
+ DataSource = data2,
|
|
|
+ currencyData = data3,
|
|
|
+ DeleFile = _DeleFile,
|
|
|
+ TranslatorData = translatorData1
|
|
|
}));
|
|
|
}
|
|
|
|
|
@@ -2818,7 +2812,7 @@ Inner Join Sys_Department as d With(Nolock) On u.DepId=d.Id Where m.Id={0} ", _m
|
|
|
|
|
|
|
|
|
builder.MoveToCell(0, i + 1, 3, 0);
|
|
|
-
|
|
|
+
|
|
|
//string birthDay = "";
|
|
|
string birthDayStr = string.Empty;
|
|
|
if (guestInfo.BirthDay != DateTime.MinValue)
|
|
@@ -4666,7 +4660,7 @@ WHERE
|
|
|
return Ok(await _mediaSupplierRep.SoftDel(dto));
|
|
|
}
|
|
|
|
|
|
-
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
@@ -4818,9 +4812,9 @@ WHERE
|
|
|
/// <returns></returns>
|
|
|
[HttpGet("{id}")]
|
|
|
[ProducesResponseType(typeof(JsonView), StatusCodes.Status200OK)]
|
|
|
- public async Task<IActionResult> GamesBudgetMasterInfo([Required(ErrorMessage = "数据编号不能为空!")]int id)
|
|
|
+ public async Task<IActionResult> GamesBudgetMasterInfo([Required(ErrorMessage = "数据编号不能为空!")] int id)
|
|
|
{
|
|
|
- return Ok( await _gamesBudgetMasterRep.InfoAsync(id));
|
|
|
+ return Ok(await _gamesBudgetMasterRep.InfoAsync(id));
|
|
|
}
|
|
|
|
|
|
/// <summary>
|