|
@@ -27,10 +27,11 @@ type ChartEdbMapping struct {
|
|
|
|
|
|
// GetChartEdbMappingListByEdbInfoId 根据指标id获取关联图表列表
|
|
// GetChartEdbMappingListByEdbInfoId 根据指标id获取关联图表列表
|
|
func GetChartEdbMappingListByEdbInfoId(edbInfoId int) (list []*ChartEdbMapping, err error) {
|
|
func GetChartEdbMappingListByEdbInfoId(edbInfoId int) (list []*ChartEdbMapping, err error) {
|
|
- sql := ` SELECT *
|
|
|
|
|
|
+ sql := ` SELECT a.*
|
|
FROM chart_edb_mapping AS a
|
|
FROM chart_edb_mapping AS a
|
|
- WHERE edb_info_id=?
|
|
|
|
- ORDER BY chart_edb_mapping_id ASC `
|
|
|
|
- err = global.DEFAULT_DmSQL.Raw(sql, edbInfoId).Scan(&list).Error
|
|
|
|
|
|
+ WHERE a.edb_info_id=?
|
|
|
|
+ ORDER BY a.chart_edb_mapping_id ASC `
|
|
|
|
+ err = global.DEFAULT_DmSQL.Raw(sql, edbInfoId).Find(&list).Error
|
|
|
|
+
|
|
return
|
|
return
|
|
}
|
|
}
|