Browse Source

优化成本信息查询逻辑

在 `FeeAuditRepository.cs` 中,移除了原有的 SQL 查询语句,并使用 `_sqlSugar.SqlQueryable<GroupCostAuditView>` 进行条件查询。同时,增加了对查询结果的计数检查,确保在未找到成本信息时返回相应提示信息。
LEIYI 1 week ago
parent
commit
dc0e3a6d23

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

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