diff --git a/asg_form/Controllers/Com.cs b/asg_form/Controllers/Com.cs index a4a1018..09981f5 100644 --- a/asg_form/Controllers/Com.cs +++ b/asg_form/Controllers/Com.cs @@ -36,7 +36,7 @@ namespace asg_form.Controllers { TestDbContext testDb = new TestDbContext(); string chinaname = user.chinaname; - var teamgame = testDb.team_Games.Where(a => a.commentary.IndexOf(chinaname) >= 0).Select(a => new { a.id, a.team1_name, a.team2_name, a.bilibiliuri, a.commentary, a.referee ,a.opentime}).ToList(); + var teamgame = testDb.team_Games.Where(a => a.commentary.IndexOf(chinaname) >= 0).Select(a => new { a.id, a.team1_name, a.team2_name, a.bilibiliuri, a.commentary, a.referee ,a.opentime,a.team1_piaoshu,a.team2_piaoshu}).OrderByDescending(a => a.opentime).ToList(); return JsonConvert.SerializeObject(teamgame); } diff --git a/asg_form/Controllers/InviteReferee.cs b/asg_form/Controllers/InviteReferee.cs new file mode 100644 index 0000000..7da09bb --- /dev/null +++ b/asg_form/Controllers/InviteReferee.cs @@ -0,0 +1,7 @@ +namespace asg_form.Controllers +{ + public class InviteReferee + { + + } +} diff --git a/asg_form/Controllers/excel.cs b/asg_form/Controllers/excel.cs index dc1f5d7..383a530 100644 --- a/asg_form/Controllers/excel.cs +++ b/asg_form/Controllers/excel.cs @@ -235,7 +235,7 @@ namespace asg_form.Controllers { using(TestDbContext ctx =new TestDbContext()) { - object data = userManager.Users.Select(a => new {a.UserName,a.chinaname,a.Email,a.officium}).Where(a => a.officium != null).GroupBy(a => a.officium).ToList(); + object data = userManager.Users.Select(a => new {a.Id,a.UserName,a.chinaname,a.Email,a.officium}).Where(a => a.officium != null).GroupBy(a => a.officium).ToList(); return data; }