From 06aca8e3a88c026a51a0a3520f8834e9a7e5105d Mon Sep 17 00:00:00 2001 From: tommy <3405129587@qq.com> Date: Thu, 21 May 2020 18:35:29 +0800 Subject: [PATCH] fix feat --- controllers/client/tug_war.go | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/controllers/client/tug_war.go b/controllers/client/tug_war.go index 9d44344..77a7cbb 100644 --- a/controllers/client/tug_war.go +++ b/controllers/client/tug_war.go @@ -137,19 +137,6 @@ func (t *TugOfWarCtl) JoinTeam() { }) return } - // - //team := new(JoinTeamResult) - //session := core.GetXormAuto().Table(new(models.BaheTeam)).Alias("t"). - // Select("t.id as team_id, t.bahe_team_name as team_name, count(m.id) as number"). - // Join("LEFT", new(models.BaheTeamMember).Alias("m"), - // "m.team_id=t.id and m.is_delete=0 and m.rehearsal_id=?", activity.RehearsalId) - //if teamId == 0 { // 人数最少的一队 - // session = session.Where("t.is_delete=0 and t.bahe_activity_id=? ", bahe.Id). - // GroupBy("t.id").Asc("number") - //} else { - // session = session.Where("t.is_delete=0 and t.id=?", teamId).GroupBy("t.id") - //} - //exist, err = session.Get(team) var team *bahe_service.JoinTeamResult if teamId == 0 {