修改班旗工艺

This commit is contained in:
2025-11-18 14:04:05 +08:00
parent c3709a00dc
commit f74e72958f
2 changed files with 303 additions and 262 deletions
@@ -1342,7 +1342,15 @@ public class ProductService {
// 名片-特种纸名片
case "特种纸名片":
double addPrice = 5;
List<String> craft_list = dto.getCraft() != null ? Arrays.asList(dto.getCraft()) : new ArrayList<>();
List<String> craft_list = dto.getCraft() != null ? new ArrayList<>(Arrays.asList(dto.getCraft())) : new ArrayList<>();
if (craft_list.contains("压痕")) {
craft_list.remove("压痕");
craft_list.add("异形模切");
}
if (!craft_list.isEmpty()) {
dto.setCraft(craft_list.toArray(new String[craft_list.size()]));
}
if (!"素芸".equals(kind) && (craft_list.contains("单面烫金") || craft_list.contains("双面烫金"))) {
int[] counts = new int[]{200, 500, 1000, 2000, 3000, 4000, 5000, 6000, 7000, 8000, 9000, 10000};
Map<String, int[]> prices = null;
@@ -4472,6 +4480,9 @@ public class ProductService {
if (craLists.contains("手绘")) {
product.setPrice(150.00 * number);
}
if (craLists.contains("伸缩旗杆")) {
product.setPrice(Math.ceil(product.getPrice() + dto.getPo_number() * 15));
}
product.setWeight(df.format(0.075 * length * width * product.getCount() / 10000 * number + product.getCount() * wei * number
));
}