新增宠物婚礼
This commit is contained in:
@@ -2765,10 +2765,40 @@ public class ProductService {
|
||||
} else if (dto.getProTypeLabel().equals("种子纸")) {
|
||||
int av_count = count;
|
||||
|
||||
double price = Math.ceil((length * width * count * 200) / 10000);//价格计算尺寸*数量*200/10000
|
||||
if ("4".equals(dto.getZ3type())) {
|
||||
price = Math.ceil((length * width * count * 140) / 10000);//价格计算尺寸*数量*200/10000
|
||||
double unitPrice = 0;
|
||||
if (count <= 50) {
|
||||
unitPrice = 140;
|
||||
} else if (count > 50 && count <= 100) {
|
||||
unitPrice = 130;
|
||||
} else if (count > 100 && count <= 200) {
|
||||
unitPrice = 120;
|
||||
} else if (count > 200 && count <= 500) {
|
||||
unitPrice = 110;
|
||||
} else if (count > 500 && count <= 1000) {
|
||||
unitPrice = 100;
|
||||
} else if (count > 1000 && count <= 2000) {
|
||||
unitPrice = 95;
|
||||
} else {
|
||||
unitPrice = 90;
|
||||
}
|
||||
if ("4".equals(dto.getZ3type())) {
|
||||
if (count <= 50) {
|
||||
unitPrice = 160;
|
||||
} else if (count > 50 && count <= 100) {
|
||||
unitPrice = 155;
|
||||
} else if (count > 100 && count <= 200) {
|
||||
unitPrice = 150;
|
||||
} else if (count > 200 && count <= 500) {
|
||||
unitPrice = 145;
|
||||
} else if (count > 500 && count <= 1000) {
|
||||
unitPrice = 140;
|
||||
} else if (count > 1000 && count <= 2000) {
|
||||
unitPrice = 135;
|
||||
} else {
|
||||
unitPrice = 130;
|
||||
}
|
||||
}
|
||||
double price = Math.ceil((length * width * count * unitPrice) / 10000);//价格计算尺寸*数量*200/10000
|
||||
|
||||
if (!StringUtils.isEmpty(crafts) && Arrays.asList(crafts).contains("编码")) {//起步价10
|
||||
price += Math.max(count * 0.5, 10);
|
||||
@@ -2784,7 +2814,7 @@ public class ProductService {
|
||||
}
|
||||
|
||||
price = price * number;//款数翻倍
|
||||
price = Math.max(price, 60);
|
||||
price = Math.max(price, 50);
|
||||
|
||||
if (!StringUtils.isEmpty(crafts) && Arrays.asList(crafts).contains("装opp袋")) {
|
||||
price += Math.ceil(Math.max(count * 0.15 * number, 5));
|
||||
@@ -3454,7 +3484,7 @@ public class ProductService {
|
||||
area = Double.valueOf(df.format(length * width * count));
|
||||
}
|
||||
// 裱板
|
||||
if ("0".equals(kind)) {
|
||||
if ("0".equals(kind) || "12".equals(kind)) {
|
||||
priceList = new PosterPrice().acountPrice00(kind2, area, count, number);
|
||||
for (Product product : priceList) {
|
||||
if (crafts_list.contains("铁架支架")) {
|
||||
@@ -3463,7 +3493,11 @@ public class ProductService {
|
||||
if (crafts_list.contains("伸缩支架")) {
|
||||
product.setPrice(Math.ceil(product.getPrice() + 10 * dto.getYaheng()));
|
||||
}
|
||||
if ("12".equals(kind)) {
|
||||
product.setPrice(Math.ceil(product.getPrice() * 1.2));
|
||||
}
|
||||
}
|
||||
|
||||
} else if ("1".equals(kind)) {// 室内写真
|
||||
priceList = new PosterPrice().acountPrice01(kind2, area, count, number, width * 100, length * 100);
|
||||
} else if ("2".equals(kind)) {// 户外写真
|
||||
|
||||
Reference in New Issue
Block a user