|
@@ -21,6 +21,7 @@ type CygxYanxuanSpecial struct {
|
|
|
Reason string // 理由
|
|
|
Title string // 标题
|
|
|
Type int // 类型1:笔记,2:观点
|
|
|
+ AdminName string // 审核人员姓名
|
|
|
}
|
|
|
|
|
|
type CygxYanxuanSpecialItem struct {
|
|
@@ -178,8 +179,8 @@ func UpdateYanxuanSpecial(item *CygxYanxuanSpecial) (err error) {
|
|
|
o := orm.NewOrm()
|
|
|
sql := ``
|
|
|
sql = `UPDATE cygx_yanxuan_special SET title=?,content=?,company_tags=?,industry_tags=?,img_url=?,doc_url=?,type=?,status=?,
|
|
|
- modify_time=NOW(),publish_time=NOW() WHERE id = ? `
|
|
|
- _, err = o.Raw(sql, item.Title, item.Content, item.CompanyTags, item.IndustryTags, item.ImgUrl, item.DocUrl, item.Type, item.Status, item.Id).Exec()
|
|
|
+ modify_time=NOW(),publish_time=NOW(),admin_name = ? WHERE id = ? `
|
|
|
+ _, err = o.Raw(sql, item.Title, item.Content, item.CompanyTags, item.IndustryTags, item.ImgUrl, item.DocUrl, item.Type, item.Status, item.AdminName, item.Id).Exec()
|
|
|
return
|
|
|
}
|
|
|
|