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>
16 lines
559 B
C#
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);
|
|
}
|
|
}
|