bug fixd
parent
8f13d2b5ed
commit
50d130f34f
|
|
@ -13,5 +13,9 @@ namespace New_College.Repository
|
|||
public D_QualificationLineRepository(IUnitOfWork unitOfWork) : base(unitOfWork)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
|
@ -115,8 +115,8 @@ namespace New_College.Services
|
|||
// SubjectClam = c.SelectSubject,
|
||||
Type = MajorPlanScoreTool.GetPlanScore(c.LowScore, request.Score),//冲稳保院校
|
||||
Percentage = MajorPlanScoreTool.GetPlanPercentage(c.LowScore, request.Score),
|
||||
planCount = list.Where(w => w.Years == DateTime.Now.Year && w.UId == c.UId).Sum(c => c.PlanCount),
|
||||
iGoPlanMajorItems = list.Where(w => w.Years == DateTime.Now.Year && w.UId == c.UId).Select(t => new AIGoPlanMajorItem()
|
||||
//planCount = list.Where(w => w.Years == DateTime.Now.Year && w.UId == c.UId).Sum(c => c.PlanCount),
|
||||
iGoPlanMajorItems = list.Where(w => w.Years == (DateTime.Now.Year-1) && w.UId == c.UId).Select(t => new AIGoPlanMajorItem()
|
||||
{
|
||||
PlanId = t.Id,
|
||||
MajorCode = t.MajorCode,
|
||||
|
|
@ -141,7 +141,7 @@ namespace New_College.Services
|
|||
|
||||
var _qualifcationlist = await _qualificationLineRepository.Query(c => SqlFunc.ContainsArray(universityarry, c.UId));
|
||||
|
||||
responselist = responselist.Where(e => e.planCount > 0).ToList();
|
||||
// responselist = responselist.Where(e => e.iGoPlanMajorItems.Select(s=>s.planCount).Sum() > 0).ToList();
|
||||
responselist.ToList().ForEach(c =>
|
||||
{
|
||||
c._fcount = c.iGoPlanMajorItems.Select(s => s.planCount).Sum();
|
||||
|
|
|
|||
Loading…
Reference in New Issue