---fix bug---
parent
0382afd44f
commit
0f6b33467c
|
|
@ -956,7 +956,7 @@ namespace New_College.Services
|
|||
var batchids = batchinfo.Select(s => s.Id).ToList();
|
||||
//通过条件筛选出所有的
|
||||
var wheres = PredicateBuilder.New<T_EnrollmentPlanedesc>();
|
||||
wheres.And(x => x.Scoreline <= query.Score && x.Scoreline > 0 && majornames.Contains(x.MajorName) && universityids.Contains(x.UniversityId) && x.PlanId == planinfo.FirstOrDefault().Id && batchids.Contains(x.BatchtypeId));
|
||||
wheres.And(x => x.Scoreline <= ( query.Score + 10) && x.Scoreline > 0 && majornames.Contains(x.MajorName) && universityids.Contains(x.UniversityId) && x.PlanId == planinfo.FirstOrDefault().Id && batchids.Contains(x.BatchtypeId));
|
||||
//根据上述所有筛选 求出招生计划
|
||||
var plandesc = await _dal.Query(wheres, "Scoreline desc");
|
||||
if (plandesc.Count <= 0)
|
||||
|
|
|
|||
Loading…
Reference in New Issue