|
@@ -104,7 +104,7 @@ func GetBaseFormRzdDataByCondition(condition string, pars []interface{}) (items
|
|
|
|
|
|
// GetRzdDataListByIndexCodes 根据指标编码查询
|
|
|
func GetRzdDataListByIndexCodes(IndexCodes string) (items []string, err error) {
|
|
|
- sql := ` SELECT data_time FROM base_from_rzd_data WHERE index_code IN(` + IndexCodes + `) GROUP BY data_time DESC `
|
|
|
+ sql := ` SELECT DISTINCT data_time FROM base_from_rzd_data WHERE index_code IN(` + IndexCodes + `) ORDER BY data_time DESC `
|
|
|
o := global.DbMap[utils.DbNameIndex]
|
|
|
err = o.Raw(sql).Find(&items).Error
|
|
|
if utils.NeedDateOrTimeFormat(utils.DbDriverName) {
|