You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
917 B
C#
30 lines
917 B
C#
using DS.WMS.Core.Fee.Method;
|
|
using DS.WMS.Core.Settlement.Entity;
|
|
using DS.WMS.Core.Settlement.Interface;
|
|
using DS.WMS.Core.Sys.Interface;
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
|
|
namespace DS.WMS.Core.Settlement.Method
|
|
{
|
|
/// <summary>
|
|
/// 结算基础实现
|
|
/// </summary>
|
|
/// <typeparam name="TEntity">实体的类型声明</typeparam>
|
|
public class SettlementService<TEntity> : FeeServiceBase, ISettlementService<TEntity>
|
|
where TEntity : SettlementBase, new()
|
|
{
|
|
readonly Lazy<ICommonService> commonService;
|
|
|
|
/// <summary>
|
|
/// 初始化
|
|
/// </summary>
|
|
/// <param name="serviceProvider">DI容器</param>
|
|
public SettlementService(IServiceProvider serviceProvider) : base(serviceProvider)
|
|
{
|
|
commonService = new Lazy<ICommonService>(serviceProvider.GetRequiredService<ICommonService>());
|
|
}
|
|
|
|
|
|
}
|
|
}
|