From 7b24cc3548a1d9153c1e6e616fc6320982b55d0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E7=82=9C=E7=BF=94?= <2307953404@qq.com> Date: Sat, 17 Aug 2024 15:38:44 +0800 Subject: [PATCH] =?UTF-8?q?change=20two=20places=20that=20may=20exist=20bu?= =?UTF-8?q?gs=EF=BC=8Cand=20a=20controller=20still=20in=20development?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- asg_form/Controllers/Com.cs | 2 +- asg_form/Controllers/InviteReferee.cs | 7 +++++++ asg_form/Controllers/excel.cs | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 asg_form/Controllers/InviteReferee.cs 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; }