diff --git a/business/partner/purchase/mtwm/order_comment.go b/business/partner/purchase/mtwm/order_comment.go index 3f227cad6..6103d85e8 100644 --- a/business/partner/purchase/mtwm/order_comment.go +++ b/business/partner/purchase/mtwm/order_comment.go @@ -51,8 +51,6 @@ func (c *PurchaseHandler) RefreshComment(fromTime, toTime time.Time) (err error) startDateStr := time.Now().Add(-RefreshCommentTime).Format("20060102") storeIDs, _ := dao.GetOrderStoreIDs(dao.GetDB(), fromTime, toTime, model.VendorIDMTWM) storeIDs = append(storeIDs, 804697) - globals.SugarLogger.Debugf("------fromTime := %s", utils.Format4Output(fromTime, false)) - globals.SugarLogger.Debugf("------toTime := %s", utils.Format4Output(toTime, false)) globals.SugarLogger.Debugf("------storeIDs := %s", utils.Format4Output(storeIDs, false)) task := tasksch.NewParallelTask("mtwm RefreshComment", nil, jxcontext.AdminCtx, func(task *tasksch.ParallelTask, batchItemList []interface{}, params ...interface{}) (retVal interface{}, err error) { @@ -63,10 +61,11 @@ func (c *PurchaseHandler) RefreshComment(fromTime, toTime time.Time) (err error) return nil, nil } // 查询门店差评 - globals.SugarLogger.Debugf("------startDateStr := %s", startDateStr) - globals.SugarLogger.Debugf("------endDateStr := %s", endDateStr) commentList, err := getAPI(storeDetail.VendorOrgCode, storeID, storeDetail.VendorStoreID).CommentQuery(storeDetail.VendorStoreID, startDateStr, endDateStr, 0, 0, mtwmapi.CommentReplyStatusNotReplied) - globals.SugarLogger.Debugf("commentList lenght --------------- := %s", utils.Format4Output(len(commentList), false)) + globals.SugarLogger.Debugf("commentList lenght --------------- :=%d,%s,%s", storeID, storeDetail.VendorStoreID, utils.Format4Output(len(commentList), false)) + if err != nil { + globals.SugarLogger.Debugf("=========err := %v", err) + } var orderCommentList []*model.OrderComment if len(commentList) == model.NO || commentList == nil { return nil, nil