|
@@ -2778,9 +2778,9 @@ namespace OASystem.API.Controllers
|
|
|
if (item.CrmCompanyId != 0)
|
|
|
{
|
|
|
Crm_CustomerCompany crm_Customer = await _sqlSugar.Queryable<Crm_CustomerCompany>().FirstAsync(a => a.Id == item.CrmCompanyId && a.IsDel == 0);
|
|
|
- if (!transDic.ContainsKey(crm_Customer.CompanyName))
|
|
|
+ if (!transDic.ContainsKey(crm_Customer.CompanyFullName))
|
|
|
{
|
|
|
- texts.Add(crm_Customer.CompanyName);
|
|
|
+ texts.Add(crm_Customer.CompanyFullName);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -2820,7 +2820,7 @@ namespace OASystem.API.Controllers
|
|
|
}
|
|
|
guestList.DOB = dele.BirthDay.Replace('-', '.');
|
|
|
Crm_CustomerCompany crm_Customer = await _sqlSugar.Queryable<Crm_CustomerCompany>().FirstAsync(a => a.Id == dele.CrmCompanyId && a.IsDel == 0);
|
|
|
- string jobName = transDic.Where(s => s.Key == crm_Customer.CompanyName).FirstOrDefault().Value + " " + transDic.Where(s => s.Key == dele.Job).FirstOrDefault().Value;
|
|
|
+ string jobName = transDic.Where(s => s.Key == crm_Customer.CompanyFullName).FirstOrDefault().Value + " " + transDic.Where(s => s.Key == dele.Job).FirstOrDefault().Value;
|
|
|
|
|
|
guestList.Job = jobName;
|
|
|
list.Add(guestList);
|
|
@@ -2972,21 +2972,25 @@ namespace OASystem.API.Controllers
|
|
|
{
|
|
|
var groupNameData = await _groupRepository.GetGroupNameList(new GroupNameDto { PortType = dto.PortType });
|
|
|
|
|
|
- string currencySql = string.Format("Select * From Sys_SetData Where STid = 66 And IsDel = 0");
|
|
|
- var currencyData = await _sqlSugar.SqlQueryable<SetDataInfoView>(currencySql).ToListAsync();
|
|
|
+ string sql = string.Format("Select * From Sys_SetData Where IsDel = 0");
|
|
|
+ //SetDataInfoView
|
|
|
+ var dataSource = await _sqlSugar.SqlQueryable<Sys_SetData>(sql).ToListAsync();
|
|
|
|
|
|
+ var currencyData = dataSource.Where(it => it.STid == 66).ToList(); //所有币种
|
|
|
+ List<SetDataInfoView> _CurrencyData = _mapper.Map<List<SetDataInfoView>>(currencyData);
|
|
|
|
|
|
- //string nationalTravelFeeSql = string.Format(@"Select ssd.Name as CurrencyCode, ssd.Remark as CurrencyName,su.CnName as LastUpdateUserName,gntf.* From Grp_NationalTravelFee gntf
|
|
|
- // Left Join Sys_SetData ssd On ssd.STid = 66 And gntf.Currency = ssd.Id
|
|
|
- // Left Join Sys_Users su On gntf.LastUpdateUserId = su.Id
|
|
|
- // Where gntf.Isdel = 0");
|
|
|
- //var nationalTravelFeeData = await _sqlSugar.SqlQueryable<NationalTravelFeeInfoView>(nationalTravelFeeSql).ToListAsync();
|
|
|
+ var wordTypeData = dataSource.Where(it => it.STid == 72).ToList(); //三公费用-Word明细类型
|
|
|
+ List<SetDataInfoView> _WordTypeData = _mapper.Map<List<SetDataInfoView>>(wordTypeData);
|
|
|
|
|
|
+ var excelTypeData = dataSource.Where(it => it.STid == 73).ToList(); //三公费用-Excel明细类型
|
|
|
+ List<SetDataInfoView> _ExcelTypeData = _mapper.Map<List<SetDataInfoView>>(excelTypeData);
|
|
|
|
|
|
return Ok(JsonView(true, "查询成功!", new
|
|
|
{
|
|
|
GroupNameData = groupNameData.Data,
|
|
|
- CurrencyData = currencyData,
|
|
|
+ CurrencyData = _CurrencyData,
|
|
|
+ WordTypeData = _WordTypeData,
|
|
|
+ ExcelTypeData = _ExcelTypeData
|
|
|
//NationalTravelFeeData = nationalTravelFeeData
|
|
|
}));
|
|
|
}
|
|
@@ -3072,6 +3076,9 @@ namespace OASystem.API.Controllers
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
/// <summary>
|
|
|
/// 团组模块 - 出入境费用 - 子项删除
|
|
|
/// </summary>
|
|
@@ -4515,7 +4522,7 @@ namespace OASystem.API.Controllers
|
|
|
}
|
|
|
catch (Exception ex)
|
|
|
{
|
|
|
- return Ok(JsonView(false, ex.Message));
|
|
|
+ return Ok(JsonView(false, "Catch:"+ex.Message));
|
|
|
}
|
|
|
}
|
|
|
|