Browse Source

倒推表
Create 签证国家调试

leiy 11 months ago
parent
commit
fa65880ec3

+ 10 - 10
OASystem/OASystem.Infrastructure/Repositories/Groups/InvertedListRepository.cs

@@ -131,7 +131,7 @@ namespace OASystem.Infrastructure.Repositories.Groups
             int ilId = info.Id;
             int ilId = info.Id;
 
 
             string visaSql = string.Format(@$"Select * From Grp_InvertedListVisaCountry Where Isdel={0} And ILId = {ilId}");
             string visaSql = string.Format(@$"Select * From Grp_InvertedListVisaCountry Where Isdel={0} And ILId = {ilId}");
-            var visaCountryInfo = await _sqlSugar.SqlQueryable<VisaCountryInfo>(sql).ToListAsync();
+            var visaCountryInfo = await _sqlSugar.SqlQueryable<VisaCountryInfo>(visaSql).ToListAsync();
 
 
             info.VisaCountryData = visaCountryInfo;
             info.VisaCountryData = visaCountryInfo;
             _result.Data = info;
             _result.Data = info;
@@ -201,14 +201,14 @@ namespace OASystem.Infrastructure.Repositories.Groups
              * 默认步骤所需提前天数
              * 默认步骤所需提前天数
              * A 自然日 B 工作日
              * A 自然日 B 工作日
              */
              */
-            int approvalData_advanceDays = 60,     //报批资料准备
-                approval_advanceDays = 45,         //报批
-                IssueApproval_advanceDays = 33,    //出批件
-                ApplyPassport_advanceDays = 30,    //办护照
-                VisaInformation_advanceDays = 16,  //签证资料准备
-                sendVisa_advanceDays = 12,         //送签
-                issueVisa_advanceDays = 5,         //出签
-                preTripMeeting_advanceDays = 3,    //行前会
+            int approvalData_advanceDays = -60,     //报批资料准备
+                approval_advanceDays = -45,         //报批
+                IssueApproval_advanceDays = -33,    //出批件
+                ApplyPassport_advanceDays = -30,    //办护照
+                VisaInformation_advanceDays = -16,  //签证资料准备
+                sendVisa_advanceDays = -12,         //送签
+                issueVisa_advanceDays = -5,         //出签
+                preTripMeeting_advanceDays = -3,    //行前会
                 airportdDropOff_advanceDays = 0;   //送机
                 airportdDropOff_advanceDays = 0;   //送机
 
 
             var info = new Grp_InvertedList() { 
             var info = new Grp_InvertedList() { 
@@ -250,7 +250,7 @@ namespace OASystem.Infrastructure.Repositories.Groups
                 });
                 });
             }
             }
 
 
-            int add2 = await _sqlSugar.Insertable<Grp_InvertedList>(info).ExecuteReturnIdentityAsync();
+            int add2 = await _sqlSugar.Insertable<Grp_InvertedListVisaCountry>(_InvertedListVisaCountries).ExecuteReturnIdentityAsync();
 
 
             _sqlSugar.CommitTran();
             _sqlSugar.CommitTran();
             _result.Code = 0;
             _result.Code = 0;