admin/src/Oms.Domain/FinanceAggregate/Repositories/IFinanceContractRepositories.cs
zzh 686bec2e5d
All checks were successful
Build and Deploy / deploy (push) Successful in 1m22s
feat: 财务合同管理与付款申请(含供应商/公司账户)
新增合同与付款申请全链路 API、审批接入及迁移脚本;抬头列表附带客户信息便于管理端展示。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-21 14:56:24 +08:00

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);
}