新增印白工艺
This commit is contained in:
@@ -4816,6 +4816,7 @@ public class ProductService {
|
||||
priceList.add(pro);
|
||||
return priceList;
|
||||
case "防伪标":
|
||||
carft_list = dto.getCraft() != null ? Arrays.asList(dto.getCraft()) : new ArrayList<>();
|
||||
int[][] prices = {
|
||||
{176, 176, 176, 176, 176, 176, 176, 176, 180, 184, 192, 192, 202, 228, 228},
|
||||
{180, 180, 182, 184, 186, 188, 196, 206, 240, 260, 274, 286, 306, 344, 360},
|
||||
@@ -4833,6 +4834,9 @@ public class ProductService {
|
||||
for (Product product : priceList) {
|
||||
product.setPrice(Math.ceil(product.getPrice() * 1.3));
|
||||
}
|
||||
if (carft_list.contains("印白墨")) {
|
||||
priceList = PriceUtils.getYinBaiPrice(priceList, width, length);
|
||||
}
|
||||
return priceList;
|
||||
case "透卡":
|
||||
return getPETPrice(dto, width, length);
|
||||
@@ -5670,6 +5674,9 @@ public class ProductService {
|
||||
product.setPrice(Math.ceil(product.getPrice() * 2.3));
|
||||
}
|
||||
}
|
||||
if ("印白墨".equals(dto.getYinbai())) {
|
||||
stickersList = PriceUtils.getYinBaiPrice(stickersList, width, length);
|
||||
}
|
||||
/*
|
||||
* if ("印2色+凹凸".equals(dto.getAotu())) { // 6*5cm以下及10*3cm以下 int priceArr1[] = { 280, 300, 350, 460, 520, 660, 1100 }; // 6*5cm-8*8cm;10-3cm - 10*6cm以内 int priceArr2[] = { 280, 320, 450, 660, 780, 900, 1500 }; // 11*11cm内;12*8cm内;20*4cm以内 int priceArr3[] = { 340, 500, 850, 1100, 1550, 1700, 2500 }; stickersList = new YaJinStickersPrice().accountPriceBySize(width, length, count, priceArr1, priceArr2, priceArr3); } else if ("加凹凸".equals(dto.getAotu())) { // 6*5cm以下及10*3cm以下 int
|
||||
* priceArr1[] = { 170, 200, 230, 310, 360, 420, 710 }; // 6*5cm-8*8cm;10-3cm - 10*6cm以内 int priceArr2[] = { 200, 240, 350, 440, 560, 670, 1000 }; // 11*11cm内;12*8cm内;20*4cm以内 int priceArr3[] = { 240, 380, 620, 800, 940, 1050, 1960 }; stickersList = new YaJinStickersPrice().accountPriceBySize(width, length, count, priceArr1, priceArr2, priceArr3); } else if ("印2色".equals(dto.getAotu())) { // 6*5cm以下及10*3cm以下 int priceArr1[] = { 140, 170, 200, 280, 380, 420, 680 }; //
|
||||
@@ -5728,6 +5735,9 @@ public class ProductService {
|
||||
product.setPrice(Math.ceil(product.getPrice() + product.getPrice() * 1 / 10));
|
||||
}
|
||||
}
|
||||
if ("印白墨".equals(dto.getYinbai())) {
|
||||
stickersList = PriceUtils.getYinBaiPrice(stickersList, width, length);
|
||||
}
|
||||
break;
|
||||
case "格底珠光膜":
|
||||
if ("覆亮膜".equals(dto.getCraftMo())) {
|
||||
@@ -5952,6 +5962,9 @@ public class ProductService {
|
||||
}
|
||||
});
|
||||
}
|
||||
if ("印白墨".equals(dto.getYinbai())) {
|
||||
stickersList = PriceUtils.getYinBaiPrice(stickersList, width, length);
|
||||
}
|
||||
break;
|
||||
}
|
||||
return null;
|
||||
@@ -6004,6 +6017,9 @@ public class ProductService {
|
||||
product.setPrice(Math.ceil(product.getPrice() + product.getPrice() * 1 / 10));
|
||||
}
|
||||
}
|
||||
if ("印白墨".equals(dto.getYinbai())) {
|
||||
stickersList = PriceUtils.getYinBaiPrice(stickersList, width, length);
|
||||
}
|
||||
break;
|
||||
case "格底珠光膜":
|
||||
l = 42.0;
|
||||
@@ -6108,7 +6124,7 @@ public class ProductService {
|
||||
// }
|
||||
// }
|
||||
|
||||
if ("印白墨".equals(dto.getYinbai())) {
|
||||
if ("印白墨".equals(dto.getYinbai()) && !"6".equals(kind) && !"拉丝银".equals(kind)) {
|
||||
stickersList = new PVCStickersPrice().acountYinbaiPrice(length, width, stickersList);
|
||||
}
|
||||
// 价格*款数 铜版纸放到外面执行
|
||||
|
||||
@@ -1619,7 +1619,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]) || "镭射银".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]) || "烫红".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;
|
||||
@@ -3702,6 +3702,33 @@ public class PriceUtils {
|
||||
return price;
|
||||
}
|
||||
|
||||
public static List<Product> getYinBaiPrice(List<Product> productList, double width, double length) {
|
||||
double miniprice = 50;
|
||||
double miniarea = 9;
|
||||
//cm
|
||||
double[] prices = {7.2, 4.6, 4, 2.8, 2.5, 2.24, 2.02, 1.92, 1.63, 1.56, 1.34, 1.26, 1.25, 1.04, 0.86, 0.64};
|
||||
double[] areas = {9, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60, 65, 70, 140, 210, 420};
|
||||
double area = width * length;
|
||||
double craft_price = 0;
|
||||
if (area < miniarea) {
|
||||
craft_price = miniprice;
|
||||
} else {
|
||||
for (int i = 1; i < areas.length; i++) {
|
||||
if (area < areas[i]) {
|
||||
craft_price = prices[i - 1] * area;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (craft_price == 0) {
|
||||
craft_price = prices[prices.length - 1] * area;
|
||||
}
|
||||
}
|
||||
for (Product pro : productList) {
|
||||
pro.setPrice(Math.ceil(pro.getPrice() + craft_price));
|
||||
}
|
||||
return productList;
|
||||
}
|
||||
|
||||
public FunReturnVo getBagTagPrice(String kind2Value, String kindValue) {
|
||||
FunReturnVo vo = new FunReturnVo();
|
||||
if ("1".equals(kind2Value)) {
|
||||
|
||||
Reference in New Issue
Block a user