|
@@ -94,3 +94,17 @@ func UpdateYanxuanSpecialAuthor(item *CygxYanxuanSpecialAuthor) (err error) {
|
|
|
_, err = o.Raw(sql, item.SpecialName, item.Introduction, item.Label, item.NickName, item.UserId).Exec()
|
|
|
return
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+func GetYanxuanSpecialAuthorList() (items []*CygxYanxuanSpecialAuthorItem, err error) {
|
|
|
+ o := orm.NewOrm()
|
|
|
+ sql := ``
|
|
|
+ sql = `SELECT
|
|
|
+ a.*,c.company_name
|
|
|
+FROM
|
|
|
+ cygx_yanxuan_special_author as a
|
|
|
+ INNER JOIN wx_user AS u ON u.user_id = a.user_id
|
|
|
+ INNER JOIN company AS c ON c.company_id = u.company_id ORDER BY create_time DESC `
|
|
|
+ _, err = o.Raw(sql).QueryRows(&items)
|
|
|
+ return
|
|
|
+}
|