修改牙签款数价格
Цей коміт міститься в:
@@ -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);
|
||||||
|
|||||||
Посилання в новій задачі
Заблокувати користувача