bug fixed
parent
eec661be04
commit
080d3f02eb
|
|
@ -220,12 +220,12 @@ namespace New_College.Api.Controllers
|
||||||
UniversityName = c.UniversityName,
|
UniversityName = c.UniversityName,
|
||||||
Sort = sort,
|
Sort = sort,
|
||||||
PlanMajorIds = c.PlanId.ToString(),
|
PlanMajorIds = c.PlanId.ToString(),
|
||||||
VolunteerRemark = JsonConvert.SerializeObject(new VolteerItem()
|
VolunteerRemark = JsonConvert.SerializeObject(new List<VolteerItem>() { new VolteerItem()
|
||||||
{
|
{
|
||||||
planId = c.PlanId,
|
planId = c.PlanId,
|
||||||
tage = c.Percentage,
|
tage = c.Percentage,
|
||||||
type = c.Type,
|
type = c.Type,
|
||||||
})
|
}})
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
vollunterrrequest.volunteerTableDetailViews = vollitem;
|
vollunterrrequest.volunteerTableDetailViews = vollitem;
|
||||||
|
|
|
||||||
|
|
@ -152,9 +152,9 @@ namespace New_College.Api.Controllers.Front
|
||||||
PlanId = c.Id,
|
PlanId = c.Id,
|
||||||
Sort = s.OrderSort,
|
Sort = s.OrderSort,
|
||||||
SubjectClam = c.SelectSubject,
|
SubjectClam = c.SelectSubject,
|
||||||
Percentage = typeinfo.Any()&&typeinfo.Count()>0 ? typeinfo.FirstOrDefault(d => d.planId == c.Id).tage : 0,
|
Percentage = typeinfo.Any() && typeinfo.Count() > 0 ? typeinfo.FirstOrDefault(d => d.planId == c.Id).tage : 0,
|
||||||
Type = typeinfo.Any() && typeinfo.Count() > 0 ? typeinfo.FirstOrDefault(d => d.planId == c.Id).type : 0,
|
Type = typeinfo.Any() && typeinfo.Count() > 0 ? typeinfo.FirstOrDefault(d => d.planId == c.Id).type : 0,
|
||||||
PlanItems = planmajorcomplist.Where(ee => ee.UId == s.UniversityId && ee.Major == c.Major).Select(tt => new PlanItem()
|
PlanItems = planmajorcomplist.Where(ee => ee.UId == s.UniversityId && ee.Major == c.Major && ee.MajorCode == c.MajorCode).Select(tt => new PlanItem()
|
||||||
{
|
{
|
||||||
Count = (tt.PlanCount == 0 ? "--" : tt.PlanCount.ToString()),
|
Count = (tt.PlanCount == 0 ? "--" : tt.PlanCount.ToString()),
|
||||||
PlanCount = tt.PlanCount,
|
PlanCount = tt.PlanCount,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue