|
@@ -131,6 +131,7 @@ func ActivityLabelSpecialUserSql(user *models.WxUserItem) (conditionShengji, con
|
|
permissionZhengShiStr = strings.Replace(permissionZhengShiStr, "(主观)", "", -1)
|
|
permissionZhengShiStr = strings.Replace(permissionZhengShiStr, "(主观)", "", -1)
|
|
permissionZhengShiStr = strings.Replace(permissionZhengShiStr, "(客观)", "", -1)
|
|
permissionZhengShiStr = strings.Replace(permissionZhengShiStr, "(客观)", "", -1)
|
|
permissionZhengShiStr = strings.TrimRight(permissionZhengShiStr, ",")
|
|
permissionZhengShiStr = strings.TrimRight(permissionZhengShiStr, ",")
|
|
|
|
+ permissionZhengShiStr += `, '宏观'`
|
|
conditionHangYe = ` art.customer_type_ids LIKE '%3%' AND art.chart_permission_name IN (` + permissionZhengShiStr + `)`
|
|
conditionHangYe = ` art.customer_type_ids LIKE '%3%' AND art.chart_permission_name IN (` + permissionZhengShiStr + `)`
|
|
if userType == 9 {
|
|
if userType == 9 {
|
|
conditionZhengshi = ` art.customer_type_ids LIKE '%9%' AND art.chart_permission_name NOT IN (` + permissionZhengShiStr + `)`
|
|
conditionZhengshi = ` art.customer_type_ids LIKE '%9%' AND art.chart_permission_name NOT IN (` + permissionZhengShiStr + `)`
|
|
@@ -221,18 +222,25 @@ func GetActivityLabelSpecialList(user *models.WxUserItem, conditionActivitySpeci
|
|
conditionNoTrip += ` AND art.days = 0 `
|
|
conditionNoTrip += ` AND art.days = 0 `
|
|
var conditionShengjiNoTrip string
|
|
var conditionShengjiNoTrip string
|
|
var conditionZhengshiNoTrip string
|
|
var conditionZhengshiNoTrip string
|
|
|
|
+ var conditionHangYeNoTrip string
|
|
if conditionShengji != "" {
|
|
if conditionShengji != "" {
|
|
conditionShengjiNoTrip = ` OR ( ` + conditionShengji + conditionNoTrip + ` )`
|
|
conditionShengjiNoTrip = ` OR ( ` + conditionShengji + conditionNoTrip + ` )`
|
|
}
|
|
}
|
|
if conditionZhengshi != "" {
|
|
if conditionZhengshi != "" {
|
|
conditionZhengshiNoTrip = ` OR ( ` + conditionZhengshi + conditionNoTrip + ` )`
|
|
conditionZhengshiNoTrip = ` OR ( ` + conditionZhengshi + conditionNoTrip + ` )`
|
|
}
|
|
}
|
|
|
|
+ if conditionHangYe != "" {
|
|
|
|
+ conditionHangYeNoTrip = ` OR ( ` + conditionHangYe + conditionNoTrip + ` )`
|
|
|
|
+ }
|
|
if conditionShengji != "" {
|
|
if conditionShengji != "" {
|
|
conditionNoTrip += conditionShengjiNoTrip
|
|
conditionNoTrip += conditionShengjiNoTrip
|
|
}
|
|
}
|
|
if conditionZhengshi != "" {
|
|
if conditionZhengshi != "" {
|
|
conditionNoTrip += conditionZhengshiNoTrip
|
|
conditionNoTrip += conditionZhengshiNoTrip
|
|
}
|
|
}
|
|
|
|
+ if conditionHangYe != "" {
|
|
|
|
+ conditionNoTrip += conditionHangYeNoTrip
|
|
|
|
+ }
|
|
conditionNoTripSql += conditionUser + conditionNoTrip + ` ORDER BY art.last_updated_time DESC`
|
|
conditionNoTripSql += conditionUser + conditionNoTrip + ` ORDER BY art.last_updated_time DESC`
|
|
specialListNotrip, e := models.GetActivityLabelSpecialListAll(conditionNoTripSql, pars, 0, 200)
|
|
specialListNotrip, e := models.GetActivityLabelSpecialListAll(conditionNoTripSql, pars, 0, 200)
|
|
if e != nil {
|
|
if e != nil {
|
|
@@ -365,6 +373,9 @@ func GetActivitySpecialPrepareList(user *models.WxUserItem, startSize, pageSize
|
|
var conditionShengjiNoTrip string
|
|
var conditionShengjiNoTrip string
|
|
var conditionZhengshiNoTrip string
|
|
var conditionZhengshiNoTrip string
|
|
var conditionHangYeNoTrip string
|
|
var conditionHangYeNoTrip string
|
|
|
|
+ fmt.Println(conditionShengji)
|
|
|
|
+ fmt.Println(conditionZhengshi)
|
|
|
|
+ fmt.Println(conditionHangYe)
|
|
if conditionShengji != "" {
|
|
if conditionShengji != "" {
|
|
conditionShengjiNoTrip = ` OR ( ` + conditionShengji + conditionNoTrip + ` )`
|
|
conditionShengjiNoTrip = ` OR ( ` + conditionShengji + conditionNoTrip + ` )`
|
|
}
|
|
}
|