zwxi 1 gadu atpakaļ
vecāks
revīzija
d92d1f0daa
2 mainītis faili ar 11 papildinājumiem un 6 dzēšanām
  1. 1 0
      controllers/banner.go
  2. 10 6
      models/banner_view_history.go

+ 1 - 0
controllers/banner.go

@@ -313,6 +313,7 @@ func (this *BannerController) BannerStatistic() {
 	}
 	for _, v := range urlList {
 		v.SourceList = souceMap[v.BannerUrl]
+		v.ActivityName = v.Remark + "(" +v.StartDate+"-"+v.EndDate+")"
 	}
 
 

+ 10 - 6
models/banner_view_history.go

@@ -39,12 +39,12 @@ type SourcePv struct {
 }
 
 type BannerHistoryListRespItem struct {
-	ViewHistoryID   uint64    `orm:"column(view_history_id);pk"` // id
-	UserID          uint64    // 用户id
-	Mobile          string    // 手机号
-	Email           string    // 邮箱
-	RealName        string    // 用户实际名称
-	CompanyName     string    // 公司名称
+	ViewHistoryID   uint64 `orm:"column(view_history_id);pk"` // id
+	UserID          uint64 // 用户id
+	Mobile          string // 手机号
+	Email           string // 邮箱
+	RealName        string // 用户实际名称
+	CompanyName     string // 公司名称
 	CreatedTime     string // 创建时间
 	LastUpdatedTime string
 	FirstSource     int // 一级来源 1小程序移动 2小程序pc 3研报官网
@@ -52,6 +52,10 @@ type BannerHistoryListRespItem struct {
 	BannerUrl       string
 	Pv              int
 	SourceList      []*SourcePv
+	StartDate       string
+	EndDate         string
+	Remark          string
+	ActivityName    string
 }
 
 type BannerHistoryListResp struct {