fix: 未设置会员价与商品价保持一致
This commit is contained in:
@@ -489,6 +489,10 @@ public class ProductService {
|
|||||||
if (lowMemberPrice == null || lowMemberPrice.compareTo(item.getMemberPrice()) > 0) {
|
if (lowMemberPrice == null || lowMemberPrice.compareTo(item.getMemberPrice()) > 0) {
|
||||||
lowMemberPrice = item.getMemberPrice();
|
lowMemberPrice = item.getMemberPrice();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (item.getMemberPrice() == null || item.getMemberPrice().compareTo(BigDecimal.ZERO) <= 0) {
|
||||||
|
item.setMealPrice(item.getSalePrice());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// 销量
|
// 销量
|
||||||
it.setStockNumber(sum.intValue());
|
it.setStockNumber(sum.intValue());
|
||||||
|
|||||||
Reference in New Issue
Block a user