|
@@ -117,7 +117,7 @@ func GetFutureGoodEdbChartEdbMappingList(chartInfoId int) (items []*ChartEdbInfo
|
|
|
|
|
|
// GetChartEdbMappingByEdbInfoId 根据指标id获取edb_mapping
|
|
// GetChartEdbMappingByEdbInfoId 根据指标id获取edb_mapping
|
|
func GetChartEdbMappingByEdbInfoId(edbInfoId int) (item *ChartEdbInfoMapping, err error) {
|
|
func GetChartEdbMappingByEdbInfoId(edbInfoId int) (item *ChartEdbInfoMapping, err error) {
|
|
- sql := ` SELECT edb_info_id,source_name,source,b.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,max_value,min_value
|
|
|
|
|
|
+ sql := ` SELECT edb_info_id,source_name,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,max_value,min_value
|
|
FROM edb_info
|
|
FROM edb_info
|
|
WHERE edb_info_id = ? limit 1`
|
|
WHERE edb_info_id = ? limit 1`
|
|
err = global.MYSQL["data"].Raw(sql, edbInfoId).First(&item).Error
|
|
err = global.MYSQL["data"].Raw(sql, edbInfoId).First(&item).Error
|
|
@@ -130,7 +130,7 @@ func GetChartEdbMappingListByEdbInfoIdList(edbIdList []int) (list []*ChartEdbInf
|
|
if num <= 0 {
|
|
if num <= 0 {
|
|
return
|
|
return
|
|
}
|
|
}
|
|
- sql := ` SELECT edb_info_id,source_name,source,b.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,max_value,min_value
|
|
|
|
|
|
+ sql := ` SELECT edb_info_id,source_name,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,max_value,min_value
|
|
FROM edb_info
|
|
FROM edb_info
|
|
WHERE edb_info_id IN(?)
|
|
WHERE edb_info_id IN(?)
|
|
ORDER BY FIELD(edb_info_id,?)
|
|
ORDER BY FIELD(edb_info_id,?)
|