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; /// /// /// /// public TenantApplyService(IServiceProvider serviceProvider) { _serviceProvider = serviceProvider; db = _serviceProvider.GetRequiredService(); } /// /// 获取注册企业申请信息 /// /// /// public DataResult GetTenantApplyInfo(string id) { var data = db.Queryable() .Where(a => a.Id ==long.Parse(id)) .Select() .First(); return DataResult.Success(data); } }