|
@@ -57,8 +57,14 @@ func (this *YanxuanSpecialNoLoginController) List() {
|
|
|
var pars []interface{}
|
|
|
|
|
|
if specialColumnId > 0 {
|
|
|
- condition += ` AND b.id = ? `
|
|
|
- pars = append(pars, specialColumnId)
|
|
|
+ authorItem, err := models.GetYanxuanSpecialAuthorById(specialColumnId)
|
|
|
+ if err != nil {
|
|
|
+ br.Msg = "查询栏目详情失败!"
|
|
|
+ br.ErrMsg = "查询栏目详情失败,Err:" + err.Error()
|
|
|
+ return
|
|
|
+ }
|
|
|
+ condition += ` AND a.user_id = ? `
|
|
|
+ pars = append(pars, authorItem.UserId)
|
|
|
}
|
|
|
|
|
|
condition += ` AND a.status = 3 `
|