|
@@ -1,19 +1,9 @@
|
|
|
using Aspose.Cells;
|
|
|
using Aspose.Words;
|
|
|
-using Aspose.Words.Drawing;
|
|
|
using EyeSoft.Extensions;
|
|
|
using EyeSoft.IO;
|
|
|
-using EyeSoft.Runtime.InteropServices;
|
|
|
using FluentValidation;
|
|
|
-using MathNet.Numerics.Distributions;
|
|
|
-using Microsoft.EntityFrameworkCore.Query.Internal;
|
|
|
-using Microsoft.OpenApi.Expressions;
|
|
|
-using NPOI.HPSF;
|
|
|
-using NPOI.HSSF.UserModel;
|
|
|
-using NPOI.SS.Formula.Functions;
|
|
|
-using NPOI.SS.Formula.PTG;
|
|
|
using NPOI.SS.UserModel;
|
|
|
-using NPOI.Util;
|
|
|
using NPOI.XSSF.UserModel;
|
|
|
using OASystem.API.OAMethodLib;
|
|
|
using OASystem.API.OAMethodLib.File;
|
|
@@ -28,17 +18,13 @@ using OASystem.Domain.ViewModels.Groups;
|
|
|
using OASystem.Infrastructure.Repositories.Financial;
|
|
|
using OASystem.Infrastructure.Repositories.Groups;
|
|
|
using OfficeOpenXml;
|
|
|
-using Org.BouncyCastle.Math;
|
|
|
using SqlSugar.Extensions;
|
|
|
using System.Collections;
|
|
|
-using System.ComponentModel.Design;
|
|
|
using System.Data;
|
|
|
using System.Data.OleDb;
|
|
|
using System.Diagnostics;
|
|
|
using System.Globalization;
|
|
|
using System.IO.Compression;
|
|
|
-using System.IO.Pipelines;
|
|
|
-using System.Linq.Expressions;
|
|
|
|
|
|
namespace OASystem.API.Controllers
|
|
|
{
|
|
@@ -244,7 +230,7 @@ namespace OASystem.API.Controllers
|
|
|
public async Task<IActionResult> PostDelDailyPayment(DelDailyFeePaymentDto dto)
|
|
|
{
|
|
|
_sqlSugar.BeginTran();
|
|
|
-
|
|
|
+
|
|
|
var result = await _daiRep.Del(dto);
|
|
|
|
|
|
|
|
@@ -382,7 +368,7 @@ namespace OASystem.API.Controllers
|
|
|
id = dfp.Id,
|
|
|
amountName = dfp.Instructions,
|
|
|
amount = dfp.SumPrice,
|
|
|
- fAuditStatus = dfp.FAudit == 1 ? "审核通过" :
|
|
|
+ fAuditStatus = dfp.FAudit == 1 ? "审核通过" :
|
|
|
dfp.FAudit == 2 ? "审核未通过" : "未审核",
|
|
|
fAuditDate = dfp.FAuditDate,
|
|
|
applicant = u.CnName,
|
|
@@ -391,7 +377,7 @@ namespace OASystem.API.Controllers
|
|
|
|
|
|
.CountAsync();
|
|
|
|
|
|
- return Ok(JsonView(true,"查询成功", dailyInfos));
|
|
|
+ return Ok(JsonView(true, "查询成功", dailyInfos));
|
|
|
}
|
|
|
|
|
|
#endregion
|
|
@@ -793,9 +779,9 @@ namespace OASystem.API.Controllers
|
|
|
[ProducesResponseType(typeof(JsonView), StatusCodes.Status200OK)]
|
|
|
public async Task<IActionResult> PostReceivablesSave(ForeignReceivablesSaveDto dto)
|
|
|
{
|
|
|
-
|
|
|
+
|
|
|
return Ok(await _ForForeignReceivablesRep.PostReceivablesSave(dto));
|
|
|
-
|
|
|
+
|
|
|
}
|
|
|
|
|
|
|
|
@@ -1018,7 +1004,7 @@ namespace OASystem.API.Controllers
|
|
|
Name = dc.LastName + dc.FirstName,
|
|
|
Sex = dc.Sex,
|
|
|
Birthday = dc.BirthDay,
|
|
|
- Company = cc.CompanyFullName.Replace("\n",""),
|
|
|
+ Company = cc.CompanyFullName.Replace("\n", ""),
|
|
|
Job = dc.Job,
|
|
|
AirType = tcl.ShippingSpaceTypeId
|
|
|
})
|
|
@@ -1081,11 +1067,13 @@ namespace OASystem.API.Controllers
|
|
|
{
|
|
|
airName = $"头等舱";
|
|
|
airPrice = _EnterExitCosts.AirTD;
|
|
|
- }else if (client.AirType == 458)
|
|
|
+ }
|
|
|
+ else if (client.AirType == 458)
|
|
|
{
|
|
|
airName = $"公务舱";
|
|
|
airPrice = _EnterExitCosts.AirGW;
|
|
|
- }else if (client.AirType == 460)
|
|
|
+ }
|
|
|
+ else if (client.AirType == 460)
|
|
|
{
|
|
|
airName = $"经济舱";
|
|
|
airPrice = _EnterExitCosts.AirJJ;
|
|
@@ -1381,10 +1369,10 @@ namespace OASystem.API.Controllers
|
|
|
{
|
|
|
if (groupId < 1) return Ok(JsonView(false, "请传入有效的GroupId参数!"));
|
|
|
|
|
|
- var _EnterExitCosts =await _sqlSugar.Queryable<Grp_EnterExitCost>()
|
|
|
+ var _EnterExitCosts = await _sqlSugar.Queryable<Grp_EnterExitCost>()
|
|
|
.Where(it => it.IsDel == 0 && it.DiId == groupId)
|
|
|
.FirstAsync();
|
|
|
- var _DayAndCosts =await _sqlSugar.Queryable<Grp_DayAndCost>()
|
|
|
+ var _DayAndCosts = await _sqlSugar.Queryable<Grp_DayAndCost>()
|
|
|
.Where(it => it.IsDel == 0 && it.DiId == groupId)
|
|
|
.ToListAsync();
|
|
|
if (_EnterExitCosts == null) return Ok(JsonView(false, "该团组未填写出入境费用;"));
|
|
@@ -1417,7 +1405,7 @@ namespace OASystem.API.Controllers
|
|
|
.ToListAsync();
|
|
|
if (groupClientList.Count < 1) return Ok(JsonView(false, "该团组未填写接团客户名单;"));
|
|
|
|
|
|
- decimal domesticFeeTotal =0.00M,
|
|
|
+ decimal domesticFeeTotal = 0.00M,
|
|
|
economyClassFeeTotal = 0.00M,
|
|
|
businessClassFeeTotal = 0.00M,
|
|
|
firstClassFeeTotal = 0.00M,
|
|
@@ -1878,7 +1866,7 @@ namespace OASystem.API.Controllers
|
|
|
.Where((u, d) => u.IsDel == 0 && d.DepName.Contains("市场部") && u.Id == dto.CurrUserId)
|
|
|
.ToListAsync();
|
|
|
|
|
|
-
|
|
|
+
|
|
|
if (userInfos.Count > 0) userSqlWhere = string.Format(@$" And JietuanOperator={dto.CurrUserId} ");
|
|
|
|
|
|
|
|
@@ -2237,7 +2225,7 @@ namespace OASystem.API.Controllers
|
|
|
|
|
|
|
|
|
|
|
|
- private tree_Group_DailyFeePaymentResult PayRequest_GroupPaymentByDateRange(int status, List<int> _groupIds,List<int> _hotelSubIds, string beginDt, string endDt)
|
|
|
+ private tree_Group_DailyFeePaymentResult PayRequest_GroupPaymentByDateRange(int status, List<int> _groupIds, List<int> _hotelSubIds, string beginDt, string endDt)
|
|
|
{
|
|
|
tree_Group_DailyFeePaymentResult _DailyFeePaymentResult = new tree_Group_DailyFeePaymentResult();
|
|
|
List<tree_Group_DailyFeePaymentPageListView> dataList = new List<tree_Group_DailyFeePaymentPageListView>();
|
|
@@ -2461,7 +2449,7 @@ namespace OASystem.API.Controllers
|
|
|
else if (hotelContent.PriceType == 4) subPriceName = "城市税";
|
|
|
|
|
|
if (string.IsNullOrEmpty(subPriceName)) subPriceName = priName;
|
|
|
- else subPriceName = $"{priName.Replace("]","")}-{subPriceName}]";
|
|
|
+ else subPriceName = $"{priName.Replace("]", "")}-{subPriceName}]";
|
|
|
|
|
|
string payeeStr1 = string.Format(@" {0},开户行:{1},银行卡号:{2} ",
|
|
|
string.IsNullOrEmpty(hotelContent.Payee) ? "-" : hotelContent.Payee,
|
|
@@ -2500,8 +2488,8 @@ namespace OASystem.API.Controllers
|
|
|
childInfo1.RemaksDescription = remaksDescription1;
|
|
|
|
|
|
if (status == 2)
|
|
|
- {
|
|
|
- if (status1)
|
|
|
+ {
|
|
|
+ if (status1)
|
|
|
{
|
|
|
childInfos.Add(childInfo1);
|
|
|
}
|
|
@@ -2550,7 +2538,7 @@ namespace OASystem.API.Controllers
|
|
|
childList.Add(childInfo);
|
|
|
rouNumber++;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
}
|
|
|
|
|
|
CompanyInfo companyInfo = new CompanyInfo();
|
|
@@ -2790,7 +2778,7 @@ namespace OASystem.API.Controllers
|
|
|
if (dto.Rate <= 0) return Ok(JsonView(false, "请传入有效的Rate参数!"));
|
|
|
#endregion
|
|
|
|
|
|
- int hotelSubStatus = 0,status = 0;
|
|
|
+ int hotelSubStatus = 0, status = 0;
|
|
|
int diid = 0, cTable = 0, currId = 0;
|
|
|
|
|
|
if (dto.HotelSubId > 0)
|
|
@@ -2820,10 +2808,11 @@ namespace OASystem.API.Controllers
|
|
|
{
|
|
|
var ccpInfo = _sqlSugar.Queryable<Grp_CreditCardPayment>().Where(it => it.Id == dto.Id).First();
|
|
|
decimal cnyMoney = 0.00M;
|
|
|
- if (ccpInfo != null) {
|
|
|
+ if (ccpInfo != null)
|
|
|
+ {
|
|
|
cnyMoney = ccpInfo.PayMoney * dto.Rate;
|
|
|
diid = ccpInfo.DIId;
|
|
|
- cTable = ccpInfo.CTable;
|
|
|
+ cTable = ccpInfo.CTable;
|
|
|
currId = ccpInfo.PaymentCurrency;
|
|
|
}
|
|
|
|
|
@@ -2952,7 +2941,7 @@ namespace OASystem.API.Controllers
|
|
|
changeStatus = true;
|
|
|
|
|
|
List<int> hrIds = _sqlSugar.Queryable<Grp_HotelReservationsContent>().Where(it => it.IsDel == 0 && hotelSubIds.Contains(it.Id)).Select(it => it.HrId).Distinct().ToList();
|
|
|
- if (hrIds.Count > 0 )
|
|
|
+ if (hrIds.Count > 0)
|
|
|
{
|
|
|
var hotelSubFeeData = _sqlSugar.Queryable<Grp_HotelReservationsContent>().Where(it => it.IsDel == 0 && hrIds.Contains(it.HrId)).ToList();
|
|
|
var hotelSubFeeGroupData = hotelSubFeeData.GroupBy(it => it.HrId).ToList();
|
|
@@ -3001,7 +2990,7 @@ namespace OASystem.API.Controllers
|
|
|
|
|
|
var ids = _sqlSugar.Queryable<Fin_DailyFeePayment>()
|
|
|
.LeftJoin<Fin_RoyaltyForm>((dfp, rf) => dfp.Id == rf.DayOverhead && rf.IsDel == 0)
|
|
|
- .Where(dfp => dailyPaymentIds.Contains(dfp.Id) && dfp.IsDel == 0 )
|
|
|
+ .Where(dfp => dailyPaymentIds.Contains(dfp.Id) && dfp.IsDel == 0)
|
|
|
.Select((dfp, rf) => rf.ConfirmIdArr).ToList();
|
|
|
var idsList = string.Join(',', ids).Split(',')
|
|
|
.Select(x =>
|
|
@@ -4022,9 +4011,9 @@ Group by PriceType ", dto.diId);
|
|
|
var checkBoxDataArr = _sqlSugar.Queryable<Sys_SetData>().Where(x => x.IsDel == 0 && x.STid == 17).ToList();
|
|
|
var CurrDataArr = _sqlSugar.Queryable<Sys_SetData>().Where(x => x.IsDel == 0 && x.STid == 66).ToList();
|
|
|
|
|
|
- var joinTable = _sqlSugar.Queryable<Fin_GroupExtraCost, Grp_CreditCardPayment, Sys_SetData, Grp_NationalTravelFee ,
|
|
|
- Fin_LocalGuideRelevancyOverspend , Grp_CarTouristGuideGroundReservations, Sys_SetData,Grp_DelegationInfo>(
|
|
|
- (f, c, s, g, r ,l, s1,i) => new JoinQueryInfos(
|
|
|
+ var joinTable = _sqlSugar.Queryable<Fin_GroupExtraCost, Grp_CreditCardPayment, Sys_SetData, Grp_NationalTravelFee,
|
|
|
+ Fin_LocalGuideRelevancyOverspend, Grp_CarTouristGuideGroundReservations, Sys_SetData, Grp_DelegationInfo>(
|
|
|
+ (f, c, s, g, r, l, s1, i) => new JoinQueryInfos(
|
|
|
JoinType.Left, f.Id == c.CId && c.CTable == 1015 && c.IsDel == 0,
|
|
|
JoinType.Left, c.PaymentCurrency == s.Id && s.IsDel == 0,
|
|
|
JoinType.Left, g.IsDel == 0 && g.Id == f.Area,
|
|
@@ -4034,7 +4023,7 @@ Group by PriceType ", dto.diId);
|
|
|
JoinType.Left, i.Id == l.DiId && i.IsDel == 0
|
|
|
))
|
|
|
.Where((f, c, s, g) => f.IsDel == 0 && f.DiId == dto.diId)
|
|
|
- .Select((f, c, s, g, r, l,s1,i) => new
|
|
|
+ .Select((f, c, s, g, r, l, s1, i) => new
|
|
|
{
|
|
|
c.PaymentCurrency,
|
|
|
c.DayRate,
|
|
@@ -4062,7 +4051,7 @@ Group by PriceType ", dto.diId);
|
|
|
.ToList()
|
|
|
.Select(x =>
|
|
|
{
|
|
|
- var costPirce = x.Price;
|
|
|
+ var costPirce = x.Price;
|
|
|
decimal costRMBPrice = x.RMBPrice;
|
|
|
decimal costDayRate = x.DayRate;
|
|
|
string remake = x.Remark;
|
|
@@ -4091,7 +4080,7 @@ Group by PriceType ", dto.diId);
|
|
|
if (dicSoure.Keys.Contains(x.PriceDetailType))
|
|
|
{
|
|
|
var CarCenter = _sqlSugar.Queryable<Grp_CarTouristGuideGroundReservationsContent>().Where(x1 => x1.CTGGRId == x.CarParentId && x1.IsDel == 0
|
|
|
- && x1.SId == mealsDic.First(x2 => x2.Value == dicSoure[x.PriceDetailType]).Key ).ToList().First(x1=> (DateTime.Compare(x1.DatePrice.ObjToDate(), x.PriceDt) == 0));
|
|
|
+ && x1.SId == mealsDic.First(x2 => x2.Value == dicSoure[x.PriceDetailType]).Key).ToList().First(x1 => (DateTime.Compare(x1.DatePrice.ObjToDate(), x.PriceDt) == 0));
|
|
|
costPirce += (CarCenter.Price * CarCenter.Count * x.Rate);
|
|
|
oldPrice += (CarCenter.Price * CarCenter.Count);
|
|
|
|
|
@@ -4115,7 +4104,7 @@ Group by PriceType ", dto.diId);
|
|
|
{
|
|
|
costPirce = Convert.ToInt32(Math.Round(costPirce));
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
costRMBPrice = Convert.ToInt32(Math.Round(costPirce * costDayRate));
|
|
|
}
|
|
|
|
|
@@ -4141,9 +4130,9 @@ Group by PriceType ", dto.diId);
|
|
|
})
|
|
|
.ToList();
|
|
|
|
|
|
- var PriceDetailTypeArr = new int[] { 1088 , 1074, 1075, 1076 };
|
|
|
+ var PriceDetailTypeArr = new int[] { 1088, 1074, 1075, 1076 };
|
|
|
var whereArr = joinTable.Where(x => PriceDetailTypeArr.Contains(x.PriceDetailType)).ToList();
|
|
|
- _ = joinTable.RemoveAll(x => PriceDetailTypeArr.Contains(x.PriceDetailType));
|
|
|
+ _ = joinTable.RemoveAll(x => PriceDetailTypeArr.Contains(x.PriceDetailType));
|
|
|
foreach (var item in whereArr)
|
|
|
{
|
|
|
joinTable.Insert(0, item);
|
|
@@ -4195,7 +4184,7 @@ Group by PriceType ", dto.diId);
|
|
|
for (int i = 0; i < clounmCount; i++)
|
|
|
{
|
|
|
string property = dicClounm[i];
|
|
|
- string value = item.GetType()!.GetProperty(property)!.GetValue(item)?.ToString() ?? "";
|
|
|
+ string value = item.GetType()!.GetProperty(property)!.GetValue(item)?.ToString() ?? "";
|
|
|
sheet.GetRow(rowStartIndex).GetCell(i).SetCellValue(value);
|
|
|
}
|
|
|
|
|
@@ -4203,7 +4192,7 @@ Group by PriceType ", dto.diId);
|
|
|
}
|
|
|
|
|
|
sheet.GetRow(rowStartIndex).GetCell(2).SetCellValue($"小计:");
|
|
|
- sheet.GetRow(rowStartIndex).GetCell(3).SetCellValue($"{joinTable.Sum(x=>x.RMBPrice)}元");
|
|
|
+ sheet.GetRow(rowStartIndex).GetCell(3).SetCellValue($"{joinTable.Sum(x => x.RMBPrice)}元");
|
|
|
var path = $"GroupExtraCost/{grp_DelegationInfo.TeamName}_超支费用.xlsx";
|
|
|
using (var stream = new MemoryStream())
|
|
|
{
|
|
@@ -4230,7 +4219,7 @@ Group by PriceType ", dto.diId);
|
|
|
[HttpPost]
|
|
|
public IActionResult QueryCoefficientConfig()
|
|
|
{
|
|
|
- var arr = _sqlSugar.Queryable<Sys_SetData>().Where(x => x.STid == 80 && x.IsDel == 0).ToList();
|
|
|
+ var arr = _sqlSugar.Queryable<Sys_SetData>().Where(x => x.STid == 80 && x.IsDel == 0).ToList();
|
|
|
|
|
|
var carCoefficient = new int[] { 1050 };
|
|
|
|
|
@@ -4464,7 +4453,7 @@ Group by PriceType ", dto.diId);
|
|
|
*
|
|
|
*/
|
|
|
|
|
|
- var ids = new List<int>();
|
|
|
+ var ids = new List<int>();
|
|
|
if (cardType == 74)
|
|
|
{
|
|
|
var AirGroupReuslt = List_ccp.Where(x => x.CTable == 85).GroupBy(x => x.DIId).ToList();
|
|
@@ -5072,7 +5061,7 @@ Group by PriceType ", dto.diId);
|
|
|
{
|
|
|
var jw = JsonView(false);
|
|
|
var userId = dto.UserId;
|
|
|
- var user = _sqlSugar.Queryable<Sys_Users>().First(x=>x.Id == userId);
|
|
|
+ var user = _sqlSugar.Queryable<Sys_Users>().First(x => x.Id == userId);
|
|
|
|
|
|
|
|
|
if (user == null)
|
|
@@ -5080,7 +5069,7 @@ Group by PriceType ", dto.diId);
|
|
|
jw.Msg = "暂无该用户!";
|
|
|
return Ok(jw);
|
|
|
}
|
|
|
- if (!DateTime.TryParse(dto.StartDate,out DateTime StartDateTime))
|
|
|
+ if (!DateTime.TryParse(dto.StartDate, out DateTime StartDateTime))
|
|
|
{
|
|
|
jw.Msg = "开始时间格式有误!";
|
|
|
return Ok(jw);
|
|
@@ -5090,7 +5079,7 @@ Group by PriceType ", dto.diId);
|
|
|
jw.Msg = "结束时间格式有误!";
|
|
|
return Ok(jw);
|
|
|
}
|
|
|
- if (DateTime.Compare(StartDateTime,EndDateTime) > 0)
|
|
|
+ if (DateTime.Compare(StartDateTime, EndDateTime) > 0)
|
|
|
{
|
|
|
jw.Msg = "开始时间大于结束时间!";
|
|
|
return Ok(jw);
|
|
@@ -5103,13 +5092,13 @@ Group by PriceType ", dto.diId);
|
|
|
int[] Hotel = _sqlSugar.Queryable<Sys_Users>().Where(x => x.IsDel == 0 && x.JobPostId == 25).Select(x => x.Id).ToArray();
|
|
|
|
|
|
|
|
|
- int [] OP = _sqlSugar.Queryable<Sys_Users>().Where(x=>x.IsDel == 0 && x.JobPostId == 28).Select(x=>x.Id).ToArray();
|
|
|
+ int[] OP = _sqlSugar.Queryable<Sys_Users>().Where(x => x.IsDel == 0 && x.JobPostId == 28).Select(x => x.Id).ToArray();
|
|
|
|
|
|
|
|
|
- int [] Invitation = _sqlSugar.Queryable<Sys_Users>().Where(x => x.IsDel == 0 && x.JobPostId == 27).Select(x => x.Id).ToArray();
|
|
|
+ int[] Invitation = _sqlSugar.Queryable<Sys_Users>().Where(x => x.IsDel == 0 && x.JobPostId == 27).Select(x => x.Id).ToArray();
|
|
|
|
|
|
|
|
|
- int[] Visa = _sqlSugar.Queryable<Sys_Users>().Where(x => x.IsDel == 0 && x.JobPostId == 26 ).Select(x => x.Id).ToArray();
|
|
|
+ int[] Visa = _sqlSugar.Queryable<Sys_Users>().Where(x => x.IsDel == 0 && x.JobPostId == 26).Select(x => x.Id).ToArray();
|
|
|
|
|
|
|
|
|
|
|
@@ -5118,17 +5107,17 @@ Group by PriceType ", dto.diId);
|
|
|
|
|
|
var teamLv = _sqlSugar.Queryable<Sys_SetData>().Where(x => x.STid == 56 && x.IsDel == 0).ToList();
|
|
|
|
|
|
- var auditState = new int[] { 1 , 3 };
|
|
|
+ var auditState = new int[] { 1, 3 };
|
|
|
|
|
|
if (AirTicket.Contains(userId))
|
|
|
{
|
|
|
|
|
|
var listAir = _sqlSugar.Queryable<Grp_AirTicketReservations, Grp_DelegationInfo, Grp_CreditCardPayment>((x, a, b) => new
|
|
|
JoinQueryInfos(
|
|
|
- JoinType.Left, a.Id == x.DIId ,
|
|
|
- JoinType.Left, b.CTable == 85 && b.CId == x.Id )
|
|
|
- ).Where((x, a, b) => x.IsDel == 0 && x.CreateUserId == userId && (b.IsAuditGM == 1 || b.IsAuditGM == 3)
|
|
|
- && a.IsDel == 0 && a.VisitDate >= StartDateTime && a.VisitDate <= EndDateTime && b.IsDel == 0 && a.IsSure == 1 && auditState.Contains(b.IsAuditGM) )
|
|
|
+ JoinType.Left, a.Id == x.DIId,
|
|
|
+ JoinType.Left, b.CTable == 85 && b.CId == x.Id)
|
|
|
+ ).Where((x, a, b) => x.IsDel == 0 && x.CreateUserId == userId && (b.IsAuditGM == 1 || b.IsAuditGM == 3)
|
|
|
+ && a.IsDel == 0 && a.VisitDate >= StartDateTime && a.VisitDate <= EndDateTime && b.IsDel == 0 && a.IsSure == 1 && auditState.Contains(b.IsAuditGM))
|
|
|
.Select((x, a, b) => new
|
|
|
{
|
|
|
x.FlightsDescription,
|
|
@@ -5166,7 +5155,7 @@ Group by PriceType ", dto.diId);
|
|
|
|
|
|
if (air.FlightsDescription.Contains("\r\n"))
|
|
|
{
|
|
|
- var rowCode = Regex.Split(air.FlightsDescription, "\\d+\\.", RegexOptions.IgnoreCase).Where(x=>!string.IsNullOrWhiteSpace(x)).ToArray();
|
|
|
+ var rowCode = Regex.Split(air.FlightsDescription, "\\d+\\.", RegexOptions.IgnoreCase).Where(x => !string.IsNullOrWhiteSpace(x)).ToArray();
|
|
|
for (int i = 0; i < rowCode.Length; i++)
|
|
|
{
|
|
|
if (i != 0)
|
|
@@ -5204,7 +5193,7 @@ Group by PriceType ", dto.diId);
|
|
|
}
|
|
|
catch (Exception ex)
|
|
|
{
|
|
|
- errMsg = "机票行程代码格式有误!解析失败!" + $"({ex.Message})";
|
|
|
+ errMsg = "机票行程代码格式有误!解析失败!" + $"({ex.Message})";
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
@@ -5236,9 +5225,9 @@ Group by PriceType ", dto.diId);
|
|
|
string info = $"航班{air.FlightsCode} {(air.Price > 0 ? "" : "此笔为退费!")} 人数为{air.ClientNum} 有效段数为{airCount} 总段数为{airCount * air.ClientNum}";
|
|
|
if (!string.IsNullOrWhiteSpace(errMsg))
|
|
|
{
|
|
|
- info = $"航班{air.FlightsCode} " + errMsg ;
|
|
|
+ info = $"航班{air.FlightsCode} " + errMsg;
|
|
|
}
|
|
|
- infos.Add(info);
|
|
|
+ infos.Add(info);
|
|
|
groupAirCount += airCount * air.ClientNum;
|
|
|
}
|
|
|
var groupinfo = listAir.First(x => x.Id == airArr.Key);
|
|
@@ -5248,21 +5237,21 @@ Group by PriceType ", dto.diId);
|
|
|
TeamName = groupinfo.TeamName,
|
|
|
TeamId = groupinfo.Id,
|
|
|
ChiArr = infos,
|
|
|
- TeamLvStr = teamLv.Find(x=>x.Id == groupinfo.TeamLevSId)?.Name,
|
|
|
+ TeamLvStr = teamLv.Find(x => x.Id == groupinfo.TeamLevSId)?.Name,
|
|
|
VisitDate = groupinfo.VisitDate,
|
|
|
Temp = temp,
|
|
|
Price = (groupAirCount * 10),
|
|
|
- }) ;
|
|
|
+ });
|
|
|
}
|
|
|
}
|
|
|
else if (Hotel.Contains(userId))
|
|
|
{
|
|
|
|
|
|
var listHotel = _sqlSugar.Queryable<Grp_HotelReservations, Grp_DelegationInfo, Grp_CreditCardPayment>((x, a, b) => new JoinQueryInfos(
|
|
|
- JoinType.Left,x.DiId == a.Id,
|
|
|
- JoinType.Left,b.CTable == 76 && b.CId == x.Id ))
|
|
|
- .Where((x, a, b) => x.IsDel == 0 && x.CreateUserId == userId && a.VisitDate >= StartDateTime
|
|
|
- && a.VisitDate <= EndDateTime && a.IsDel == 0 && b.IsDel == 0 && x.CardPrice > 0 && a.IsSure == 1 && auditState.Contains(b.IsAuditGM) && x.CheckType == 1001).Select((x,a,b)=> new
|
|
|
+ JoinType.Left, x.DiId == a.Id,
|
|
|
+ JoinType.Left, b.CTable == 76 && b.CId == x.Id))
|
|
|
+ .Where((x, a, b) => x.IsDel == 0 && x.CreateUserId == userId && a.VisitDate >= StartDateTime
|
|
|
+ && a.VisitDate <= EndDateTime && a.IsDel == 0 && b.IsDel == 0 && x.CardPrice > 0 && a.IsSure == 1 && auditState.Contains(b.IsAuditGM) && x.CheckType == 1001).Select((x, a, b) => new
|
|
|
{
|
|
|
a.Id,
|
|
|
a.TeamName,
|
|
@@ -5272,7 +5261,7 @@ Group by PriceType ", dto.diId);
|
|
|
x.SingleRoomCount,
|
|
|
x.SuiteRoomCount,
|
|
|
x.DoubleRoomCount,
|
|
|
- x.OtherRoomCount,
|
|
|
+ x.OtherRoomCount,
|
|
|
x.CheckInDate,
|
|
|
x.CheckOutDate,
|
|
|
x.HotelName
|
|
@@ -5291,7 +5280,7 @@ Group by PriceType ", dto.diId);
|
|
|
var hotelCount = 0;
|
|
|
foreach (var property in propertys)
|
|
|
{
|
|
|
- var value = item.GetType().GetProperty(property).GetValue(item).ObjToInt();
|
|
|
+ var value = item.GetType().GetProperty(property).GetValue(item).ObjToInt();
|
|
|
if (value > 0)
|
|
|
{
|
|
|
hotelCount += value;
|
|
@@ -5303,7 +5292,7 @@ Group by PriceType ", dto.diId);
|
|
|
if (DateTime.TryParse(item.CheckInDate, out DateTime checkin) && DateTime.TryParse(item.CheckOutDate, out DateTime checkout))
|
|
|
{
|
|
|
var day = checkout - checkin;
|
|
|
- infos.Add($"{item.HotelName} 共有 {hotelCount} 间房 , 入住时间{item.CheckInDate} - {item.CheckOutDate} 共 { day.TotalDays }晚 提成数量:{hotelCount * day.TotalDays} 提成金额:{hotelCount * day.TotalDays * 10}");
|
|
|
+ infos.Add($"{item.HotelName} 共有 {hotelCount} 间房 , 入住时间{item.CheckInDate} - {item.CheckOutDate} 共 {day.TotalDays}晚 提成数量:{hotelCount * day.TotalDays} 提成金额:{hotelCount * day.TotalDays * 10}");
|
|
|
totalPrice += (decimal)(hotelCount * day.TotalDays * 10);
|
|
|
}
|
|
|
else
|
|
@@ -5318,10 +5307,10 @@ Group by PriceType ", dto.diId);
|
|
|
resultArr.Add(new ComputeRoyaltiesView
|
|
|
{
|
|
|
TeamName = groupinfo.TeamName,
|
|
|
- TeamId = groupinfo.Id,
|
|
|
+ TeamId = groupinfo.Id,
|
|
|
ChiArr = infos,
|
|
|
TeamLvStr = teamLv.Find(x => x.Id == groupinfo.TeamLevSId)?.Name,
|
|
|
- VisitDate = groupinfo.VisitDate,
|
|
|
+ VisitDate = groupinfo.VisitDate,
|
|
|
Temp = temp,
|
|
|
Price = totalPrice,
|
|
|
});
|
|
@@ -5339,10 +5328,10 @@ Group by PriceType ", dto.diId);
|
|
|
foreach (var groupinfo in OPList)
|
|
|
{
|
|
|
var price = LvArr.Find(x => x.Id == groupinfo.OpRoyaltyLv)?.Name.ObjToInt() ?? 0;
|
|
|
- string temp = $"本团等级为{teamLv.Find(x => x.Id == groupinfo.TeamLevSId)?.Name} 提成金额为{price} {(string.IsNullOrWhiteSpace(groupinfo.OpRoyaltyRemark) ? "" : "提成说明:" + groupinfo.OpRoyaltyRemark )}";
|
|
|
+ string temp = $"本团等级为{teamLv.Find(x => x.Id == groupinfo.TeamLevSId)?.Name} 提成金额为{price} {(string.IsNullOrWhiteSpace(groupinfo.OpRoyaltyRemark) ? "" : "提成说明:" + groupinfo.OpRoyaltyRemark)}";
|
|
|
if (price == 0)
|
|
|
{
|
|
|
- temp = $"本团等级为{teamLv.Find(x => x.Id == groupinfo.TeamLevSId)?.Name} op提成选项未选择!" ;
|
|
|
+ temp = $"本团等级为{teamLv.Find(x => x.Id == groupinfo.TeamLevSId)?.Name} op提成选项未选择!";
|
|
|
}
|
|
|
resultArr.Add(new ComputeRoyaltiesView
|
|
|
{
|
|
@@ -5363,9 +5352,9 @@ Group by PriceType ", dto.diId);
|
|
|
|
|
|
|
|
|
|
|
|
- var officialList = _sqlSugar.Queryable<Res_OfficialActivities, Grp_DelegationInfo>((x,a)=>
|
|
|
- new JoinQueryInfos(JoinType.Left,a.Id == x.DiId)
|
|
|
- ).Where((x,a) => x.IsSubmitApproval == 0 && x.IsDel == 0 && a.IsDel == 0
|
|
|
+ var officialList = _sqlSugar.Queryable<Res_OfficialActivities, Grp_DelegationInfo>((x, a) =>
|
|
|
+ new JoinQueryInfos(JoinType.Left, a.Id == x.DiId)
|
|
|
+ ).Where((x, a) => x.IsSubmitApproval == 0 && x.IsDel == 0 && a.IsDel == 0
|
|
|
&& a.VisitDate >= StartDateTime && a.VisitDate <= EndDateTime && a.IsSure == 1
|
|
|
)
|
|
|
.Select((x, a) => new
|
|
@@ -5443,11 +5432,11 @@ Group by PriceType ", dto.diId);
|
|
|
resultArr.Add(new ComputeRoyaltiesView
|
|
|
{
|
|
|
TeamName = groupinfo.TeamName,
|
|
|
- TeamId = groupinfo.Id,
|
|
|
+ TeamId = groupinfo.Id,
|
|
|
ChiArr = infos,
|
|
|
TeamLvStr = teamLv.Find(x => x.Id == groupinfo.TeamLevSId)?.Name,
|
|
|
VisitDate = groupinfo.VisitDate,
|
|
|
- Temp = temp,
|
|
|
+ Temp = temp,
|
|
|
Price = money,
|
|
|
});
|
|
|
}
|
|
@@ -5471,17 +5460,17 @@ Group by PriceType ", dto.diId);
|
|
|
)
|
|
|
.Where(whereExpression.ToExpression())
|
|
|
.Select((x, a, b) => new
|
|
|
- {
|
|
|
- a.Id,
|
|
|
- a.TeamName,
|
|
|
- a.VisitDate,
|
|
|
- a.TeamLevSId,
|
|
|
- a.VisitPNumber,
|
|
|
- a.VisitCountry,
|
|
|
- x.VisaDescription,
|
|
|
- x.VisaFreeNumber,
|
|
|
- x.VisaNumber,
|
|
|
- x.VisaPrice
|
|
|
+ {
|
|
|
+ a.Id,
|
|
|
+ a.TeamName,
|
|
|
+ a.VisitDate,
|
|
|
+ a.TeamLevSId,
|
|
|
+ a.VisitPNumber,
|
|
|
+ a.VisitCountry,
|
|
|
+ x.VisaDescription,
|
|
|
+ x.VisaFreeNumber,
|
|
|
+ x.VisaNumber,
|
|
|
+ x.VisaPrice
|
|
|
})
|
|
|
.ToList();
|
|
|
|
|
@@ -5507,21 +5496,21 @@ Group by PriceType ", dto.diId);
|
|
|
string info = $"签证 {visa.VisaDescription} {(visa.VisaPrice > 0 ? "" : "此笔为退费!")} 人数为{visa.VisaFreeNumber + visa.VisaNumber} 单价为{singlePrice} 金额为{singlePrice * (visa.VisaFreeNumber + visa.VisaNumber)}";
|
|
|
arr.Add(info);
|
|
|
}
|
|
|
-
|
|
|
- string temp = "本团人数" + groupinfo.VisitPNumber + ",该人员" + user.CnName + "共办理英国、加拿大、美国签证" + (singlePrice == 50 ? count : 0).ToString() + "本护照(包含免签人员),申根国家及其他所有国家" + (singlePrice == 30 ? count : 0).ToString() + "本。" + user.CnName + "提成共" + money.ToString("#0.00") + "元";
|
|
|
+
|
|
|
+ string temp = "本团人数" + groupinfo.VisitPNumber + ",该人员" + user.CnName + "共办理英国、加拿大、美国签证" + (singlePrice == 50 ? count : 0).ToString() + "本护照(包含免签人员),申根国家及其他所有国家" + (singlePrice == 30 ? count : 0).ToString() + "本。" + user.CnName + "提成共" + money.ToString("#0.00") + "元";
|
|
|
|
|
|
resultArr.Add(new ComputeRoyaltiesView
|
|
|
{
|
|
|
- TeamName = groupinfo.TeamName,
|
|
|
+ TeamName = groupinfo.TeamName,
|
|
|
TeamId = groupinfo.Id,
|
|
|
ChiArr = arr,
|
|
|
TeamLvStr = teamLv.Find(x => x.Id == groupinfo.TeamLevSId)?.Name,
|
|
|
- VisitDate = groupinfo.VisitDate,
|
|
|
- Temp = temp,
|
|
|
+ VisitDate = groupinfo.VisitDate,
|
|
|
+ Temp = temp,
|
|
|
Price = money,
|
|
|
});
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
}
|
|
|
|
|
|
if (resultArr.Count > 0)
|
|
@@ -5548,7 +5537,7 @@ Group by PriceType ", dto.diId);
|
|
|
}
|
|
|
|
|
|
return Ok(jw);
|
|
|
-
|
|
|
+
|
|
|
}
|
|
|
|
|
|
|
|
@@ -5568,7 +5557,7 @@ Group by PriceType ", dto.diId);
|
|
|
UserId = dto.UserId,
|
|
|
});
|
|
|
|
|
|
- var parseApiResult = ((apiResult as OkObjectResult)?.Value) as OASystem.Domain.ViewModels.JsonView;
|
|
|
+ var parseApiResult = ((apiResult as OkObjectResult)?.Value) as OASystem.Domain.ViewModels.JsonView;
|
|
|
|
|
|
if (parseApiResult != null && parseApiResult.Code == 200)
|
|
|
{
|
|
@@ -5585,7 +5574,7 @@ Group by PriceType ", dto.diId);
|
|
|
dic.Add("operName", user.CnName);
|
|
|
dic.Add("timeNow", DateTime.Now.ToString("yyyy年MM月dd日"));
|
|
|
|
|
|
- dic.Add("totalPrice",( "总金额:" + parseApiResult.Data?.GetType().GetProperty("totalPrice")?.GetValue(parseApiResult.Data).ObjToDecimal().ToString() ?? "0") +" 元");
|
|
|
+ dic.Add("totalPrice", ("总金额:" + parseApiResult.Data?.GetType().GetProperty("totalPrice")?.GetValue(parseApiResult.Data).ObjToDecimal().ToString() ?? "0") + " 元");
|
|
|
|
|
|
ArrayList ToTableArr = new ArrayList();
|
|
|
int No = 1;
|
|
@@ -5600,14 +5589,14 @@ Group by PriceType ", dto.diId);
|
|
|
item.VisitDate,
|
|
|
item.TeamLvStr,
|
|
|
item.Temp,
|
|
|
- infos = string.Join("\r\n",item.ChiArr),
|
|
|
+ infos = string.Join("\r\n", item.ChiArr),
|
|
|
price = item.Price + "元",
|
|
|
});
|
|
|
|
|
|
No++;
|
|
|
}
|
|
|
|
|
|
- DataTable TbData =CommonFun.ToDataTableArray(ToTableArr);
|
|
|
+ DataTable TbData = CommonFun.ToDataTableArray(ToTableArr);
|
|
|
TbData.TableName = "TbData";
|
|
|
|
|
|
WorkbookDesigner designer = new WorkbookDesigner();
|
|
@@ -5622,11 +5611,11 @@ Group by PriceType ", dto.diId);
|
|
|
designer.SetDataSource(TbData);
|
|
|
designer.Process();
|
|
|
|
|
|
- designer.Workbook.Save(AppSettingsHelper.Get("ExcelBasePath") + "RoyaltyExcel/" + user.CnName + "_提成结算.xlsx" );
|
|
|
+ designer.Workbook.Save(AppSettingsHelper.Get("ExcelBasePath") + "RoyaltyExcel/" + user.CnName + "_提成结算.xlsx");
|
|
|
|
|
|
jw = JsonView(true, "success!", new
|
|
|
{
|
|
|
- Url = AppSettingsHelper.Get("ExcelBaseUrl") + AppSettingsHelper.Get("ExcelFtpPath")+ "RoyaltyExcel/" + user.CnName + "_提成结算.xlsx",
|
|
|
+ Url = AppSettingsHelper.Get("ExcelBaseUrl") + AppSettingsHelper.Get("ExcelFtpPath") + "RoyaltyExcel/" + user.CnName + "_提成结算.xlsx",
|
|
|
});
|
|
|
}
|
|
|
}
|
|
@@ -5723,8 +5712,8 @@ Group by PriceType ", dto.diId);
|
|
|
var title = "提成确认";
|
|
|
var center = $"【{dto.StartData}】 - 【{dto.EndData}】提成财务已确认,请尽快查看!";
|
|
|
|
|
|
- var ids = new List<int> { 235 , 233 };
|
|
|
- await GeneralMethod.MessageIssueAndNotification(MessageTypeEnum.GroupBusinessOperations,title, center, ids);
|
|
|
+ var ids = new List<int> { 235, 233 };
|
|
|
+ await GeneralMethod.MessageIssueAndNotification(MessageTypeEnum.GroupBusinessOperations, title, center, ids);
|
|
|
|
|
|
jw = JsonView(true, $"人员:{user.CnName} {dto.StartData}-{dto.EndData} 通知成功!");
|
|
|
}
|
|
@@ -5736,7 +5725,7 @@ Group by PriceType ", dto.diId);
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- jw = JsonView(false,"保存失败! 无提成信息");
|
|
|
+ jw = JsonView(false, "保存失败! 无提成信息");
|
|
|
}
|
|
|
|
|
|
return Ok(jw);
|
|
@@ -5780,7 +5769,7 @@ Group by PriceType ", dto.diId);
|
|
|
.And(it => it.VisitDate <= EndDateTime)
|
|
|
.And(it => it.IsDel == 0)
|
|
|
.And(it => it.UserId == dto.UserId)
|
|
|
- .AndIF(dto.Confirm != -1,it => it.IsConfirm == dto.Confirm)
|
|
|
+ .AndIF(dto.Confirm != -1, it => it.IsConfirm == dto.Confirm)
|
|
|
.AndIF(dto.Send != -1, it => it.IsSeed == dto.Send)
|
|
|
.ToExpression();
|
|
|
|
|
@@ -5803,8 +5792,8 @@ Group by PriceType ", dto.diId);
|
|
|
jw = JsonView(true, "获取成功!", new
|
|
|
{
|
|
|
List = query,
|
|
|
- CostPrice = query.Sum(x=>x.Price),
|
|
|
- ConfirmPrice = query.Where(x=>x.IsConfirm == 1).Sum(x=>x.Price),
|
|
|
+ CostPrice = query.Sum(x => x.Price),
|
|
|
+ ConfirmPrice = query.Where(x => x.IsConfirm == 1).Sum(x => x.Price),
|
|
|
NoConfirmPrice = query.Where(x => x.IsConfirm == 0).Sum(x => x.Price),
|
|
|
SeedPrice = query.Where(x => x.IsSeed == 1).Sum(x => x.Price),
|
|
|
NoSeedPrice = query.Where(x => x.IsSeed == 0).Sum(x => x.Price),
|
|
@@ -5828,21 +5817,21 @@ Group by PriceType ", dto.diId);
|
|
|
{
|
|
|
var jw = JsonView(false);
|
|
|
|
|
|
- var stateArr = new int[] {0 , 1};
|
|
|
+ var stateArr = new int[] { 0, 1 };
|
|
|
|
|
|
if (!stateArr.Contains(dto.State))
|
|
|
{
|
|
|
- return Ok(JsonView(false,"状态标识有误!"));
|
|
|
+ return Ok(JsonView(false, "状态标识有误!"));
|
|
|
}
|
|
|
|
|
|
if (dto.Data != null && dto.Data.Count != 0)
|
|
|
{
|
|
|
var expressionUpdateWhere = Expressionable.Create<Fin_RoyaltyConfirm>()
|
|
|
- .And(it => dto.Data.Contains (it.Id))
|
|
|
+ .And(it => dto.Data.Contains(it.Id))
|
|
|
.And(it => it.IsDel == 0)
|
|
|
.ToExpression();
|
|
|
|
|
|
- var count = _sqlSugar.Updateable<Fin_RoyaltyConfirm>().SetColumns(x => new Fin_RoyaltyConfirm
|
|
|
+ var count = _sqlSugar.Updateable<Fin_RoyaltyConfirm>().SetColumns(x => new Fin_RoyaltyConfirm
|
|
|
{
|
|
|
IsConfirm = dto.State,
|
|
|
})
|
|
@@ -5902,9 +5891,9 @@ Group by PriceType ", dto.diId);
|
|
|
.ToExpression();
|
|
|
|
|
|
var DbQueryConfirmInfo = _sqlSugar.Queryable<Fin_RoyaltyConfirm>()
|
|
|
- .LeftJoin<Sys_Users>((r,s) => s.IsDel == 0 && s.Id == r.UserId)
|
|
|
- .LeftJoin<Sys_JobPost>((r, s , p) => p.IsDel == 0 && p.Id == s.JobPostId)
|
|
|
- .LeftJoin<Sys_Department>((r, s, p , d) => d.IsDel == 0 && d.Id == p.DepId)
|
|
|
+ .LeftJoin<Sys_Users>((r, s) => s.IsDel == 0 && s.Id == r.UserId)
|
|
|
+ .LeftJoin<Sys_JobPost>((r, s, p) => p.IsDel == 0 && p.Id == s.JobPostId)
|
|
|
+ .LeftJoin<Sys_Department>((r, s, p, d) => d.IsDel == 0 && d.Id == p.DepId)
|
|
|
.LeftJoin<Sys_Company>((r, s, p, d, c) => c.IsDel == 0 && c.Id == d.CompanyId)
|
|
|
.Where(queryExpression)
|
|
|
.Select((r, s, p, d, c) => new
|
|
@@ -5914,7 +5903,7 @@ Group by PriceType ", dto.diId);
|
|
|
r.Id,
|
|
|
r.TeamName,
|
|
|
r.Price,
|
|
|
- s.CnName,
|
|
|
+ s.CnName,
|
|
|
p.JobName,
|
|
|
d.DepName,
|
|
|
c.CompanyName
|
|
@@ -5936,12 +5925,12 @@ Group by PriceType ", dto.diId);
|
|
|
first.DepName,
|
|
|
first.JobName,
|
|
|
first.CnName,
|
|
|
- SumPrice = item.Sum(x=>x.Price),
|
|
|
- RoyaltyIdArr = item.Select(x=>x.Id)
|
|
|
+ SumPrice = item.Sum(x => x.Price),
|
|
|
+ RoyaltyIdArr = item.Select(x => x.Id)
|
|
|
});
|
|
|
}
|
|
|
|
|
|
- jw = JsonView(true,"获取成功!",returnData);
|
|
|
+ jw = JsonView(true, "获取成功!", returnData);
|
|
|
|
|
|
return Ok(jw);
|
|
|
}
|
|
@@ -5953,7 +5942,7 @@ Group by PriceType ", dto.diId);
|
|
|
[HttpPost]
|
|
|
public async Task<IActionResult> RoyaltyFormPrice(RoyaltyFromPriceDto dto)
|
|
|
{
|
|
|
- var jw = JsonView(false,"用户ID为空!");
|
|
|
+ var jw = JsonView(false, "用户ID为空!");
|
|
|
|
|
|
var User = _sqlSugar.Queryable<Sys_Users>().First(x => x.Id
|
|
|
== dto.CreateId && x.IsDel == 0);
|
|
@@ -5968,7 +5957,7 @@ Group by PriceType ", dto.diId);
|
|
|
var queryExpression = Expressionable.Create<Fin_RoyaltyConfirm>()
|
|
|
.And(r => r.IsDel == 0)
|
|
|
.And(r => r.IsConfirm == 1)
|
|
|
- .And(r => dto.Items.Select(x=>x.UserId).Contains(r.UserId))
|
|
|
+ .And(r => dto.Items.Select(x => x.UserId).Contains(r.UserId))
|
|
|
.ToExpression();
|
|
|
|
|
|
var DbQueryConfirmInfo = _sqlSugar.Queryable<Fin_RoyaltyConfirm>()
|
|
@@ -5996,10 +5985,10 @@ Group by PriceType ", dto.diId);
|
|
|
|
|
|
var existsDb = _sqlSugar.Queryable<Fin_RoyaltyForm>()
|
|
|
.Where(x => dto.Items
|
|
|
- .Select(x => x.UserId).Contains(x.UserId) && x.IsDel == 0 )
|
|
|
+ .Select(x => x.UserId).Contains(x.UserId) && x.IsDel == 0)
|
|
|
.ToList();
|
|
|
|
|
|
- var GroupByConfirmInfo = DbQueryConfirmInfo.GroupBy(x => x.UserId ).ToList();
|
|
|
+ var GroupByConfirmInfo = DbQueryConfirmInfo.GroupBy(x => x.UserId).ToList();
|
|
|
|
|
|
List<Fin_RoyaltyForm> relevanceSoure = new List<Fin_RoyaltyForm>();
|
|
|
|
|
@@ -6028,9 +6017,9 @@ Group by PriceType ", dto.diId);
|
|
|
var reqBody = dto.Items.Find(x => x.UserId == item.Key);
|
|
|
var exists = item.Where(x => reqBody!.ChiArr.Contains(x.Id));
|
|
|
var existsDbByUser = existsDb.Where(x => x.UserId == item.Key);
|
|
|
- var idsByUser = string.Join(',',existsDbByUser.Select(x=>x.ConfirmIdArr));
|
|
|
+ var idsByUser = string.Join(',', existsDbByUser.Select(x => x.ConfirmIdArr));
|
|
|
var idsByUserList = idsByUser.Split(',')
|
|
|
- .Select(x=>
|
|
|
+ .Select(x =>
|
|
|
{
|
|
|
if (!string.IsNullOrWhiteSpace(x) && int.TryParse(x, out int intx))
|
|
|
{
|
|
@@ -6045,7 +6034,8 @@ Group by PriceType ", dto.diId);
|
|
|
var yesPrice = existsYes.Sum(x => x.Price);
|
|
|
var savePrice = saveArr.Sum(x => x.Price);
|
|
|
|
|
|
- if (saveArr.Count() > 0) {
|
|
|
+ if (saveArr.Count() > 0)
|
|
|
+ {
|
|
|
|
|
|
ChiDayPrice.Add(new
|
|
|
AddDailyFeePaymentContentDto
|
|
@@ -6067,10 +6057,12 @@ Group by PriceType ", dto.diId);
|
|
|
});
|
|
|
}
|
|
|
|
|
|
- if (yesPrice > 0 ) {
|
|
|
+ if (yesPrice > 0)
|
|
|
+ {
|
|
|
message += $"{first.CnName} 提成 {savePrice}元已导入日付申请 , {yesPrice} 元已经存在 ! \r\n";
|
|
|
}
|
|
|
- else {
|
|
|
+ else
|
|
|
+ {
|
|
|
message += $"{first.CnName} 提成 {savePrice}元已导入日付申请 ! \r\n";
|
|
|
}
|
|
|
}
|
|
@@ -6116,7 +6108,7 @@ Group by PriceType ", dto.diId);
|
|
|
|
|
|
|
|
|
[HttpGet]
|
|
|
- public async Task<IActionResult> GroupUnAuditFeeList(string beginDt,string endDt,string teamName)
|
|
|
+ public async Task<IActionResult> GroupUnAuditFeeList(string beginDt, string endDt, string teamName)
|
|
|
{
|
|
|
var jw = JsonView(false);
|
|
|
|
|
@@ -6163,16 +6155,16 @@ Group by PriceType ", dto.diId);
|
|
|
|
|
|
|
|
|
var hotelDatas = _sqlSugar.Queryable<Grp_HotelReservations>()
|
|
|
- .InnerJoin<Grp_CreditCardPayment>((hr,ccp) => hr.Id == ccp.CId &&
|
|
|
+ .InnerJoin<Grp_CreditCardPayment>((hr, ccp) => hr.Id == ccp.CId &&
|
|
|
ccp.CTable == 76 &&
|
|
|
ccp.IsDel == 0
|
|
|
)
|
|
|
.Where((hr, ccp) => hr.IsDel == 0 && _groupIds.Contains(hr.DiId) && ccp.IsAuditGM == 0)
|
|
|
.ToList();
|
|
|
var hotelContentDatas = _sqlSugar.Queryable<Grp_HotelReservationsContent>()
|
|
|
- .Where(it => it.IsDel == 0 &&
|
|
|
- it.IsPay == 0 &&
|
|
|
- it.Price != 0 &&
|
|
|
+ .Where(it => it.IsDel == 0 &&
|
|
|
+ it.IsPay == 0 &&
|
|
|
+ it.Price != 0 &&
|
|
|
_groupIds.Contains(it.DiId)
|
|
|
)
|
|
|
.ToList();
|
|
@@ -6494,7 +6486,7 @@ Group by PriceType ", dto.diId);
|
|
|
|
|
|
foreach (var item in dataList)
|
|
|
{
|
|
|
- if (item.CNYTotalAmount > 0 && item.ChildList.Count >0)
|
|
|
+ if (item.CNYTotalAmount > 0 && item.ChildList.Count > 0)
|
|
|
{
|
|
|
dataList1.Add(item);
|
|
|
}
|