Explorar o código

1.三公签证费用(签证费、代办费)
新增默认行数 不足10行 空行填充

leiy hai 11 meses
pai
achega
046bf9edc1

+ 15 - 0
OASystem/OASystem.Infrastructure/Repositories/Groups/VisaFeeInfoRepository.cs

@@ -65,6 +65,21 @@ namespace OASystem.Infrastructure.Repositories.Groups
                                           Left Join Res_CountryFeeCost cfc On vfi.CountryVisaFeeId = cfc.Id
                                           Where vfi.Isdel = 0  And vfi.Diid = {diId}");
             var data = await _sqlSugar.SqlQueryable<VisaFeeInfosView>(sql).ToListAsync();
+
+            //默认十行
+            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.Data = data;
             _result.Msg = "操作成功!";