Ver código fonte

fix: 智能研报PV

hsun 1 ano atrás
pai
commit
58355f4e04

+ 2 - 2
controllers/smart_report/smart_report.go

@@ -930,9 +930,9 @@ func (this *SmartReportController) List() {
 	// 列表查询过滤掉富文本内容
 	fields := []string{
 		"smart_report_id", "report_code", "classify_id_first", "classify_name_first", "classify_id_second", "classify_name_second", "add_type",
-		"title", "author", "frequency", "stage", "video_url", "video_name", "video_play_seconds", "video_size", "detail_img_url", "detail_pdf_url",
+		"title", "abstract", "author", "frequency", "stage", "video_url", "video_name", "video_play_seconds", "video_size", "detail_img_url", "detail_pdf_url",
 		"admin_id", "admin_real_name", "state", "publish_time", "pre_publish_time", "pre_msg_send", "msg_is_send", "msg_send_time", "create_time", "modify_time",
-		"last_modify_admin_id", "last_modify_admin_name", "content_modify_time", "abstract",
+		"last_modify_admin_id", "last_modify_admin_name", "content_modify_time", "pv", "uv",
 	}
 	list, e := reportOB.GetPageItemsByCondition(condition, pars, fields, "", startSize, params.PageSize)
 	if e != nil {

+ 2 - 0
models/smart_report/smart_report.go

@@ -195,6 +195,7 @@ type SmartReportItem struct {
 	PublishTime         string  `description:"发布时间"`
 	PrePublishTime      string  `description:"预发布时间"`
 	MsgIsSend           int     `description:"消息是否已发送:0-否;1-是"`
+	MsgSendTime         string  `description:"模版消息发送时间"`
 	DetailImgUrl        string  `description:"报告详情长图地址"`
 	DetailPdfUrl        string  `description:"报告详情PDF地址"`
 	CreateTime          string  `description:"创建时间"`
@@ -239,6 +240,7 @@ func FormatSmartReport2Item(origin *SmartReport) (item *SmartReportItem) {
 	item.PublishTime = utils.TimeTransferString(utils.FormatDateTime, origin.PublishTime)
 	item.PrePublishTime = utils.TimeTransferString(utils.FormatDateTime, origin.PrePublishTime)
 	item.MsgIsSend = origin.MsgIsSend
+	item.MsgSendTime = utils.TimeTransferString(utils.FormatDateTime, origin.MsgSendTime)
 	item.DetailImgUrl = origin.DetailImgUrl
 	item.DetailPdfUrl = origin.DetailPdfUrl
 	item.CreateTime = utils.TimeTransferString(utils.FormatDateTime, origin.CreateTime)