修改
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
package service
|
||||
|
||||
import (
|
||||
"gorm.io/gorm"
|
||||
"level_go/internal/model"
|
||||
"math"
|
||||
"sort"
|
||||
|
||||
"gorm.io/gorm"
|
||||
"level_go/internal/model"
|
||||
)
|
||||
|
||||
type StockService struct {
|
||||
@@ -37,7 +38,7 @@ func (s *StockService) AnalyzePerformance(startDate, endDate string) ([]model.An
|
||||
}
|
||||
|
||||
// 查询涨停股
|
||||
query := `SELECT l.ts_code, l.name, d.open, d.high FROM stock_limit_data l
|
||||
query := `SELECT l.ts_code, l.name, d.open, d.high FROM stock_limit_data l
|
||||
LEFT JOIN stock_daily d ON l.ts_code = d.ts_code AND l.trade_date = d.trade_date
|
||||
WHERE l.trade_date = ? AND l.status = 1`
|
||||
|
||||
|
||||
Reference in New Issue
Block a user