问题遇到的现象和发生背景
问题相关代码,请勿粘贴截图
public List<V_QYPerson> getUserListFW3(string CorpId, int rows, int page, Hashtable hashParams, string CurrentUserID, bool IsSuperAdmin, out int dataCount)
{
List<V_QYPerson> users = new List<V_QYPerson>();
using (IRepository<V_QYPerson> repository = ServeiceCore.GetServiceFactory.GetInstance<IRepository<V_QYPerson>>(ServiceName.IRepository))
{
var enterpriseId = new Guid(CorpId);
var wbuserid = new Guid(CurrentUserID);
var query = repository.Set<V_QYPerson>().Where(c => 1 == 1).AsQueryable();
if (!IsSuperAdmin)
{
var final = PowerHelper.GetPowerids(repository.GetDbContext, enterpriseId, wbuserid);
query = query.Where(t => final.Contains(t.ID)).AsQueryable();
}
dataCount = query.Count();
users = query.OrderByDescending(c => c.Name).Skip((page - 1) * rows).Take(rows).ToList();
return users;
}
}
}
运行结果及报错内容
我的解答思路和尝试过的方法
我想要达到的结果
将 V_QYPerson里面的Language 0显示成中文 1显示成英文