This commit is contained in:
邹宗楠
2024-07-17 17:28:01 +08:00
parent d4bc6f1946
commit 379159f014
2 changed files with 4 additions and 2 deletions

View File

@@ -99,7 +99,9 @@ func (c *PurchaseHandler) RefreshComment(fromTime, toTime time.Time) (err error)
}
}
vendorOrderID, _ := dao.GetBadCommentOrderId(storeDetail.ID, startTime, endTime, foodNameList)
orderComment.VendorOrderID = fmt.Sprintf("%s:%s", vendorOrderID, orderComment.VendorOrderID)
if vendorOrderID != "" {
orderComment.VendorOrderID = fmt.Sprintf("%s:%s", vendorOrderID, orderComment.VendorOrderID)
}
}
orderCommentList = append(orderCommentList, orderComment)