|
@@ -361,6 +361,18 @@ func UpdateChartInfoAndEdbInfo(req *models.AddChartReq, sysUserId int, sysUserRe
|
|
|
chartInfo.MarkersAreas = req.ChartInfo.MarkersAreas
|
|
|
chartInfo.Unit = req.ChartInfo.Unit
|
|
|
chartInfo.UnitEn = req.ChartInfo.UnitEn
|
|
|
+
|
|
|
+ chartInfo.SysUserId = req.ChartInfo.SysUserId
|
|
|
+ chartInfo.SysUserRealName = req.ChartInfo.SysUserRealName
|
|
|
+ // 查询创建者信息
|
|
|
+ if req.CreatorInfo != nil {
|
|
|
+ creator, _ := system.GetAdminByAdminName(req.CreatorInfo.AdminName)
|
|
|
+ if creator != nil {
|
|
|
+ chartInfo.SysUserId = creator.AdminId
|
|
|
+ chartInfo.SysUserRealName = creator.RealName
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
err = chartInfo.Update([]string{})
|
|
|
if err != nil {
|
|
|
errMsg = `更新失败`
|