|
@@ -69,28 +69,73 @@ namespace OASystem.Infrastructure.Repositories.Groups
|
|
var data = await _sqlSugar.SqlQueryable<VisaFeeInfosView>(sql).ToListAsync();
|
|
var data = await _sqlSugar.SqlQueryable<VisaFeeInfosView>(sql).ToListAsync();
|
|
|
|
|
|
//默认十行 雷怡 2024-26-08 11:26:40
|
|
//默认十行 雷怡 2024-26-08 11:26:40
|
|
- if (data.Count <= 10)
|
|
|
|
- {
|
|
|
|
- int defaultRow = 10 - data.Count;
|
|
|
|
- for (int i = 0; i < defaultRow; i++)
|
|
|
|
- {
|
|
|
|
- data.Add(new VisaFeeInfosView() {
|
|
|
|
- Id = 0,
|
|
|
|
- OBType =1
|
|
|
|
- });
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- else if (data.Count == 0)
|
|
|
|
|
|
+
|
|
|
|
+ if (data.Count == 0)
|
|
{
|
|
{
|
|
var groupInfo = await _groupRep.PostShareGroupInfo(new ShareGroupInfoDto() { PortType = 1, Id = diId });
|
|
var groupInfo = await _groupRep.PostShareGroupInfo(new ShareGroupInfoDto() { PortType = 1, Id = diId });
|
|
List<string> countrys = new List<string>();
|
|
List<string> countrys = new List<string>();
|
|
- if (groupInfo.Code == 0) {
|
|
|
|
|
|
+ if (groupInfo.Code == 0)
|
|
|
|
+ {
|
|
countrys = _groupRep.GroupSplitCountry((groupInfo.Data as Web_ShareGroupInfoView)?.VisitCountry ?? "");
|
|
countrys = _groupRep.GroupSplitCountry((groupInfo.Data as Web_ShareGroupInfoView)?.VisitCountry ?? "");
|
|
}
|
|
}
|
|
|
|
|
|
if (countrys.Count > 0)
|
|
if (countrys.Count > 0)
|
|
{
|
|
{
|
|
|
|
+ int dataRow = 0;
|
|
|
|
|
|
|
|
+ foreach (var country in countrys)
|
|
|
|
+ {
|
|
|
|
+ var countryInfo = _sqlSugar.Queryable<Res_CountryFeeCost>().Where(it => it.IsDel == 0 && it.VisaCountry.Equals(country)).First();
|
|
|
|
+ if (countryInfo != null)
|
|
|
|
+ {
|
|
|
|
+ data.Add(new VisaFeeInfosView()
|
|
|
|
+ {
|
|
|
|
+ IsChecked = 0,
|
|
|
|
+ Country = country,
|
|
|
|
+ VisaFee = countryInfo.VisaPrice,
|
|
|
|
+ OBType = 1,
|
|
|
|
+ AgencyFee = countryInfo.GrandBusinessAgencyFee
|
|
|
|
+ });
|
|
|
|
+
|
|
|
|
+ data.Add(new VisaFeeInfosView()
|
|
|
|
+ {
|
|
|
|
+ IsChecked = 0,
|
|
|
|
+ Country = country,
|
|
|
|
+ VisaFee = countryInfo.VisaPrice,
|
|
|
|
+ OBType = 2,
|
|
|
|
+ AgencyFee = countryInfo.PettyBusinessAgencyFee
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ else
|
|
|
|
+ {
|
|
|
|
+ data.Add(new VisaFeeInfosView()
|
|
|
|
+ {
|
|
|
|
+ IsChecked = 0,
|
|
|
|
+ Country = country,
|
|
|
|
+ OBType = 1,
|
|
|
|
+ });
|
|
|
|
+
|
|
|
|
+ data.Add(new VisaFeeInfosView()
|
|
|
|
+ {
|
|
|
|
+ IsChecked = 0,
|
|
|
|
+ Country = country,
|
|
|
|
+ OBType = 2,
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ if (data.Count < 10)
|
|
|
|
+ {
|
|
|
|
+ int defaultRow = 10 - data.Count;
|
|
|
|
+ for (int i = 0; i < defaultRow; i++)
|
|
|
|
+ {
|
|
|
|
+ data.Add(new VisaFeeInfosView()
|
|
|
|
+ {
|
|
|
|
+ Id = 0,
|
|
|
|
+ OBType = 1
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ }
|
|
}
|
|
}
|
|
else
|
|
else
|
|
{
|
|
{
|
|
@@ -104,7 +149,18 @@ namespace OASystem.Infrastructure.Repositories.Groups
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+ else if (data.Count <= 10)
|
|
|
|
+ {
|
|
|
|
+ int defaultRow = 10 - data.Count;
|
|
|
|
+ for (int i = 0; i < defaultRow; i++)
|
|
|
|
+ {
|
|
|
|
+ data.Add(new VisaFeeInfosView()
|
|
|
|
+ {
|
|
|
|
+ Id = 0,
|
|
|
|
+ OBType = 1
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ }
|
|
_result.Code = 0;
|
|
_result.Code = 0;
|
|
_result.Data = data;
|
|
_result.Data = data;
|
|
_result.Msg = "操作成功!";
|
|
_result.Msg = "操作成功!";
|