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.

37 lines
921 B
C#

using DS.Module.SqlSugar;
using Microsoft.Extensions.DependencyInjection;
using SqlSugar;
namespace DS.WMS.Core.HangfireJob.Method
{
/// <summary>
/// 自动费用模板后台任务
/// </summary>
public class FeeCustTemplateJobService
{
ISqlSugarClient db;
/// <summary>
/// 初始化
/// </summary>
/// <param name="serviceProvider"></param>
public FeeCustTemplateJobService(IServiceProvider serviceProvider)
{
db = serviceProvider.GetRequiredService<ISqlSugarClient>();
}
/// <summary>
/// 生成费用
/// </summary>
/// <returns></returns>
public async Task GenerateFeesAsync()
{
var dbLinks = await db.Queryable<SysTenantLink>().ToListAsync();
foreach (var dbLink in dbLinks)
{
}
}
}
}