修改uv工艺价格
This commit is contained in:
@@ -2535,6 +2535,9 @@ public class ProductService {
|
||||
// 1006 1003 1005 1037 1058 1002 1033 1045 卓盛 航和 米笛儿 竹范 领淘文具 榆家 涛莱 拼多多uv单独报价
|
||||
List<String> crafts = new ArrayList<>(dto.getCraft() == null ? new ArrayList<>() : Arrays.asList(dto.getCraft()));
|
||||
crafts.remove("刮板");
|
||||
if (crafts.size() > 0 && "烫金".equals(crafts.get(0))) {
|
||||
crafts.remove(0);
|
||||
}
|
||||
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) {
|
||||
|
||||
@@ -1568,7 +1568,7 @@ public class PriceUtils {
|
||||
}
|
||||
|
||||
if (!StringUtils.isEmpty(zhuan)) {
|
||||
if ("烫金".equals(zhuan[0]) || "烫银".equals(zhuan[0]) || "烫蓝".equals(zhuan[0]) || "烫红".equals(zhuan[0]) || "烫黑".equals(zhuan[0]) || "镭射银".equals(zhuan[0]) || "镭射金".equals(zhuan[0]) || "玫瑰金".equals(zhuan[0])) {
|
||||
if ("烫金".equals(zhuan[0]) || "烫银".equals(zhuan[0]) || "烫蓝".equals(zhuan[0]) || "烫红".equals(zhuan[0]) || "烫黑".equals(zhuan[0]) || "玫瑰金".equals(zhuan[0])) {
|
||||
// 起步价+58元
|
||||
price = price + (40 * area);
|
||||
price = price > 80 ? price : 80;
|
||||
@@ -1579,6 +1579,9 @@ public class PriceUtils {
|
||||
} else if ("双面贴".equals(zhuan[0])) {
|
||||
price = price + (40 * area);
|
||||
price = price > 80 ? price : 80;
|
||||
} else if ("镭射银".equals(zhuan[0]) || "镭射金".equals(zhuan[0])) {
|
||||
price = price + (50 * area);
|
||||
price = price > 80 ? price : 80;
|
||||
}
|
||||
}
|
||||
Product pro = new Product();
|
||||
@@ -1593,7 +1596,7 @@ public class PriceUtils {
|
||||
|
||||
|
||||
int oldCount = count;
|
||||
if (!StringUtils.isEmpty(zhuan) && ("专金".equals(zhuan[0]) || "专银".equals(zhuan[0]) || "印刷+烫金".equals(zhuan[0]) || "印刷+烫银".equals(zhuan[0])) && count < 100) {
|
||||
if (!StringUtils.isEmpty(zhuan) && ("专金".equals(zhuan[0]) || "专银".equals(zhuan[0]) || "印刷+烫金".equals(zhuan[0]) || "印刷+烫银".equals(zhuan[0]) || "镭射银".equals(zhuan[0]) || "镭射金".equals(zhuan[0])) && count < 100) {
|
||||
// 烫金100个起
|
||||
count = 100;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user