新增激凸工艺价格
This commit is contained in:
@@ -385,11 +385,14 @@ public class ProductService {
|
||||
dto.setKindValue("2");
|
||||
kind = "2";
|
||||
} else if ("15".equals(kind) || "16".equals(kind)) {
|
||||
List<String> craft_list = dto.getCraft() != null ? Arrays.asList(dto.getCraft()) : new ArrayList<>();
|
||||
priceList = new SwzStickersPrice().getPrice(count, length, width, number, dto.getCraftTang());
|
||||
if (number > 1) {
|
||||
for (Product product : priceList) {
|
||||
product.setPrice(Math.ceil(product.getPrice() * number));
|
||||
for (Product product : priceList) {
|
||||
double rate = 1;
|
||||
if (craft_list.contains("有色激凸")) {
|
||||
rate = 1.8;
|
||||
}
|
||||
product.setPrice(Math.ceil(product.getPrice() * number * rate));
|
||||
}
|
||||
return priceList;
|
||||
}
|
||||
@@ -4904,8 +4907,11 @@ public class ProductService {
|
||||
int[] count_list = new int[]{200, 500, 1000, 2000, 3000, 5000, 10000};
|
||||
double[] areas = new double[]{9, 12.25, 16, 20.25, 25, 30.25, 36, 42.25, 49, 56.25, 64, 72.25, 81, 90.25, 100, 110.25, 121};
|
||||
double area = (length + 0.4) * (width + 0.4);//加上4毫出血
|
||||
|
||||
return getAreaNextPrice(count_list, dto.getCount(), area, prices, areas, dto.getNumber());
|
||||
List<Product> priceList = getAreaNextPrice(count_list, dto.getCount(), area, prices, areas, dto.getNumber());
|
||||
priceList.forEach(product -> {
|
||||
product.setPrice(Math.ceil(product.getPrice() * 0.8));
|
||||
});
|
||||
return priceList;
|
||||
}
|
||||
|
||||
private List<Product> getDalanPrice(Product dto, Double width, Double length) {
|
||||
|
||||
Reference in New Issue
Block a user