All checks were successful
Build and Deploy / deploy (push) Successful in 1m22s
新增合同与付款申请全链路 API、审批接入及迁移脚本;抬头列表附带客户信息便于管理端展示。 Co-authored-by: Cursor <cursoragent@cursor.com>
39 lines
1.3 KiB
C#
39 lines
1.3 KiB
C#
using Fake.Domain.Repositories;
|
|
using Oms.Domain.FinanceAggregate.Entities;
|
|
|
|
namespace Oms.Domain.FinanceAggregate.Repositories;
|
|
|
|
public interface IFinanceSupplierRepository : IRepository<FinanceSupplier>
|
|
{
|
|
Task<bool> ExistsCodeAsync(string supplierCode, int? excludeId = null, CancellationToken cancellationToken = default);
|
|
}
|
|
|
|
public interface IFinanceCompanyAccountRepository : IRepository<FinanceCompanyAccount>
|
|
{
|
|
}
|
|
|
|
public interface IFinanceContractRepository : IRepository<FinanceContract>
|
|
{
|
|
Task<bool> ExistsContractNoAsync(string contractNo, CancellationToken cancellationToken = default);
|
|
|
|
Task<FinanceContract?> GetActiveByPartyAsync(
|
|
string partyType,
|
|
int partyId,
|
|
int? excludeId = null,
|
|
CancellationToken cancellationToken = default);
|
|
}
|
|
|
|
public interface IFinancePaymentApplyRepository : IRepository<FinancePaymentApply>
|
|
{
|
|
Task<bool> ExistsApplyNoAsync(string applyNo, CancellationToken cancellationToken = default);
|
|
}
|
|
|
|
public interface IFinancePaymentApplyLineRepository : IRepository<FinancePaymentApplyLine>
|
|
{
|
|
Task<List<FinancePaymentApplyLine>> GetListByApplyIdAsync(
|
|
int paymentApplyId,
|
|
CancellationToken cancellationToken = default);
|
|
|
|
Task DeleteByApplyIdAsync(int paymentApplyId, CancellationToken cancellationToken = default);
|
|
}
|