浏览代码

no message

zhangchuanxing 1 周之前
父节点
当前提交
97210d9466

+ 2 - 0
models/activity_video_history.go

@@ -91,6 +91,7 @@ type CygxActivityVideoHistoryResp struct {
 	RealName         string `description:"用户实际名称"`
 	CreateTime       string `description:"创建时间"`
 	RegisterPlatform int    `description:"来源 1小程序,2:网页"`
+	ActivityId       int    `description:"活动ID"`
 }
 
 // 列表
@@ -99,6 +100,7 @@ func GetCygxActivityVideoHistoryListNoLimit(condition string, pars []interface{}
 	sql := `SELECT
 			a.video_name,
 			a.video_id,
+			a.activity_id,
 			b.user_id,
 			b.real_name,
 			b.mobile,

+ 2 - 0
models/activity_voice_history.go

@@ -82,6 +82,7 @@ type CygxActivityVoiceHistoryResp struct {
 	CompanyName      string `description:"公司名称"`
 	RealName         string `description:"用户实际名称"`
 	CreateTime       string `description:"创建时间"`
+	ActivityId       int    `description:"活动ID"`
 	RegisterPlatform int    `description:"来源 1小程序,2:网页"`
 }
 
@@ -91,6 +92,7 @@ func GetCygxActivityVoiceHistoryListNoLimit(condition string, pars []interface{}
 	sql := `SELECT
 			a.voice_name,
 			a.activity_voice_id,
+			a.activity_id,
 			b.user_id,
 			b.real_name,
 			b.mobile,

+ 1 - 0
models/rai_serve/rai_company_user_bill.go

@@ -30,6 +30,7 @@ type CygxRaiCompanyUserBill struct {
 	ChartPermissionName string    `description:"行业名称"`
 	CreateTime          time.Time `comment:"创建时间"`
 	ViewTime            string    `comment:"浏览时间"`
+	ActivityId          int       `description:"活动ID"`
 }
 
 // 列表

+ 1 - 0
models/rai_serve/rai_serve_bill.go

@@ -31,6 +31,7 @@ type CygxRaiServeBill struct {
 	ChartPermissionName string    `description:"行业名称"`
 	CreateTime          time.Time `comment:"创建时间"`
 	ViewTime            string    `comment:"浏览时间"`
+	ActivityId          int       `description:"活动ID"`
 }
 
 // Redis对列消息中的结构体

+ 4 - 2
services/rai_company_user_bill.go

@@ -681,6 +681,7 @@ func UpdateCygxRaiCompanyUserBill() (err error) {
 				item.ServeCount = item.ServeCount * 3
 			}
 			item.SourceId = v.ActivityVoiceId
+			item.ActivityId = v.ActivityId
 			item.Source = utils.CYGX_OBJ_ACTIVITYVOICE
 			item.CreateTime = time.Now()
 			item.ViewTime = v.CreateTime
@@ -746,6 +747,7 @@ func UpdateCygxRaiCompanyUserBill() (err error) {
 				item.ServeCount = item.ServeCount * 3
 			}
 			item.SourceId = v.VideoId
+			item.ActivityId = v.ActivityId
 			item.Source = utils.CYGX_OBJ_ACTIVITYVIDEO
 			item.CreateTime = time.Now()
 			item.ViewTime = v.CreateTime
@@ -796,7 +798,7 @@ func UpdateCygxRaiCompanyUserBill() (err error) {
 				continue
 			}
 			item := new(rai_serve.CygxRaiCompanyUserBill)
-			item.Content = ""
+			item.Content = "重点公司"
 			item.ServeTypeId = 5
 			item.ServeTypeName = "阅读uv"
 			item.UserId = v.UserId
@@ -861,7 +863,7 @@ func UpdateCygxRaiCompanyUserBill() (err error) {
 				continue
 			}
 			item := new(rai_serve.CygxRaiCompanyUserBill)
-			item.Content = ""
+			item.Content = v.Title
 			item.ServeTypeId = 5
 			item.ServeTypeName = "阅读uv"
 			item.UserId = v.UserId

+ 4 - 2
services/rai_serve_count.go

@@ -1067,6 +1067,7 @@ func UpdateCygxRaiServeBillByCompanyIds() (err error) {
 				item.ServeCount = item.ServeCount * 3
 			}
 			item.SourceId = v.ActivityVoiceId
+			item.ActivityId = v.ActivityId
 			item.Source = utils.CYGX_OBJ_ACTIVITYVOICE
 			item.CreateTime = time.Now()
 			item.ViewTime = v.CreateTime
@@ -1132,6 +1133,7 @@ func UpdateCygxRaiServeBillByCompanyIds() (err error) {
 				item.ServeCount = item.ServeCount * 3
 			}
 			item.SourceId = v.VideoId
+			item.ActivityId = v.ActivityId
 			item.Source = utils.CYGX_OBJ_ACTIVITYVIDEO
 			item.CreateTime = time.Now()
 			item.ViewTime = v.CreateTime
@@ -1182,7 +1184,7 @@ func UpdateCygxRaiServeBillByCompanyIds() (err error) {
 				continue
 			}
 			item := new(rai_serve.CygxRaiServeBill)
-			item.Content = ""
+			item.Content = "重点公司"
 			item.ServeTypeId = 5
 			item.ServeTypeName = "阅读uv"
 			item.UserId = v.UserId
@@ -1247,7 +1249,7 @@ func UpdateCygxRaiServeBillByCompanyIds() (err error) {
 				continue
 			}
 			item := new(rai_serve.CygxRaiServeBill)
-			item.Content = ""
+			item.Content = v.Title
 			item.ServeTypeId = 5
 			item.ServeTypeName = "阅读uv"
 			item.UserId = v.UserId