This commit is contained in:
邹宗楠
2024-08-05 10:36:52 +08:00
parent 81d6e81479
commit d32fffb265

View File

@@ -180,7 +180,6 @@ func GetMtwmCommentList4ShanGou(key string, appOrgCode string, startTime, endTim
}
func CommentListData(db *dao.DaoDB, skuList []*mtwmapi.CommentsList, startTime, endTime string) []*model.OrderComment {
globals.SugarLogger.Debugf("=========skuList:= %s", utils.Format4Output(skuList, false))
st, _ := utils.TryStr2Time(startTime)
et, _ := utils.TryStr2Time(endTime)
orderCommentList := make([]*model.OrderComment, 0, len(skuList))
@@ -234,8 +233,7 @@ func CommentListData(db *dao.DaoDB, skuList []*mtwmapi.CommentsList, startTime,
}
}
globals.SugarLogger.Debugf("=====ordercomment := %s", utils.Format4Output(orderComment, false))
store, err := dao.GetStoreDetail2(db, 0, orderComment.VendorStoreID, model.VendorIDMTWM)
store, err := dao.GetStoreDetailByVendorStoreID(db, orderComment.VendorStoreID, orderComment.VendorID, "")
if err != nil {
globals.SugarLogger.Debugf("获取美团外卖差评列表,失败:%v", err)
continue