|
@@ -94,6 +94,7 @@ func (this *CalendarController) CompanyDetail() {
|
|
|
if productId == 0 {
|
|
|
productId = 1
|
|
|
}
|
|
|
+
|
|
|
if companyType == utils.COMPANY_CLASSIFY_RAI {
|
|
|
productId = 2
|
|
|
}
|
|
@@ -135,6 +136,17 @@ func (this *CalendarController) CompanyDetail() {
|
|
|
//detailView.PermissionName = strings.Join(permissionArr, "/")
|
|
|
detailView.PermissionName = rsReportRecordItem.PermissionName
|
|
|
detailView.ReportReadTotal = companyProductItem.ViewTotal //ficc报告-累计阅读次数
|
|
|
+
|
|
|
+ if companyType == utils.COMPANY_CLASSIFY_RAI { //权益互动统计
|
|
|
+ companyItem, err := company.GetCompanyById(companyId)
|
|
|
+ if err != nil {
|
|
|
+ br.Msg = "查找客户失败"
|
|
|
+ br.ErrMsg = "查找客户失败,Err:" + err.Error()
|
|
|
+ return
|
|
|
+ }
|
|
|
+ detailView.ReportReadTotal = companyItem.InteractionNum
|
|
|
+ }
|
|
|
+
|
|
|
br.Ret = 200
|
|
|
br.Success = true
|
|
|
br.Msg = "获取成功"
|