...
|
...
|
@@ -84,7 +84,9 @@ func DeleteChanceFavorite(id int64) (err error) { |
|
|
//获取用户点赞收藏机会
|
|
|
func GetChanceFavorites(userId, companyId int64, markFlag, sourceType int, sourceId int64, lastId int64, pageSize int) (v []*ChanceFavorite, total int, err error) {
|
|
|
sql := mybeego.NewSqlExutor().Table("chance_favorite").Order("create_at desc")
|
|
|
if userId > 0 {
|
|
|
sql.Where(fmt.Sprintf("user_id=%d", userId))
|
|
|
}
|
|
|
sql.Where(fmt.Sprintf("company_id=%d", companyId))
|
|
|
if sourceType > 0 {
|
|
|
sql.Where(fmt.Sprintf("source_type=%d", sourceType))
|
...
|
...
|
|