修改反馈

This commit is contained in:
Rosy-zhudan
2019-10-10 09:42:41 +08:00
parent de617fbc49
commit 1c5c0bbbcc
4 changed files with 11 additions and 12 deletions

View File

@@ -4,6 +4,7 @@ import (
"fmt"
"time"
"git.rosy.net.cn/baseapi/utils"
"git.rosy.net.cn/jx-callback/business/model"
)
@@ -18,10 +19,12 @@ func GetStoreAlertList(db *DaoDB, storeIDList []int, cityCode int, keyWord strin
FROM store_alert t1
JOIN store t2 ON t1.store_id = t2.id
JOIN place t3 ON t2.city_code = t3.code
WHERE DATE(t1.alert_date) = DATE(?)
WHERE t1.alert_date >= ? AND t1.alert_date <= ?
`
beginTime, endTime := utils.GetTimeRange(dateTime, 1, true)
sqlParams := []interface{}{
dateTime,
beginTime,
endTime,
}
if len(storeIDList) > 0 {
sql += `