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