ソースを参照

优化成本信息查询逻辑

在 `FeeAuditRepository.cs` 中,移除了原有的 SQL 查询语句,并使用 `_sqlSugar.SqlQueryable<GroupCostAuditView>` 进行条件查询。同时,增加了对查询结果的计数检查,确保在未找到成本信息时返回相应提示信息。
LEIYI 1 週間 前
コミット
dc0e3a6d23
共有1 個のファイルを変更した0 個の追加1 個の削除を含む
  1. 0 1
      OASystem/OASystem.Infrastructure/Repositories/Groups/FeeAuditRepository.cs

+ 0 - 1
OASystem/OASystem.Infrastructure/Repositories/Groups/FeeAuditRepository.cs

@@ -72,7 +72,6 @@ namespace OASystem.Infrastructure.Repositories.Groups
                 //币种验证  统一为currencycode三字码
                 if (int.TryParse(_teamCurrency, out int currency)) _teamCurrency = setData.Find(x => x.Id == currency)?.Name ?? "";
 
-
                 string costContentSql = $"Select * From Grp_GroupCost";
                 costContents = _sqlSugar.SqlQueryable<GroupCostAuditView>(costContentSql).Where(x => x.IsDel == 0 && x.Diid == diId).ToList();