|
@@ -8,6 +8,7 @@ using Infrastructure;
|
|
using IPTools.Core;
|
|
using IPTools.Core;
|
|
using Model;
|
|
using Model;
|
|
using Model.Base;
|
|
using Model.Base;
|
|
|
|
+using Model.Kxs;
|
|
using Repository;
|
|
using Repository;
|
|
using Service;
|
|
using Service;
|
|
using System.Collections;
|
|
using System.Collections;
|
|
@@ -330,19 +331,18 @@ namespace Services
|
|
{
|
|
{
|
|
}
|
|
}
|
|
|
|
|
|
- public async Task<PagedInfo<SysUserVo>> TestList(SysDeptFeign SysDept)
|
|
|
|
|
|
+ public PagedInfo<SysUserVo> TestList(SysDeptFeign SysDept)
|
|
{
|
|
{
|
|
//开始拼装查询条件
|
|
//开始拼装查询条件
|
|
var predicate = Expressionable.Create<SysUser>();
|
|
var predicate = Expressionable.Create<SysUser>();
|
|
var response = Queryable()
|
|
var response = Queryable()
|
|
.Where(predicate.ToExpression())
|
|
.Where(predicate.ToExpression())
|
|
|
|
+ .Select(m => m)
|
|
.OrderByDescending(m => m.userId)
|
|
.OrderByDescending(m => m.userId)
|
|
|
|
+ .Includes(m => m.deptJoin)
|
|
|
|
+ .CrossQuery(typeof(Users), "kxs")
|
|
|
|
+ .Includes(m => m.user)
|
|
.ToPage<SysUser, SysUserVo>(new PagerInfo());
|
|
.ToPage<SysUser, SysUserVo>(new PagerInfo());
|
|
- foreach(SysUserVo sub in response.Records)
|
|
|
|
- {
|
|
|
|
- var dept = await SysDept.GetDeptInfo(sub.deptId);
|
|
|
|
- sub.deptInfo = dept;
|
|
|
|
- }
|
|
|
|
return response;
|
|
return response;
|
|
}
|
|
}
|
|
}
|
|
}
|