diff --git a/ZR.Repository/System/SysDictRepository.cs b/ZR.Repository/System/SysDictRepository.cs index 3fc177b..cf61fde 100644 --- a/ZR.Repository/System/SysDictRepository.cs +++ b/ZR.Repository/System/SysDictRepository.cs @@ -22,14 +22,14 @@ namespace ZR.Repository.System /// /// 实体模型 /// - public PagedInfo SelectDictTypeList(SysDictType dictType, Model.PagerInfo pager) + public PagedInfo SelectDictTypeList(SysDictType dictType, PagerInfo pager) { var exp = Expressionable.Create(); exp.AndIF(!string.IsNullOrEmpty(dictType.DictName), it => it.DictName.Contains(dictType.DictName)); exp.AndIF(!string.IsNullOrEmpty(dictType.Status), it => it.Status == dictType.Status); - exp.AndIF(!string.IsNullOrEmpty(dictType.DictType), it => it.DictType == dictType.DictType); + exp.AndIF(!string.IsNullOrEmpty(dictType.DictType), it => it.DictType.Contains(dictType.DictType)); - return GetPages(exp.ToExpression(), pager); + return GetPages(exp.ToExpression(), pager, f => f.DictId, OrderByType.Desc); } ///