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.

38 lines
1.1 KiB
C#

using DS.Module.Core;
using DS.WMS.Core.System.Dtos;
using DS.WMS.Core.System.Entity;
using DS.WMS.Core.System.Interface;
using Microsoft.Extensions.DependencyInjection;
using SqlSugar;
namespace DS.WMS.Core.System.Method;
public class TenantApplyService:ITenantApplyService
{
private readonly IServiceProvider _serviceProvider;
private readonly ISqlSugarClient db;
/// <summary>
///
/// </summary>
/// <param name="serviceProvider"></param>
public TenantApplyService(IServiceProvider serviceProvider)
{
_serviceProvider = serviceProvider;
db = _serviceProvider.GetRequiredService<ISqlSugarClient>();
}
/// <summary>
/// 获取注册企业申请信息
/// </summary>
/// <param name="id"></param>
/// <returns></returns>
public DataResult<TenantApplyInfoRes> GetTenantApplyInfo(string id)
{
var data = db.Queryable<SysTenantApply>()
.Where(a => a.Id ==long.Parse(id))
.Select<TenantApplyInfoRes>()
.First();
return DataResult<TenantApplyInfoRes>.Success(data);
}
}