This commit is contained in:
laodaming 2023-09-27 11:21:16 +08:00
parent ab916ac13d
commit 36ae64f3e7

View File

@ -264,7 +264,9 @@ func (l *GetTagProductListLogic) getProductRelationInfo(req getProductRelationIn
}
itemPrice := mapModelMinPrice[v.Id]
if *v.PartId > 0 {
itemPrice += mapModelMinPrice[*v.PartId]
if fittingPrice, ok := mapModelMinPrice[*v.PartId]; ok {
itemPrice += fittingPrice
}
}
if minPrice, ok := req.MapProductMinPrice[*v.ProductId]; ok {
if itemPrice < minPrice {