|
@@ -244,7 +244,7 @@ namespace OASystem.Infrastructure.Repositories.Groups
|
|
|
int endIndex = startIndex + dto.PageSize - 1;
|
|
|
if (dto.PortType == 1)
|
|
|
{
|
|
|
- string sql = string.Format(@"select t.*,s.Name as CurrencyStr,c.IsAuditGM,c.PayPercentage,c.PayMoney from
|
|
|
+ string sql = string.Format(@"select t.*,s.Name as CurrencyStr,c.IsAuditGM,c.PayPercentage,c.PayMoney,c.PayDid from
|
|
|
Grp_CarTouristGuideGroundReservations t
|
|
|
left Join Grp_CreditCardPayment c on CTable=79 and c.CId=t.Id and c.isdel=0
|
|
|
left Join Sys_SetData s on s.Id=c.PaymentCurrency {0}
|
|
@@ -255,13 +255,18 @@ namespace OASystem.Infrastructure.Repositories.Groups
|
|
|
item.ServiceQuotedPrice = item.PayMoney;
|
|
|
item.PayThenMoney = Math.Round(item.PayPercentage/100 * item.ServiceQuotedPrice, 2);
|
|
|
item.RemainingBalance = Math.Round(item.ServiceQuotedPrice- item.PayPercentage / 100 * item.ServiceQuotedPrice);
|
|
|
+ Sys_SetData s = _sqlSugar.Queryable<Sys_SetData>().First(a=>a.IsDel==0 && a.Id==item.PayDid);
|
|
|
+ if (s!=null)
|
|
|
+ {
|
|
|
+ item.PayStrd = s.Name;
|
|
|
+ }
|
|
|
}
|
|
|
return result = new Result() { Code = 0, Msg = "查询成功!", Data = infoViews };
|
|
|
}
|
|
|
else if (dto.PortType == 2 || dto.PortType == 3)
|
|
|
{
|
|
|
string sql = string.Format(@"Select * From (
|
|
|
- Select row_number() over (order by c.IsAuditGM,c.PayPercentage desc) as RowNumber,t.*,s.Name as CurrencyStr,c.IsAuditGM,c.PayPercentage
|
|
|
+ Select row_number() over (order by c.IsAuditGM,c.PayPercentage desc) as RowNumber,t.*,s.Name as CurrencyStr,c.IsAuditGM,c.PayPercentage,c.PayDid
|
|
|
from
|
|
|
Grp_CarTouristGuideGroundReservations t
|
|
|
Join Grp_CreditCardPayment c on CTable=79 and c.CId=t.Id and c.isdel=0
|
|
@@ -271,8 +276,14 @@ namespace OASystem.Infrastructure.Repositories.Groups
|
|
|
List<Grp_CarTouristGuideGroundView> grp_CarTourists = _sqlSugar.SqlQueryable<Grp_CarTouristGuideGroundView>(sql).ToList();
|
|
|
foreach (var item in grp_CarTourists)
|
|
|
{
|
|
|
+ item.ServiceQuotedPrice = item.PayMoney;
|
|
|
item.PayThenMoney = Math.Round(item.PayPercentage / 100 * item.ServiceQuotedPrice, 2);
|
|
|
item.RemainingBalance = Math.Round(item.ServiceQuotedPrice - item.PayPercentage / 100 * item.ServiceQuotedPrice);
|
|
|
+ Sys_SetData s = _sqlSugar.Queryable<Sys_SetData>().First(a => a.IsDel == 0 && a.Id == item.PayDid);
|
|
|
+ if (s != null)
|
|
|
+ {
|
|
|
+ item.PayStrd = s.Name;
|
|
|
+ }
|
|
|
}
|
|
|
string CountSql = string.Format(@"Select COUNT(1) as Count From (
|
|
|
select t.*,s.Name as CurrencyStr,c.IsAuditGM,c.PayPercentage from
|