fix 设置enable过滤
This commit is contained in:
@@ -85,7 +85,9 @@ public class CanteenSettingService : ICanteenSettingService
|
|||||||
public async Task<Dictionary<CanteenSettingItemEnumType, string>> GetUserSettingAsync(string userNo)
|
public async Task<Dictionary<CanteenSettingItemEnumType, string>> GetUserSettingAsync(string userNo)
|
||||||
{
|
{
|
||||||
var settings = await _context.Queryable<CanteenSettingEntity>()
|
var settings = await _context.Queryable<CanteenSettingEntity>()
|
||||||
.Where(x => (x.UniqueType == CanteenSettingUnqiueEnumType.Person && x.UniqueValue == userNo) || x.UniqueType == CanteenSettingUnqiueEnumType.Tenant)
|
.Where(x => x.Enable)
|
||||||
|
.Where(x => (x.UniqueType == CanteenSettingUnqiueEnumType.Person && x.UniqueValue == userNo)
|
||||||
|
|| x.UniqueType == CanteenSettingUnqiueEnumType.Tenant)
|
||||||
.ToListAsync();
|
.ToListAsync();
|
||||||
|
|
||||||
//从基地 -> 个人,确保下面循环做到覆盖,并且以个人配置为主
|
//从基地 -> 个人,确保下面循环做到覆盖,并且以个人配置为主
|
||||||
|
|||||||
Reference in New Issue
Block a user