1
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user