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