|
|
@ -78,7 +78,7 @@ namespace Coldairarrow.Business.HuiYan |
|
|
|
|
|
|
|
public AjaxResult GetTeamCount() |
|
|
|
{ |
|
|
|
var list= Db.GetIQueryable<teamitems>().Where(c => c.TeamId == _operator.TeamId).Select(c => c.State).ToList(); |
|
|
|
var list= Db.GetIQueryable<teamitems>().Where(c => _operator.SonTeamList.Contains(c.TeamId)).Select(c => c.State).ToList(); |
|
|
|
return Success(list.GroupBy(c => c).Select(c => new { Id = c.Key, Count = c.Count() })); |
|
|
|
} |
|
|
|
|
|
|
@ -147,7 +147,7 @@ namespace Coldairarrow.Business.HuiYan |
|
|
|
|
|
|
|
where = where.AndIf(!string.IsNullOrEmpty(keyWord), d => string.IsNullOrEmpty(d.CatName) ? true : d.CatName.Contains(keyWord)); |
|
|
|
|
|
|
|
where = where.And(c => c.TeamId == _operator.TeamId); |
|
|
|
where = where.And(c => _operator.SonTeamList.Contains(c.TeamId)); |
|
|
|
|
|
|
|
input.SortField = "CreateTime"; |
|
|
|
input.SortType = "desc"; |
|
|
@ -334,7 +334,7 @@ namespace Coldairarrow.Business.HuiYan |
|
|
|
//团队
|
|
|
|
if (type == 0) |
|
|
|
{ |
|
|
|
where = where.And(c => c.TeamId == _operator.TeamId); |
|
|
|
where = where.And(c => _operator.SonTeamList.Contains(c.TeamId)); |
|
|
|
} |
|
|
|
//比价
|
|
|
|
else |
|
|
|