Commit 0a0cf62e by mushishixian

调试

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