修改杯垫价格
This commit is contained in:
@@ -5551,7 +5551,7 @@ public class ProductService {
|
|||||||
craft.add(item);
|
craft.add(item);
|
||||||
}
|
}
|
||||||
requstVo.setCrafts(craft);
|
requstVo.setCrafts(craft);
|
||||||
if ("18".equals(dto.getKindValue()) || "19".equals(dto.getKindValue()) || "20".equals(dto.getKindValue())) {
|
if ("18".equals(dto.getKindValue())) {
|
||||||
requstVo.setNum(base_count);
|
requstVo.setNum(base_count);
|
||||||
// rate_list = new double[]{0.70, 0.68, 0.65, 0.62, 0.58};
|
// rate_list = new double[]{0.70, 0.68, 0.65, 0.62, 0.58};
|
||||||
// counts = new int[]{50, 100, 200, 500, 1000};
|
// counts = new int[]{50, 100, 200, 500, 1000};
|
||||||
@@ -5578,6 +5578,8 @@ public class ProductService {
|
|||||||
}
|
}
|
||||||
if ("18".equals(dto.getKindValue()) && count < 10) {
|
if ("18".equals(dto.getKindValue()) && count < 10) {
|
||||||
price = 150;
|
price = 150;
|
||||||
|
} else if ("19".equals(dto.getKindValue()) || "20".equals(dto.getKindValue())) {
|
||||||
|
price = Math.ceil(result.getData().getPrice() / (1 - 0.6));
|
||||||
} else {
|
} else {
|
||||||
price = Math.ceil(result.getData().getPrice() / (1 - 0.7) / base_count * count * rate_item);
|
price = Math.ceil(result.getData().getPrice() / (1 - 0.7) / base_count * count * rate_item);
|
||||||
}
|
}
|
||||||
@@ -5626,7 +5628,10 @@ public class ProductService {
|
|||||||
// 根据款数重新算价格
|
// 根据款数重新算价格
|
||||||
for (Product product : priceList) {
|
for (Product product : priceList) {
|
||||||
if (!sdList.contains(dto.getKindValue())) {
|
if (!sdList.contains(dto.getKindValue())) {
|
||||||
product.setPrice(Math.floor(product.getPrice() * number));
|
product.setPrice(Math.ceil(product.getPrice() * number));
|
||||||
|
}
|
||||||
|
if (craft_list.contains("装OPP袋")) {
|
||||||
|
product.setPrice(Math.ceil(product.getPrice() + Math.max(0.2 * product.getCount() * number, 5)));
|
||||||
}
|
}
|
||||||
if ("3".equals(kind)) {
|
if ("3".equals(kind)) {
|
||||||
wei = 0.3;
|
wei = 0.3;
|
||||||
|
|||||||
Reference in New Issue
Block a user