|
@@ -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
|