fix 券发放查询增加厂区

This commit is contained in:
2025-12-17 11:06:18 +08:00
parent 4bca8859ef
commit 54ed9e5933
5 changed files with 17 additions and 8 deletions

View File

@@ -30,7 +30,10 @@ public class WalletService : IWalletService
{
Code = x.Code,
Name = x.Name + "钱包",
Factories = SqlFunc.Subqueryable<WalletEntity>().Where(p => p.Code == x.Code).ToList(p => p.Factory)
Factories = SqlFunc.Subqueryable<WalletEntity>()
.Where(p => p.Code == x.Code)
.Where(p => p.IsDeleted == false)
.ToList(p => p.Factory)
})
.ToListAsync();
}