修改亚克力设计费

This commit is contained in:
2026-06-06 08:39:35 +08:00
parent 62dfd679b0
commit 3e549c1856
2 changed files with 48 additions and 22 deletions
@@ -4260,6 +4260,11 @@ public class ProductService {
}
product.setWeight(df.format(0.28 * width * length * product.getCount() / 10000 * number));
}
if (width < 50 || length < 50) {
if (role.contains("1053")) {
product.setPrice(Math.ceil(product.getPrice() + number * 5));
}
}
}
return chucklePrice(role, priceList);
case "29"://慕斯垫
@@ -4592,7 +4597,7 @@ public class ProductService {
ShengDaPriceResultVo result = ShengDaPriceUtils.getPrice(params);
double price = Math.ceil(result.getData().getPrice() / (1 - 0.65));
double designPrice = number * 5;
double designPrice = number * 8;
Product product = new Product();
product.setPrice(Math.ceil(Math.max(price, 30) + designPrice));
@@ -5291,7 +5296,7 @@ public class ProductService {
if (craft_list.contains("防风绳")) {
product.setPrice(Math.floor(product.getPrice() + dto.getPcount() * 2));
}
product.setWeight(String.valueOf(area * 0.18 + dto.getShuliang() * 3.3));
product.setWeight(String.valueOf(area * count * number * 0.08 + dto.getShuliang() * 3.3));
}
return priceList;
@@ -8550,7 +8555,7 @@ public class ProductService {
public List<Product> chucklePrice(String role, List<Product> list) {
//
List<String> roleList = Arrays.asList("1045", "1061", "1029", "1054", "1053");
List<String> roleList = Arrays.asList("1045", "1061", "1029", "1054", "1053", "1055");
boolean isIn = false;
for (String s : roleList) {
if (role.indexOf(s) > -1) {