|
@@ -506,6 +506,8 @@ type YData struct {
|
|
|
EnNameList []string `description:"每个值对应的英文名称"`
|
|
|
EdbValMap map[int]float64 `description:"指标与值的对应" json:"-"`
|
|
|
M []int `description:"对应开始日期的间隔值" json:"-"`
|
|
|
+ Unit string `description:"中文单位名称"`
|
|
|
+ UnitEn string `description:"英文单位名称"`
|
|
|
}
|
|
|
|
|
|
func ModifyChartInfoAndMapping(edbInfoIdStr string, req *SaveChartInfoReq, chartType int) (err error) {
|
|
@@ -1232,6 +1234,7 @@ type ChartInfoView struct {
|
|
|
ChartInfoId int `orm:"column(chart_info_id);pk"`
|
|
|
ChartName string `description:"来源名称"`
|
|
|
ChartNameEn string `description:"英文图表名称"`
|
|
|
+ Unit string `description:"中文单位名称"`
|
|
|
UnitEn string `description:"英文单位名称"`
|
|
|
ChartClassifyId int `description:"图表分类id"`
|
|
|
ChartClassifyName string `description:"图表名称"`
|
|
@@ -1405,6 +1408,8 @@ type BarChartInfoReq struct {
|
|
|
Sort BarChartInfoSortReq `description:"排序"`
|
|
|
XEdbList []BarChartInfoEdbItemReq `description:"X轴选择的指标列表"`
|
|
|
YEdbList []BarChartInfoEdbItemReq `description:"Y轴选择的指标列表"`
|
|
|
+ Unit string `description:"中文单位"`
|
|
|
+ UnitEn string `description:"英文单位"`
|
|
|
}
|
|
|
|
|
|
// BarChartInfoEdbItemReq 柱方图预览请求数据(指标相关)
|
|
@@ -1748,4 +1753,4 @@ func GetChartInfoByAdminIdAndClassify(sourceList []int, adminId, classifyId int)
|
|
|
FROM chart_info where source in (` + utils.GetOrmInReplace(num) + `) AND sys_user_id = ? AND chart_classify_id = ? ORDER BY sort asc,create_time ASC `
|
|
|
_, err = o.Raw(sql, sourceList, adminId, classifyId).QueryRows(&items)
|
|
|
return
|
|
|
-}
|
|
|
+}
|