|
@@ -3,6 +3,7 @@ package models
|
|
|
import (
|
|
|
"fmt"
|
|
|
"github.com/beego/beego/v2/client/orm"
|
|
|
+ "hongze/hongze_clpt/models/company"
|
|
|
"hongze/hongze_clpt/utils"
|
|
|
"strconv"
|
|
|
"time"
|
|
@@ -53,6 +54,12 @@ func AddCygxArticleViewRecordNewpv(item *CygxArticleHistoryRecordNewpv) (lastId
|
|
|
o.Rollback()
|
|
|
}
|
|
|
}()
|
|
|
+
|
|
|
+ userSeller, err := company.GetCompanyProductListByUserId(item.UserId)
|
|
|
+ if err != nil {
|
|
|
+ return
|
|
|
+ }
|
|
|
+
|
|
|
lastId, err = o.Insert(item)
|
|
|
if err != nil {
|
|
|
return
|
|
@@ -84,6 +91,8 @@ func AddCygxArticleViewRecordNewpv(item *CygxArticleHistoryRecordNewpv) (lastId
|
|
|
record.StopTime = item.StopTime
|
|
|
record.OutType = item.OutType
|
|
|
record.Source = item.Source
|
|
|
+ record.CompanyStatus = userSeller.Status
|
|
|
+ record.SellerName = userSeller.SellerName
|
|
|
record.Platfor = 1
|
|
|
lastId, err = o.Insert(record)
|
|
|
if err != nil {
|
|
@@ -123,6 +132,8 @@ type CygxArticleHistoryRecordAll struct {
|
|
|
Platfor int `description:"PV阅读记录来源,1:查研观向,2:策略平台"`
|
|
|
IsDel int `description:"是否删除"`
|
|
|
RegisterPlatform int `description:"来源 1小程序,2:网页"`
|
|
|
+ CompanyStatus string `description:"公司状态"`
|
|
|
+ SellerName string `description:"所属销售"`
|
|
|
}
|
|
|
|
|
|
type EsUserInteraction struct {
|