Цей коміт міститься в:
2026-03-30 14:06:02 +08:00
джерело 7b2f033fe6
коміт f8374b1be3
+1 -1
Переглянути файл
@@ -548,7 +548,7 @@ public class ProductService {
if ("12".equals(dto.getToothpick_size())) { if ("12".equals(dto.getToothpick_size())) {
basePrice = basePrice + 0.02; basePrice = basePrice + 0.02;
} }
if ("常规".equals(dto.getKind2Value())) { if ("常规".equals(dto.getKind2Value()) && "0".equals(dto.getKindValue())) {
product.setPrice(product.getPrice() + Math.max(Math.ceil(product.getCount() * basePrice), 5)); product.setPrice(product.getPrice() + Math.max(Math.ceil(product.getCount() * basePrice), 5));
} else { } else {
product.setPrice(product.getPrice() + Math.max(Math.ceil(product.getCount() * basePrice), 5) * number); product.setPrice(product.getPrice() + Math.max(Math.ceil(product.getCount() * basePrice), 5) * number);