修改卡片腰封工艺,新增栏目
This commit is contained in:
@@ -176,4 +176,6 @@ public class Product {
|
||||
private String plantName;
|
||||
private String ui_menu_size;
|
||||
private String address;
|
||||
|
||||
|
||||
}
|
||||
@@ -806,24 +806,36 @@ public class ProductService {
|
||||
int min = getNum(length, width);
|
||||
String[] kind_list = {"3", "4", "5", "7"};
|
||||
priceList = getHekaPrice(min, dto, priceList, count);
|
||||
boolean isyaofeng = false;
|
||||
|
||||
if (Arrays.asList(kind_list).contains(dto.getKind()) && "2".equals(dto.getKindValue2())) {
|
||||
if (dto.getCraft() != null && Arrays.asList(dto.getCraft()).contains("模切")) {
|
||||
priceList = getOtherHekaPrice(dto, width, length);
|
||||
double moqiePrice = 0;
|
||||
if ("1".equals(dto.getKind()) && !craft_list.contains("模切") && (craft_list.contains("压痕") || craft_list.contains("压点线"))) {
|
||||
//压1痕最小尺寸10.8*5.4cm,压2痕最小尺寸13.5*5.4CM按照贺卡模切价格算
|
||||
boolean is_moqie = false;
|
||||
if ((craft_list.contains("压痕") && dto.getYaheng() == 1) || (craft_list.contains("压点线") && dto.getDadianxian() == 1)) {
|
||||
if ((length < 10.8 && width < 5.4) || (length < 5.4 && width < 10.8)) {
|
||||
is_moqie = true;
|
||||
}
|
||||
}
|
||||
if (craft_list.contains("压痕") && dto.getYaheng() == 2 || (craft_list.contains("压点线") && dto.getDadianxian() == 2)) {
|
||||
if ((length < 13.5 && width < 5.4) || (length < 5.4 && width < 13.5)) {
|
||||
is_moqie = true;
|
||||
}
|
||||
}
|
||||
if (is_moqie) {
|
||||
isyaofeng = true;
|
||||
for (int i = 0; i < dto.getCraft().length; i++) {
|
||||
if ("模切".equals(dto.getCraft()[i])) {
|
||||
dto.getCraft()[i] = "";
|
||||
if ("压痕".equals(dto.getCraft()[i])) {
|
||||
dto.getCraft()[i] = "模切";
|
||||
}
|
||||
if ("双面覆哑膜".equals(dto.getCraft()[i])) {
|
||||
dto.getCraft()[i] = "";
|
||||
if ("压点线".equals(dto.getCraft()[i])) {
|
||||
dto.getCraft()[i] = "模切";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
double moqiePrice = 0;
|
||||
|
||||
//腰封价格加上模板费
|
||||
if ("1".equals(dto.getKind())) {
|
||||
//300克铜版纸 腰封价格加上模板费--腰封的模切费
|
||||
if ("1".equals(dto.getKind()) && craft_list.contains("模切") && !isyaofeng) {
|
||||
double[][] CATEGORIES = {
|
||||
{105, 140}, // 第一档
|
||||
{140, 210}, // 第二档
|
||||
@@ -850,11 +862,17 @@ public class ProductService {
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (dto.getCraft() != null && Arrays.asList(dto.getCraft()).contains("模切")) {
|
||||
if (dto.getCraft() != null && craft_list.contains("模切")) {
|
||||
for (int i = 0; i < dto.getCraft().length; i++) {
|
||||
if ("模切".equals(dto.getCraft()[i])) {
|
||||
dto.getCraft()[i] = "";
|
||||
}
|
||||
if ("压痕".equals(dto.getCraft()[i])) {
|
||||
dto.getCraft()[i] = "";
|
||||
}
|
||||
if ("压点线".equals(dto.getCraft()[i])) {
|
||||
dto.getCraft()[i] = "";
|
||||
}
|
||||
}
|
||||
moqiePrice = 0.06;
|
||||
}
|
||||
@@ -862,6 +880,26 @@ public class ProductService {
|
||||
product.setPrice(product.getPrice() + mu_price);
|
||||
}
|
||||
}
|
||||
//300克铜版纸 贺卡 优惠券 抽奖券 存酒卡价格重新计算
|
||||
if ((Arrays.asList(kind_list).contains(dto.getKind()) && "2".equals(dto.getKindValue2())) || isyaofeng) {
|
||||
if (dto.getCraft() != null && Arrays.asList(dto.getCraft()).contains("模切")) {
|
||||
priceList = getOtherHekaPrice(dto, width, length);
|
||||
for (int i = 0; i < dto.getCraft().length; i++) {
|
||||
if ("模切".equals(dto.getCraft()[i])) {
|
||||
dto.getCraft()[i] = "";
|
||||
}
|
||||
if ("双面覆哑膜".equals(dto.getCraft()[i])) {
|
||||
dto.getCraft()[i] = "";
|
||||
}
|
||||
if ("压痕".equals(dto.getCraft()[i])) {
|
||||
dto.getCraft()[i] = "";
|
||||
}
|
||||
if ("压点线".equals(dto.getCraft()[i])) {
|
||||
dto.getCraft()[i] = "";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
//四个位拼多多价格调整
|
||||
if (role.indexOf("1045") > -1 && min == 4) {
|
||||
for (Product product : priceList) {
|
||||
@@ -2495,11 +2533,14 @@ public class ProductService {
|
||||
//if(role.indexOf("1000") > -1 || role.indexOf("1006") > -1) {//菇凉&卓胜uv单独报价 priceList = new PriceUtils().UVStickerLessPrice(length, width, count,number, dto.getCraft()); }else {
|
||||
|
||||
// 1006 1003 1005 1037 1058 1002 1033 1045 卓盛 航和 米笛儿 竹范 领淘文具 榆家 涛莱 拼多多uv单独报价
|
||||
priceList = new PriceUtils().UVStickerSmallPriceV2(length, width, count, number, dto.getCraftMo(), dto.getCraft(), role.indexOf("1045") > -1);
|
||||
List<String> crafts = new ArrayList<>(dto.getCraft() == null ? new ArrayList<>() : Arrays.asList(dto.getCraft()));
|
||||
crafts.remove("刮板");
|
||||
String[] newCrafts = crafts.size() == 0 ? null : crafts.stream().toArray(String[]::new);
|
||||
priceList = new PriceUtils().UVStickerSmallPriceV2(length, width, count, number, dto.getCraftMo(), newCrafts, role.indexOf("1045") > -1);
|
||||
if (priceList.get(0).getCount() != count) {
|
||||
priceList.get(0).setCount(count);
|
||||
}
|
||||
if (!StringUtils.isEmpty(dto.getCraft())) {
|
||||
if (!StringUtils.isEmpty(newCrafts)) {
|
||||
for (Product product : priceList) {
|
||||
product.setPrice(product.getPrice() * number);
|
||||
}
|
||||
@@ -2733,13 +2774,18 @@ public class ProductService {
|
||||
zhang9 = 5;
|
||||
}
|
||||
}
|
||||
cutFee = 50;
|
||||
if (!StringUtils.isEmpty(dto.getCraft()))
|
||||
cutFee = 100;
|
||||
} else if ((length - 4 <= 570 && width - 4 <= 420) || (length - 4 <= 420 && width - 4 <= 570)) {
|
||||
if ("特种纸名片".equals(dto.getKind())) {
|
||||
return null;
|
||||
}
|
||||
fixPrice = 60.0;
|
||||
zhang = 5;
|
||||
cutFee = 150;
|
||||
cutFee = 50;
|
||||
if (!StringUtils.isEmpty(dto.getCraft()))
|
||||
cutFee = 150;
|
||||
l = 570;
|
||||
w = 420;
|
||||
fixPrice9 = 90;
|
||||
@@ -2755,6 +2801,7 @@ public class ProductService {
|
||||
} else {
|
||||
zhang = 6;
|
||||
}
|
||||
cutFee = 50;
|
||||
if (!StringUtils.isEmpty(dto.getCraft()))
|
||||
cutFee = 150;
|
||||
l = 730;
|
||||
|
||||
Reference in New Issue
Block a user