Commit 0a0cf62e by mushishixian

调试

parent 456f5287
Showing with 1 additions and 3 deletions
...@@ -95,9 +95,6 @@ func main() { ...@@ -95,9 +95,6 @@ func main() {
specialDb.Close() specialDb.Close()
mongoConn.Close() mongoConn.Close()
}() }()
fmt.Println("开始")
//首先去找最后的更新时间,一般来说找统计表最后一条记录的时间就对了 //首先去找最后的更新时间,一般来说找统计表最后一条记录的时间就对了
updateTime, _ := specialDb.Reset().Table("lie_activity_statistics").OrderBy("id desc").Value("update_time") updateTime, _ := specialDb.Reset().Table("lie_activity_statistics").OrderBy("id desc").Value("update_time")
if updateTime == nil { if updateTime == nil {
...@@ -215,6 +212,7 @@ func main() { ...@@ -215,6 +212,7 @@ func main() {
} }
} }
fmt.Println("促销活动开始")
//价格促销活动统计*********************************************************************************************** //价格促销活动统计***********************************************************************************************
var priceActivityList []model.PriceActivity var priceActivityList []model.PriceActivity
err = specialDb.Reset().Table(&priceActivityList).Fields("id,start_time,end_time"). err = specialDb.Reset().Table(&priceActivityList).Fields("id,start_time,end_time").
......
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