新增流苏工艺

This commit is contained in:
2026-04-08 15:36:24 +08:00
parent ee17035e69
commit 6b9c9feefb
3 changed files with 31 additions and 1 deletions
@@ -3136,12 +3136,19 @@ public class ProductService {
if (Arrays.binarySearch(dto.getCraft(), "配弹力绳") > -1) {
peijianPrice = 0.05;
}
for (Product product : priceList) {
if (peijianPrice > 0) {
product.setPrice(Math.ceil(product.getPrice() + peijianPrice * dto.getCount() * dto.getNumber() + 5));
}
}
if (Arrays.binarySearch(dto.getCraft(), "配流苏") > -1) {
for (Product product : priceList) {
product.setPrice(Math.ceil(product.getPrice() + Math.max(5, 3 * dto.getCo_number())));
}
}
}
if (!role.contains("1045") && !role.contains("1054") && !role.contains("1029")) {
if (number > 1) {
double designFee = 0;