|
@@ -409,10 +409,12 @@ func GetCompanyNameList(sellerId int, keyword, status string) (list []*CompanyNa
|
|
|
if status != "" {
|
|
|
sql += ` AND status='` + status + `' `
|
|
|
}
|
|
|
+ pars := make([]interface{}, 0)
|
|
|
if sellerId > 0 {
|
|
|
sql += ` and seller_id=? `
|
|
|
+ pars = append(pars, sellerId)
|
|
|
}
|
|
|
sql += ` group by company_name order by modify_time desc `
|
|
|
- _, err = o.Raw(sql).QueryRows(&list)
|
|
|
+ _, err = o.Raw(sql, pars).QueryRows(&list)
|
|
|
return
|
|
|
}
|