|
@@ -1881,7 +1881,7 @@ func ActivityVideoUserRmind(user *models.WxUserItem, activityId, fileType int) (
|
|
|
}
|
|
|
|
|
|
// GetYanxuanActivityIds 获取研选活动ID
|
|
|
-func GetYanxuanActivityIds(user *models.WxUserItem) (activityIds []int) {
|
|
|
+func GetYanxuanActivityIds(user *models.WxUserItem, activeState int) (activityIds []int) {
|
|
|
var err error
|
|
|
defer func() {
|
|
|
if err != nil {
|
|
@@ -1902,6 +1902,11 @@ func GetYanxuanActivityIds(user *models.WxUserItem) (activityIds []int) {
|
|
|
condition += conditionActivity
|
|
|
}
|
|
|
|
|
|
+ if activeState > 0 {
|
|
|
+ condition += ` AND active_state = ? `
|
|
|
+ pars = append(pars, activeState)
|
|
|
+ }
|
|
|
+
|
|
|
condition += ` ORDER BY art.activity_time DESC , art.active_state ASC `
|
|
|
list, e := models.GetCygxActivityListPage(condition, pars, 0, 2000)
|
|
|
if e != nil {
|