21 lines
713 B
C#
21 lines
713 B
C#
using Dlhis.Entity.Basic.Entity;
|
|
using Dlhis.Entity.Basic.Enums;
|
|
|
|
namespace Dlhis.Basic.Device.Services.Implements.PermissionAnalyze;
|
|
|
|
[Service(PermissionAnalyzeConstants.Tenant)]
|
|
public class TenantPermissionAnalyzeService : BasePermissionAnalyzeService
|
|
{
|
|
/// <inheritdoc />
|
|
public TenantPermissionAnalyzeService(IServiceProvider serviceProvider) : base(serviceProvider)
|
|
{
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override async Task<List<string>> GetGainfoNosAsync(string assignValue)
|
|
{
|
|
return await DbContext.Queryable<GainfoEntity>()
|
|
.Where(x => x.Factory == assignValue && x.Type != GainfoUserTypeEnumType.External)
|
|
.Select(x => x.No).ToListAsync();
|
|
}
|
|
} |