作者 yangfu

机会点赞

@@ -125,7 +125,7 @@ func ExitsChanceFavorite(userId, companyId int64, sourceId int64, markFlag int) @@ -125,7 +125,7 @@ func ExitsChanceFavorite(userId, companyId int64, sourceId int64, markFlag int)
125 //更新机会点赞/收藏状态 125 //更新机会点赞/收藏状态
126 func UpdateChanceFavorite(userId, companyId int64, sourceId int64, markFlag int) (err error) { 126 func UpdateChanceFavorite(userId, companyId int64, sourceId int64, markFlag int) (err error) {
127 o := orm.NewOrm() 127 o := orm.NewOrm()
128 - sql := `update chance_favorite set mark_flag = mark_flag ^ ? ,update=now() 128 + sql := `update chance_favorite set mark_flag = mark_flag ^ ? ,update_at=now()
129 where user_id =? and company_id =? and source_id=? ` // 129 where user_id =? and company_id =? and source_id=? ` //
130 if _, err = o.Raw(sql, markFlag, userId, companyId, sourceId).Exec(); err == nil { 130 if _, err = o.Raw(sql, markFlag, userId, companyId, sourceId).Exec(); err == nil {
131 return 131 return