|
|
@@ -29273,7 +29273,7 @@ end as 'country'
|
|
|
#endregion
|
|
|
|
|
|
//Grp_GroupCostParameter 预算表 Grp_GroupCost 详细费用列表
|
|
|
- var _GroupCostParameters = _usersRep._sqlSugar.Queryable<Grp_GroupCostParameter>().Where(it => it.IsDel == 0 && it.DiId == dto.DiId).ToList();
|
|
|
+ var _GroupCostParameters = await _sqlSugar.Queryable<Grp_GroupCostParameter>().Where(it => it.IsDel == 0 && it.DiId == dto.DiId).ToListAsync();
|
|
|
|
|
|
if (_GroupCostParameters.Count <= 0)
|
|
|
{
|
|
|
@@ -29284,7 +29284,7 @@ end as 'country'
|
|
|
{
|
|
|
return Ok(JsonView(false, "该团组成本未完成!", new List<dynamic>()));
|
|
|
}
|
|
|
- var _GroupCosts = _usersRep._sqlSugar.Queryable<Grp_GroupCost>().Where(it => it.IsDel == 0 && it.Diid == dto.DiId).ToList();
|
|
|
+ var _GroupCosts = await _sqlSugar.Queryable<Grp_GroupCost>().Where(it => it.IsDel == 0 && it.Diid == dto.DiId).ToListAsync();
|
|
|
|
|
|
//处理date为空问题
|
|
|
if (_GroupCosts.Count > 0)
|
|
|
@@ -29304,7 +29304,7 @@ end as 'country'
|
|
|
GroupCostModulePromptView _view = new GroupCostModulePromptView();
|
|
|
List<GroupCostModulePromptInfo> _ModulePromptInfos = new List<GroupCostModulePromptInfo>(); //机票存储多段
|
|
|
|
|
|
- var currDatas = _sqlSugar.Queryable<Sys_SetData>().Where(it => it.IsDel == 0 && it.STid == 66).ToList();
|
|
|
+ var currDatas = await _sqlSugar.Queryable<Sys_SetData>().Where(it => it.IsDel == 0 && it.STid == 66).ToListAsync();
|
|
|
|
|
|
string currCode = "";
|
|
|
#region currCode 验证
|
|
|
@@ -29324,7 +29324,6 @@ end as 'country'
|
|
|
}
|
|
|
#endregion
|
|
|
|
|
|
-
|
|
|
//op,酒店单段模式存储
|
|
|
GroupCostModulePromptInfo _ModulePromptInfo = new GroupCostModulePromptInfo()
|
|
|
{
|
|
|
@@ -29364,7 +29363,6 @@ end as 'country'
|
|
|
//}
|
|
|
#endregion
|
|
|
|
|
|
-
|
|
|
GroupCostModulePromptInfo modulePromptInfo = new GroupCostModulePromptInfo()
|
|
|
{
|
|
|
CurrencyCode = currCode,
|
|
|
@@ -29491,7 +29489,7 @@ end as 'country'
|
|
|
AirZCB = (item.GWCRS * item.GWCCB)
|
|
|
}
|
|
|
);
|
|
|
- var groupCosts = _usersRep._sqlSugar.Queryable<Grp_GroupCost>().Where(it => it.IsDel == 0 && it.Diid == dto.DiId).ToList();
|
|
|
+ var groupCosts = await _sqlSugar.Queryable<Grp_GroupCost>().Where(it => it.IsDel == 0 && it.Diid == dto.DiId).ToListAsync();
|
|
|
var initDatas = groupCosts.Select(it => new { date = it.Date, week = it.Date.GetWeek() == "" ? "-" : it.Date.GetWeek(), itinerary = it.ITIN }).ToList();
|
|
|
|
|
|
modulePromptInfo.Data = new
|