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