Compare commits
3 Commits
9d3d91e603
...
2960394142
| Author | SHA1 | Date |
|---|---|---|
|
|
2960394142 | |
|
|
69a888553f | |
|
|
f2057db953 |
|
|
@ -424,14 +424,18 @@ namespace Learn.Archives.API.Controllers
|
||||||
var subjectArr = row.高考选科.Split(",")
|
var subjectArr = row.高考选科.Split(",")
|
||||||
.Select(s => s.ToEnum<SubjectEnum>())
|
.Select(s => s.ToEnum<SubjectEnum>())
|
||||||
.ToArray();
|
.ToArray();
|
||||||
userCenterUpdate.Add(new User
|
var upUser = new User
|
||||||
{
|
{
|
||||||
Id = uid,
|
Id = uid,
|
||||||
Phone = row.Phone,
|
Phone = row.Phone,
|
||||||
GLSubject = (int?)subjectArr[0],
|
};
|
||||||
GSubject1 = (int?)subjectArr[1],
|
if (subjectArr.Length > 0)
|
||||||
GSubject2 = (int?)subjectArr[2],
|
upUser.GLSubject = (int?)subjectArr[0];
|
||||||
});
|
if (subjectArr.Length > 1)
|
||||||
|
upUser.GSubject1 = (int?)subjectArr[1];
|
||||||
|
if (subjectArr.Length > 2)
|
||||||
|
upUser.GSubject2 = (int?)subjectArr[2];
|
||||||
|
userCenterUpdate.Add(upUser);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue