This commit is contained in:
2025-05-26 09:43:54 +08:00
parent 70fde0ecac
commit 40e307dd77
3 changed files with 113 additions and 32 deletions
@@ -3179,7 +3179,7 @@ public class ProductService {
if (dto.getP() == 1) {
desFee = 0.6 * (number - 1);
} else {
desFee = 11 * (number - 1);
desFee = 25 * (number - 1);
}
for (Product product : priceList) {
@@ -3193,7 +3193,7 @@ public class ProductService {
} else if (dto.getP() == 5) {
desFee = 6;
} else {
desFee = 11;
desFee = 25;
}
for (Product product : priceList) {
@@ -3218,6 +3218,24 @@ public class ProductService {
}
dto.setKindValue("5");
} else if (dto.getKindValue().equals("6")) {
int[] counts = new int[]{10, 100, 500, 1000, 2000, 3000, 4000, 5000, 6000, 7000, 8000, 9000, 10000};
double[] prices = new double[]{100, 734, 3500, 6666, 11000, 15000, 18000, 22000, 26000, 30000, 34000, 38000, 41000};
Product pro = null;
for (int i = 0; i < counts.length; i++) {
if (dto.getCount() > counts[i]) {
continue;
}
if (priceList.size() > 4) {
break;
}
pro = new Product();
pro.setCount(counts[i]);
pro.setPrice(prices[i]);
pro.setPriceMultiple(1d);
priceList.add(pro);
}
} else if (!dto.getKindValue().equals("4")) {
if (count <= 10000) {
priceList = productMapper.getThanPrice(dto);
@@ -3248,7 +3266,7 @@ public class ProductService {
}
// 异形工艺
getCraft(dto, priceList, null, null, 0);
//getCraft(dto, priceList, null, null, 0);
if (dto.getKindValue().equals("5")) {
for (Product product : priceList) {