fix 类型过滤
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
using System.Reflection;
|
||||
using Dlhis.Entity.Basic.Entity;
|
||||
using Dlhis.Entity.Basic.Enums;
|
||||
using Dlhis.Entity.Canteen.Entities;
|
||||
using Dlhis.Entity.Canteen.Enums;
|
||||
using Kurisu.AspNetCore;
|
||||
@@ -44,7 +45,7 @@ public class SysDataService : ISysDataService
|
||||
switch (table)
|
||||
{
|
||||
case "Gainfo":
|
||||
return await _dbContext.Queryable<GainfoEntity>().Where(x => x.Factory == factory).Select(x => (object)x).ToListAsync();
|
||||
return await _dbContext.Queryable<GainfoEntity>().Where(x => x.Type == GainfoUserTypeEnumType.Normal || x.Type == GainfoUserTypeEnumType.SecurityWhite).Where(x => x.Factory == factory).Select(x => (object)x).ToListAsync();
|
||||
case "GainfoMeal":
|
||||
{
|
||||
var r = await _dbContext.Queryable<GainfoEntity>()
|
||||
|
||||
Reference in New Issue
Block a user