xyxie 4 сар өмнө
parent
commit
db72e15b9f

+ 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
 	// 查询创建者信息