|
@@ -520,7 +520,7 @@ func GetActivitySpecialSearcheList(user *models.WxUserItem, condition string, st
|
|
|
|
|
|
//获取 专项调研客户类型 //1、永续客户 //2、大套餐客户(4个行业全开通的正式客户) //8、行业升级套餐客户 //9、其余正式客户;5、试用客户
|
|
|
func GetActivitySpecialUserType(companyId int) (userType int, permissionStrnew string, err error) {
|
|
|
- var permissionStr, permissionZhengShiStr string
|
|
|
+ var permissionStr string
|
|
|
if companyId <= 1 {
|
|
|
userType = 0
|
|
|
} else {
|
|
@@ -542,11 +542,11 @@ func GetActivitySpecialUserType(companyId int) (userType int, permissionStrnew s
|
|
|
err = errors.New("GetCompanyPermissionByUserTrip, Err: " + e.Error())
|
|
|
return
|
|
|
}
|
|
|
- permissionZhengShiStr, e = models.GetCompanyPermissionByUserZhengShiTrip(companyId)
|
|
|
- if e != nil {
|
|
|
- err = errors.New("GetCompanyPermissionByUserZhengShiTrip, Err: " + e.Error())
|
|
|
- return
|
|
|
- }
|
|
|
+ //permissionZhengShiStr, e = models.GetCompanyPermissionByUserZhengShiTrip(companyId)
|
|
|
+ //if e != nil {
|
|
|
+ // err = errors.New("GetCompanyPermissionByUserZhengShiTrip, Err: " + e.Error())
|
|
|
+ // return
|
|
|
+ //}
|
|
|
//大套餐客户定义:医药、消费、科技、智造。4个行业中为升级,策略是正式,属于大套餐客户
|
|
|
if companyDetail.Status == "永续" {
|
|
|
userType = 1
|
|
@@ -555,7 +555,7 @@ func GetActivitySpecialUserType(companyId int) (userType int, permissionStrnew s
|
|
|
} else if companyDetail.Status == "正式" {
|
|
|
if permissionStr == "专家" {
|
|
|
userType = 4
|
|
|
- } else if strings.Count(permissionZhengShiStr, "医药") == 2 && strings.Count(permissionZhengShiStr, "消费") == 2 && strings.Count(permissionZhengShiStr, "科技") == 2 && strings.Count(permissionZhengShiStr, "智造") == 2 && strings.Count(permissionZhengShiStr, "策略") == 1 {
|
|
|
+ } else if strings.Count(permissionStr, "医药") == 2 && strings.Count(permissionStr, "消费") == 2 && strings.Count(permissionStr, "科技") == 2 && strings.Count(permissionStr, "智造") == 2 && strings.Count(permissionStr, "策略") == 1 {
|
|
|
userType = 2
|
|
|
} else {
|
|
|
userType = 3
|