修改字段名
This commit is contained in:
@@ -662,7 +662,7 @@ func CheckScoreStore() {
|
||||
checkTime2 := utils.Str2Time(checkTimeStr2)
|
||||
if curTime.Unix() >= checkTime1.Unix() && curTime.Unix() <= checkTime2.Unix() {
|
||||
db := dao.GetDB()
|
||||
hasStoreScoreData, err := dao.CheckHasStoreScoreData(db, time.Now())
|
||||
hasStoreScoreData, err := dao.CheckHasStoreScoreData(db, curTime)
|
||||
if err == nil && !hasStoreScoreData {
|
||||
ScoreStore(jxcontext.AdminCtx, nil)
|
||||
}
|
||||
|
||||
@@ -55,7 +55,7 @@ func CheckHasStoreScoreData(db *DaoDB, dateTime time.Time) (hasStoreScoreData bo
|
||||
sql := `
|
||||
SELECT COUNT(*) count
|
||||
FROM store_score
|
||||
WHERE DATE(createtime) = DATE(?)
|
||||
WHERE DATE(score_date) = DATE(?)
|
||||
`
|
||||
sqlParams := []interface{}{
|
||||
dateTime,
|
||||
|
||||
Reference in New Issue
Block a user