正在显示
2 个修改的文件
包含
2 行增加
和
2 行删除
| @@ -95,7 +95,7 @@ func GetChanceFavorites(userId, companyId int64, markFlag, sourceType int, lastI | @@ -95,7 +95,7 @@ func GetChanceFavorites(userId, companyId int64, markFlag, sourceType int, lastI | ||
| 95 | sql.Limit(0, pageSize) | 95 | sql.Limit(0, pageSize) |
| 96 | } | 96 | } |
| 97 | if lastId > 0 { | 97 | if lastId > 0 { |
| 98 | - sql.Where(fmt.Sprintf("id>%d", lastId)) | 98 | + sql.Where(fmt.Sprintf("id<%d", lastId)) |
| 99 | } | 99 | } |
| 100 | if total, err = sql.Querys(&v); err == nil { | 100 | if total, err = sql.Querys(&v); err == nil { |
| 101 | return | 101 | return |
| @@ -94,7 +94,7 @@ func GetComments(userId int64, sourceType int, sourceId int64, lastId int64, pag | @@ -94,7 +94,7 @@ func GetComments(userId int64, sourceType int, sourceId int64, lastId int64, pag | ||
| 94 | sql.Limit(0, pageSize) | 94 | sql.Limit(0, pageSize) |
| 95 | } | 95 | } |
| 96 | if lastId > 0 { | 96 | if lastId > 0 { |
| 97 | - sql.Where(fmt.Sprintf("id>%d", lastId)) | 97 | + sql.Where(fmt.Sprintf("id<%d", lastId)) |
| 98 | } | 98 | } |
| 99 | if total, err = sql.Querys(&v); err == nil { | 99 | if total, err = sql.Querys(&v); err == nil { |
| 100 | if total == 0 { | 100 | if total == 0 { |
-
请 注册 或 登录 后发表评论