Browse Source

fix:用户收藏图表列表

Roc 2 years ago
parent
commit
b5bf6e1e0b
2 changed files with 3 additions and 1 deletions
  1. 2 1
      controller/my_chart/my_chart.go
  2. 1 0
      models/response/my_chart.go

+ 2 - 1
controller/my_chart/my_chart.go

@@ -68,6 +68,7 @@ func (this *MyChartController) List(c *gin.Context) {
 			UserID:            list[i].UserID,
 			ReportID:          list[i].ReportID,
 			ReportChapterID:   list[i].ReportChapterID,
+			ChartInfoSource:   list[i].Source,
 			CreateTime:        utils.TimeTransferString(utils.FormatDateTime, list[i].CreateTime),
 		})
 	}
@@ -184,7 +185,7 @@ func (this *MyChartController) Collect(c *gin.Context) {
 			//查询ficc产品信息和ficc销售信息
 			companyInfo, e := company_product.GetByCompany2ProductId(userInfo.CompanyID, 1)
 			if e != nil && e != utils.ErrNoRow {
-				response.FailMsg("获取客户信息失败", "获取客户信息失败, Err: " + e.Error(), c)
+				response.FailMsg("获取客户信息失败", "获取客户信息失败, Err: "+e.Error(), c)
 				return
 			}
 			if companyInfo != nil && companyInfo.CompanyID > 0 {

+ 1 - 0
models/response/my_chart.go

@@ -20,6 +20,7 @@ type MyChartItem struct {
 	UserID            int    `json:"user_id"`
 	ReportID          int    `json:"report_id"`
 	ReportChapterID   int    `json:"report_chapter_id"`
+	ChartInfoSource   int    `json:"chart_info_source"`
 	CreateTime        string `json:"create_time"`
 }