|
@@ -340,6 +340,7 @@ func GetUserType(companyId int) (userType int, permissionStrnew string, err erro
|
|
|
}
|
|
|
|
|
|
|
|
|
+
|
|
|
if companyDetail.Status == "永续" {
|
|
|
userType = 1
|
|
|
} else if companyDetail.Status == "试用" {
|
|
@@ -362,6 +363,28 @@ func GetUserType(companyId int) (userType int, permissionStrnew string, err erro
|
|
|
} else if companyDetail.Status == "流失" {
|
|
|
userType = 7
|
|
|
}
|
|
|
+
|
|
|
+ if userType == 3 {
|
|
|
+ var permissionZhegnshiNum int
|
|
|
+ if strings.Count(permissionZhegnshiStr, "医药") == 2 {
|
|
|
+ permissionZhegnshiNum++
|
|
|
+ }
|
|
|
+ if strings.Count(permissionZhegnshiStr, "消费") == 2 {
|
|
|
+ permissionZhegnshiNum++
|
|
|
+ }
|
|
|
+ if strings.Count(permissionZhegnshiStr, "科技") == 2 {
|
|
|
+ permissionZhegnshiNum++
|
|
|
+ }
|
|
|
+ if strings.Count(permissionZhegnshiStr, "智造") == 2 {
|
|
|
+ permissionZhegnshiNum++
|
|
|
+ }
|
|
|
+ if strings.Count(permissionZhegnshiStr, "策略") == 1 {
|
|
|
+ permissionZhegnshiNum++
|
|
|
+ }
|
|
|
+ if permissionZhegnshiNum >= 4 {
|
|
|
+ userType = 2
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
permissionStrnew = permissionStr
|