leiy месяцев назад: 10
Родитель
Сommit
eea96c2936

+ 37 - 1
OASystem/OASystem.Infrastructure/Repositories/Groups/InvertedListRepository.cs

@@ -108,7 +108,6 @@ namespace OASystem.Infrastructure.Repositories.Groups
 
                 string sqqzRemark = "";
 
-
                 //签证费用标准
                 var visaFeeDatas = await _sqlSugar.Queryable<Res_CountryFeeCost>().Where(it => it.IsDel == 0).ToListAsync();
                 List<VisaCountryInfo> visaCountryInfos = new List<VisaCountryInfo>();
@@ -221,6 +220,40 @@ namespace OASystem.Infrastructure.Repositories.Groups
             //签证费用标准
             var visaFeeDatas = await _sqlSugar.Queryable<Res_CountryFeeCost>().Where(it => it.IsDel == 0).ToListAsync();
 
+            string sqqzRemark = "";
+
+            List<VisaCountryInfo> visaCountryInfos = new List<VisaCountryInfo>();
+
+            string countryStr = "";
+            string countryDesc = "";
+            foreach (var item in visitCountry)
+            {
+
+                int visaDays = Convert.ToInt32(visaFeeDatas.Find(it => it.VisaCountry.Equals(item.Trim()))?.VisaTime ?? "0");
+                visaCountryInfos.Add(new VisaCountryInfo()
+                {
+                    Country = item,
+                    OfficialTypeId = -1,
+                    VisaTypeId = -1,
+                    VisaDay = visaDays
+                });
+
+                countryStr += $"{item}、";
+                countryDesc += $"{item}签证{visaDays}个工作日,";
+            }
+
+            if (countryStr.Length > 0)
+            {
+                countryStr = countryStr.Substring(0, countryStr.Length - 1);
+            }
+
+            if (countryDesc.Length > 0)
+            {
+                countryDesc = countryDesc.Substring(0, countryDesc.Length - 1);
+            }
+
+            sqqzRemark = $"申请{countryStr}签证;{countryDesc}\r\n(签证周期仅供参考)";
+
 
             /*
              * 默认步骤所需提前天数
@@ -250,6 +283,9 @@ namespace OASystem.Infrastructure.Repositories.Groups
                 AirportdDropOffDt = visitDt.AddDays(airportdDropOff_advanceDays).ToString("yyyy-MM-dd"),
                 CreateUserId = userId,
             };
+
+            if (!string.IsNullOrEmpty(sqqzRemark)) info.SendVisaRemark = sqqzRemark;
+
             _sqlSugar.BeginTran();
 
             int add1 = await _sqlSugar.Insertable<Grp_InvertedList>(info).ExecuteReturnIdentityAsync();