Browse Source

no message

zhangchuanxing 3 tháng trước cách đây
mục cha
commit
d5617c6033
2 tập tin đã thay đổi với 13 bổ sung0 xóa
  1. 12 0
      controllers/roadshow/company.go
  2. 1 0
      models/company/company.go

+ 12 - 0
controllers/roadshow/company.go

@@ -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 = "获取成功"

+ 1 - 0
models/company/company.go

@@ -42,6 +42,7 @@ type Company struct {
 	IsHide          int       `description:"是否隐藏:0:不隐藏,1:隐藏"`
 	OverseasStatus  string    `description:"海外客户状态:'正式','试用','关闭'"`
 	ResetBtn        int       `description:"转正式和重置按钮:同步过来默认为0:显示转正式为1:显示重置为2"`
+	InteractionNum  int       `description:"用户总的互动量"`
 }
 
 // 新增客户