mirror of
https://github.com/nsnail/NetAdmin.git
synced 2025-08-02 18:17:31 +08:00
build: 📦 build err
This commit is contained in:
@ -88,10 +88,7 @@ public sealed class CacheService(IConnectionMultiplexer connectionMultiplexer) /
|
||||
, ExpireTime = DateTime.Now + await database.KeyTimeToLiveAsync(req.Key).ConfigureAwait(false)
|
||||
};
|
||||
|
||||
#pragma warning disable IDE0072
|
||||
ret.Data = ret.Type switch
|
||||
#pragma warning restore IDE0072
|
||||
{
|
||||
ret.Data = ret.Type switch {
|
||||
RedisType.String => await database.StringGetAsync(req.Key).ConfigureAwait(false)
|
||||
, RedisType.List => string.Join(", ", await database.ListRangeAsync(req.Key).ConfigureAwait(false))
|
||||
, RedisType.Set => string.Join(", ", await database.SetMembersAsync(req.Key).ConfigureAwait(false))
|
||||
|
@ -129,7 +129,7 @@ public sealed class MenuService(BasicRepository<Sys_Menu, long> rpo, IUserServic
|
||||
private ISelect<Sys_Menu> QueryInternal(QueryReq<QueryMenuReq> req)
|
||||
{
|
||||
var ret = Rpo.Select.WhereDynamicFilter(req.DynamicFilter).WhereDynamic(req.Filter);
|
||||
#pragma warning disable IDE0072
|
||||
|
||||
return req.Order switch {
|
||||
Orders.None => ret
|
||||
, Orders.Random => ret.OrderByRandom()
|
||||
@ -138,6 +138,5 @@ public sealed class MenuService(BasicRepository<Sys_Menu, long> rpo, IUserServic
|
||||
.OrderBy(a => a.Name)
|
||||
.OrderBy(a => a.Id)
|
||||
};
|
||||
#pragma warning restore IDE0072
|
||||
}
|
||||
}
|
@ -205,7 +205,7 @@ public sealed class UserProfileService(BasicRepository<Sys_UserProfile, long> rp
|
||||
private ISelect<Sys_UserProfile, Sys_DicContent, Sys_DicContent, Sys_DicContent, Sys_DicContent> QueryInternalComplex(
|
||||
QueryReq<QueryUserProfileReq> req)
|
||||
{
|
||||
#pragma warning disable CA1305,IDE0072
|
||||
#pragma warning disable CA1305
|
||||
var ret = Rpo.Orm.Select<Sys_UserProfile, Sys_DicContent, Sys_DicContent, Sys_DicContent, Sys_DicContent>()
|
||||
.LeftJoin((a, b, _, __, ___) => a.NationArea.ToString() == b.Value && b.CatalogId == Numbers.ID_DIC_CATALOG_GEO_AREA)
|
||||
.LeftJoin((a, _, c, __, ___) => a.CompanyArea.ToString() == c.Value && c.CatalogId == Numbers.ID_DIC_CATALOG_GEO_AREA)
|
||||
@ -219,6 +219,6 @@ public sealed class UserProfileService(BasicRepository<Sys_UserProfile, long> rp
|
||||
, _ => ret.OrderByPropertyNameIf(req.Prop?.Length > 0, req.Prop, req.Order == Orders.Ascending)
|
||||
.OrderByDescending((a, _, __, ___, ____) => a.Id)
|
||||
};
|
||||
#pragma warning restore CA1305,IDE0072
|
||||
#pragma warning restore CA1305
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user