admin/src/Oms.SqlSugarCore/Customers/CustomerAccountFlowRepository.cs
zzh d766343ffe feat(customer): account flow ledger, pay deduct balance, status counts
Add t_customer_account_flow with list API, deduct balance on order pay, credit ledger on recharge approve, and GET /order/status-counts for tab badges.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-26 19:09:43 +08:00

16 lines
559 B
C#

using Fake.DependencyInjection;
using Oms.Domain.CustomersAggregate.Entities;
using Oms.Domain.CustomersAggregate.Repositories;
using Oms.SqlSugarCore.Repositories;
namespace Oms.SqlSugarCore.Customers;
public class CustomerAccountFlowRepository
: OmsSqlSugarRepository<CustomerAccountFlow>, ICustomerAccountFlowRepository, IScopedDependency
{
public Task<bool> ExistsSerialNumberAsync(string serialNumber, CancellationToken cancellationToken = default)
{
return AnyAsync(x => x.SerialNumber == serialNumber, cancellationToken);
}
}