Commit 456f5287 by mushishixian

调试

parent 40e97558
Showing with 1 additions and 2 deletions
......@@ -104,7 +104,6 @@ func main() {
updateTime = 1
}
updateTime = 1
fmt.Println(updateTime)
//先去取出所有的正在进行的活动列表
var giftActivityList []model.GiftActivity
err = specialDb.Reset().Table(&giftActivityList).Fields("id,start_time,end_time").
......@@ -219,7 +218,7 @@ func main() {
//价格促销活动统计***********************************************************************************************
var priceActivityList []model.PriceActivity
err = specialDb.Reset().Table(&priceActivityList).Fields("id,start_time,end_time").
Where("end_time", ">", updateTime).Select()
Where("end_time", ">", updateTime).Where("id", "=", 30).Select()
if err != nil {
logger.Error(err.Error())
fmt.Println(err.Error())
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment