|
@@ -250,7 +250,7 @@ func GetReportDetail(userinfo *models.WxUserItem, reportId int) (reportDetail fi
|
|
|
fmt.Println(companyPermission)
|
|
|
if companyPermission == "" {
|
|
|
if applyCount > 0 {
|
|
|
- hasPermission = 5
|
|
|
+ hasPermission = 6
|
|
|
} else {
|
|
|
hasPermission = 2
|
|
|
}
|
|
@@ -263,9 +263,8 @@ func GetReportDetail(userinfo *models.WxUserItem, reportId int) (reportDetail fi
|
|
|
if hasPersion {
|
|
|
hasPermission = 1
|
|
|
} else { //无该行业权限
|
|
|
- companyDetail, e := models.GetCompanyDetailById(userinfo.CompanyId)
|
|
|
- if e == nil && companyDetail.ProductId == 1 {
|
|
|
- hasPermission = 2
|
|
|
+ if applyCount == 0 {
|
|
|
+ hasPermission = 4
|
|
|
} else {
|
|
|
hasPermission = 3
|
|
|
}
|
|
@@ -283,9 +282,9 @@ func GetReportDetail(userinfo *models.WxUserItem, reportId int) (reportDetail fi
|
|
|
}
|
|
|
} else { //潜在客户
|
|
|
if applyCount > 0 {
|
|
|
- hasPermission = 5
|
|
|
+ hasPermission = 6
|
|
|
} else {
|
|
|
- hasPermission = 4
|
|
|
+ hasPermission = 5
|
|
|
}
|
|
|
}
|
|
|
reportDetail.HasPermission = hasPermission
|