|
@@ -154,6 +154,7 @@ func AddChartInfo(req *models.AddChartReq, sysUserId int, sysUserRealName string
|
|
|
chartInfo.UnitEn = req.ChartInfo.UnitEn
|
|
|
chartInfo.Description = req.Description
|
|
|
chartInfo.ChartImage = req.ChartInfo.ChartImage
|
|
|
+ chartInfo.Sort = req.ChartInfo.Sort
|
|
|
/*newId, err := models.AddChartInfo(chartInfo)
|
|
|
if err != nil {
|
|
|
errMsg = `保存失败`
|
|
@@ -383,6 +384,7 @@ func UpdateChartInfoAndEdbInfo(req *models.AddChartReq, sysUserId int, sysUserRe
|
|
|
chartInfo.ChartImage = req.ChartInfo.ChartImage
|
|
|
chartInfo.SysUserId = req.ChartInfo.SysUserId
|
|
|
chartInfo.SysUserRealName = req.ChartInfo.SysUserRealName
|
|
|
+ chartInfo.Sort = req.ChartInfo.Sort
|
|
|
// 查询创建者信息
|
|
|
if req.CreatorInfo != nil {
|
|
|
creator, _ := system.GetAdminByAdminName(req.CreatorInfo.AdminName)
|