Browse Source

fix feat

master
黄梓健 5 years ago
parent
commit
06aca8e3a8
  1. 13
      controllers/client/tug_war.go

13
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 {

Loading…
Cancel
Save