|
@@ -252,14 +252,20 @@ namespace OASystem.Infrastructure.Repositories.Groups
|
|
List<Grp_CarTouristGuideGroundView> infoViews = _sqlSugar.SqlQueryable<Grp_CarTouristGuideGroundView>(sql).ToList();
|
|
List<Grp_CarTouristGuideGroundView> infoViews = _sqlSugar.SqlQueryable<Grp_CarTouristGuideGroundView>(sql).ToList();
|
|
foreach (var item in infoViews)
|
|
foreach (var item in infoViews)
|
|
{
|
|
{
|
|
|
|
+ item.ServiceStartTime = Convert.ToDateTime(item.ServiceStartTime).ToString("yyyy-MM-dd");
|
|
|
|
+ item.ServiceEndTime = Convert.ToDateTime(item.ServiceEndTime).ToString("yyyy-MM-dd");
|
|
item.ServiceQuotedPrice = item.PayMoney;
|
|
item.ServiceQuotedPrice = item.PayMoney;
|
|
item.PayThenMoney = Math.Round(item.PayPercentage/100 * item.ServiceQuotedPrice, 2);
|
|
item.PayThenMoney = Math.Round(item.PayPercentage/100 * item.ServiceQuotedPrice, 2);
|
|
item.RemainingBalance = Math.Round(item.ServiceQuotedPrice- item.PayPercentage / 100 * item.ServiceQuotedPrice);
|
|
item.RemainingBalance = Math.Round(item.ServiceQuotedPrice- item.PayPercentage / 100 * item.ServiceQuotedPrice);
|
|
|
|
+ if (item.IsAuditGM == 0) item.IsAuditGMStr = "未审核";
|
|
|
|
+ else if (item.IsAuditGM == 1) item.IsAuditGMStr = "已通过";
|
|
|
|
+ else if (item.IsAuditGM == 2) item.IsAuditGMStr = "未通过";
|
|
|
|
+ else if (item.IsAuditGM == 3) item.IsAuditGMStr = "自动审核";
|
|
Sys_SetData s = _sqlSugar.Queryable<Sys_SetData>().First(a=>a.IsDel==0 && a.Id==item.PayDid);
|
|
Sys_SetData s = _sqlSugar.Queryable<Sys_SetData>().First(a=>a.IsDel==0 && a.Id==item.PayDid);
|
|
if (s!=null)
|
|
if (s!=null)
|
|
{
|
|
{
|
|
item.PayStrd = s.Name;
|
|
item.PayStrd = s.Name;
|
|
- }
|
|
|
|
|
|
+ }else item.PayStrd ="未选择";
|
|
}
|
|
}
|
|
return result = new Result() { Code = 0, Msg = "查询成功!", Data = infoViews };
|
|
return result = new Result() { Code = 0, Msg = "查询成功!", Data = infoViews };
|
|
}
|
|
}
|
|
@@ -276,6 +282,12 @@ namespace OASystem.Infrastructure.Repositories.Groups
|
|
List<Grp_CarTouristGuideGroundView> grp_CarTourists = _sqlSugar.SqlQueryable<Grp_CarTouristGuideGroundView>(sql).ToList();
|
|
List<Grp_CarTouristGuideGroundView> grp_CarTourists = _sqlSugar.SqlQueryable<Grp_CarTouristGuideGroundView>(sql).ToList();
|
|
foreach (var item in grp_CarTourists)
|
|
foreach (var item in grp_CarTourists)
|
|
{
|
|
{
|
|
|
|
+ item.ServiceStartTime = Convert.ToDateTime(item.ServiceStartTime).ToString("yyyy-MM-dd");
|
|
|
|
+ item.ServiceEndTime = Convert.ToDateTime(item.ServiceEndTime).ToString("yyyy-MM-dd");
|
|
|
|
+ if (item.IsAuditGM == 0) item.IsAuditGMStr = "未审核";
|
|
|
|
+ else if (item.IsAuditGM == 1) item.IsAuditGMStr = "已通过";
|
|
|
|
+ else if (item.IsAuditGM == 2) item.IsAuditGMStr = "未通过";
|
|
|
|
+ else if (item.IsAuditGM == 3) item.IsAuditGMStr = "自动审核";
|
|
item.ServiceQuotedPrice = item.PayMoney;
|
|
item.ServiceQuotedPrice = item.PayMoney;
|
|
item.PayThenMoney = Math.Round(item.PayPercentage / 100 * item.ServiceQuotedPrice, 2);
|
|
item.PayThenMoney = Math.Round(item.PayPercentage / 100 * item.ServiceQuotedPrice, 2);
|
|
item.RemainingBalance = Math.Round(item.ServiceQuotedPrice - item.PayPercentage / 100 * item.ServiceQuotedPrice);
|
|
item.RemainingBalance = Math.Round(item.ServiceQuotedPrice - item.PayPercentage / 100 * item.ServiceQuotedPrice);
|
|
@@ -284,6 +296,7 @@ namespace OASystem.Infrastructure.Repositories.Groups
|
|
{
|
|
{
|
|
item.PayStrd = s.Name;
|
|
item.PayStrd = s.Name;
|
|
}
|
|
}
|
|
|
|
+ else item.PayStrd = "未选择";
|
|
}
|
|
}
|
|
string CountSql = string.Format(@"Select COUNT(1) as Count From (
|
|
string CountSql = string.Format(@"Select COUNT(1) as Count From (
|
|
select t.*,s.Name as CurrencyStr,c.IsAuditGM,c.PayPercentage from
|
|
select t.*,s.Name as CurrencyStr,c.IsAuditGM,c.PayPercentage from
|