瀏覽代碼

同步图表封面

xyxie 4 月之前
父節點
當前提交
db72e15b9f
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      services/chart_info.go

+ 2 - 1
services/chart_info.go

@@ -151,6 +151,7 @@ func AddChartInfo(req *models.AddChartReq, sysUserId int, sysUserRealName string
 	chartInfo.Unit = req.ChartInfo.Unit
 	chartInfo.UnitEn = req.ChartInfo.UnitEn
 	chartInfo.Description = req.Description
+	chartInfo.ChartImage = req.ChartInfo.ChartImage
 	/*newId, err := models.AddChartInfo(chartInfo)
 	if err != nil {
 		errMsg = `保存失败`
@@ -376,7 +377,7 @@ func UpdateChartInfoAndEdbInfo(req *models.AddChartReq, sysUserId int, sysUserRe
 	chartInfo.MarkersAreas = req.ChartInfo.MarkersAreas
 	chartInfo.Unit = req.ChartInfo.Unit
 	chartInfo.UnitEn = req.ChartInfo.UnitEn
-
+	chartInfo.ChartImage = req.ChartInfo.ChartImage
 	chartInfo.SysUserId = req.ChartInfo.SysUserId
 	chartInfo.SysUserRealName = req.ChartInfo.SysUserRealName
 	// 查询创建者信息