新增防水布
This commit is contained in:
@@ -5284,7 +5284,7 @@ public class ProductService {
|
||||
if ("黑胶涤纶布".equals(dto.getKindValue())) {
|
||||
basePrice = basePrice + 1;
|
||||
}
|
||||
price = Math.ceil(basePrice * area * count * number);
|
||||
price = Math.ceil(Math.max(basePrice * area * count, 50) * number);
|
||||
}
|
||||
|
||||
pro.setPrice(Math.ceil(price));
|
||||
@@ -5297,6 +5297,9 @@ public class ProductService {
|
||||
if (craft_list.contains("防风绳")) {
|
||||
product.setPrice(Math.floor(product.getPrice() + dto.getPcount() * 2));
|
||||
}
|
||||
if (craft_list.contains("圆盘")) {
|
||||
product.setPrice(Math.floor(product.getPrice() + dto.getStickNum() * 8));
|
||||
}
|
||||
product.setWeight(String.valueOf(area * count * number * 0.08 + dto.getShuliang() * 3.3));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user