ziwen 1 year ago
parent
commit
a4f9f7a600
1 changed files with 1 additions and 1 deletions
  1. 1 1
      models/eta_trial/eta_trial.go

+ 1 - 1
models/eta_trial/eta_trial.go

@@ -110,7 +110,7 @@ func AddETATrial(item *EtaTrial) (lastId int64, err error) {
 }
 
 func GetETATrialByAccount(account string) (items []*EtaTrial, err error) {
-	sql := `SELECT * FROM eta_trial WHERE user_name = ? `
+	sql := `SELECT * FROM eta_trial WHERE account = ? `
 	o := orm.NewOrm()
 
 	_, err = o.Raw(sql, account).QueryRows(&items)