|
@@ -193,7 +193,7 @@ func GetChartEdbMappingListV2(chartInfoId int) (list []*ChartEdbInfoMapping, err
|
|
// GetChartEdbMappingByEdbInfoId 根据指标id获取edb_mapping
|
|
// GetChartEdbMappingByEdbInfoId 根据指标id获取edb_mapping
|
|
func GetChartEdbMappingByEdbInfoId(edbInfoId int) (item *ChartEdbInfoMapping, err error) {
|
|
func GetChartEdbMappingByEdbInfoId(edbInfoId int) (item *ChartEdbInfoMapping, err error) {
|
|
o := orm.NewOrmUsingDB("data")
|
|
o := orm.NewOrmUsingDB("data")
|
|
- sql := ` SELECT edb_info_id,source_name,classify_id,source,sub_source,edb_code,edb_name,edb_name_en,frequency,unit,unit_en,start_date,end_date,modify_time,latest_date,latest_value,unique_code,edb_info_type,is_join_permission AS edb_info_category_type,edb_type,max_value,min_value
|
|
|
|
|
|
+ sql := ` SELECT edb_info_id,source_name,classify_id,source,sub_source,edb_code,edb_name,edb_name_en,frequency,unit,unit_en,start_date,end_date,modify_time,latest_date,latest_value,unique_code,edb_info_type AS edb_info_category_type,edb_type,max_value,min_value,is_join_permission
|
|
FROM edb_info
|
|
FROM edb_info
|
|
WHERE edb_info_id = ? limit 1`
|
|
WHERE edb_info_id = ? limit 1`
|
|
err = o.Raw(sql, edbInfoId).QueryRow(&item)
|
|
err = o.Raw(sql, edbInfoId).QueryRow(&item)
|