leiy 1 年之前
父節點
當前提交
7a4a479586
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      OASystem/OASystem.Infrastructure/Repositories/Groups/VisaFeeInfoRepository.cs

+ 2 - 2
OASystem/OASystem.Infrastructure/Repositories/Groups/VisaFeeInfoRepository.cs

@@ -165,9 +165,9 @@ namespace OASystem.Infrastructure.Repositories.Groups
         {
             if (diId < 1) return _result = new Result() { Code = -1, Msg = "请传入有效的DiId参数" };
 
-            var visaData = await _sqlSugar.Queryable<Grp_VisaFeeInfo>().Where(it => it.IsDel == 0).ToListAsync();
+            var visaData = await _sqlSugar.Queryable<Grp_VisaFeeInfo>().Where(it => it.IsDel == 0 && it.DiId == diId).ToListAsync();
             List<int> ids = visaData.Select (it => it.CountryVisaFeeId).ToList();
-            var visaCountryDatas = await _sqlSugar.Queryable< Res_CountryFeeCost >().Where(it => ids.Contains(it.Id)).ToListAsync();
+            var visaCountryDatas = await _sqlSugar.Queryable<Res_CountryFeeCost>().Where(it => ids.Contains(it.Id)).ToListAsync();
 
             List<dynamic> datas = new List<dynamic>();
             string remark = "";