where+=" AND g."+nameof(RB_Group.GroupName)+" like '%"+dmodel.GroupName+"%'";
}
if(!string.IsNullOrWhiteSpace(dmodel.Domain))
{
where+=" AND g."+nameof(RB_Group.Domain)+" like '%"+dmodel.Domain+"%'";
}
if(dmodel.Status.HasValue&&dmodel.Status>=0)
{
where+=" AND g."+nameof(RB_Group.Status)+"="+(int)dmodel.Status;
}
//where += string.Format(" ORDER BY g.{0} DESC ", nameof(Model.Entity.RB_Group.Id));
varpageList=GetPage<RB_Group_Extend>(pageIndex,pageSize,outcount,"select g.*,v.VersionsName,e.EmAccount from Rb_group g left join rb_employee e on g.AdminAccount=e.EmployeeId Left join Rb_sys_versions v on g.Versions_Id=v.Id "+where+" order by g.Id desc").ToList();