fix bug
This commit is contained in:
@@ -1,21 +1,14 @@
|
||||
package strategy
|
||||
|
||||
import (
|
||||
"log"
|
||||
// func TotalScore(ymd int) {
|
||||
// log.Println("Total Score", ymd)
|
||||
// where := " where up_date_day>360 and ymd=" + utils.Int2String(ymd)
|
||||
// sql := "update strat_model set total_score=industry_score+st_score+gt_amount+gt_price+roe_score+rsi_score" + where
|
||||
|
||||
"git.apinb.com/bsm-sdk/core/utils"
|
||||
"git.apinb.com/quant/gostock/internal/impl"
|
||||
)
|
||||
|
||||
func TotalScore(ymd int) {
|
||||
log.Println("Total Score", ymd)
|
||||
where := " where up_date_day>360 and ymd=" + utils.Int2String(ymd)
|
||||
sql := "update strat_model set total_score=industry_score+st_score+gt_amount+gt_price+roe_score+rsi_score" + where
|
||||
|
||||
log.Println("SQL:", sql)
|
||||
err := impl.DBService.Exec(sql).Error
|
||||
if err != nil {
|
||||
log.Println("Failed to update total score:", err)
|
||||
return
|
||||
}
|
||||
}
|
||||
// log.Println("SQL:", sql)
|
||||
// err := impl.DBService.Exec(sql).Error
|
||||
// if err != nil {
|
||||
// log.Println("Failed to update total score:", err)
|
||||
// return
|
||||
// }
|
||||
// }
|
||||
|
||||
Reference in New Issue
Block a user