|
@@ -143,7 +143,7 @@ func ActivityLabelSpecialUserSql(user *models.WxUserItem) (conditionShengji, con
|
|
|
}
|
|
|
|
|
|
// 处理专项调研的展示
|
|
|
-func GetActivityLabelSpecialList(user *models.WxUserItem, conditionActivitySpecial string) (item *models.ActivityTypeHome, err error) {
|
|
|
+func GetActivityLabelSpecialList(user *models.WxUserItem, conditionActivitySpecial, activeState string) (item *models.ActivityTypeHome, err error) {
|
|
|
itemList := new(models.ActivityTypeHome)
|
|
|
if user.CompanyId <= 1 {
|
|
|
itemList.List = make([]*models.CygxActivityLabelList, 0)
|
|
@@ -221,7 +221,10 @@ func GetActivityLabelSpecialList(user *models.WxUserItem, conditionActivitySpeci
|
|
|
return
|
|
|
}
|
|
|
//if len(specialList) < 80 {
|
|
|
- conditionNoTrip += ` AND art.days = 0 `
|
|
|
+
|
|
|
+ if activeState == "" {
|
|
|
+ conditionNoTrip += ` AND art.days = 0 `
|
|
|
+ }
|
|
|
var conditionShengjiNoTrip string
|
|
|
var conditionZhengshiNoTrip string
|
|
|
var conditionHangYeNoTrip string
|
|
@@ -746,6 +749,7 @@ func GetActivitySpecialSearcheList(user *models.WxUserItem, condition string, st
|
|
|
if playBack == 1 {
|
|
|
conditionSpecil += ` AND art.activity_id = 0 `
|
|
|
}
|
|
|
+ conditionSpecil += ` AND art.publish_status = 1 `
|
|
|
list, totalSearche, e := models.GetActivitySpecialSearcheList(condition, pars, conditionSpecil, parsSpecil, startSize, pageSize)
|
|
|
if e != nil {
|
|
|
err = errors.New("GetActivitySpecialSearcheList, Err: " + e.Error())
|