新增淋膜纸尺寸

This commit is contained in:
2026-01-12 16:38:03 +08:00
parent ba14bb9f0d
commit 79c764ad78
2 changed files with 49 additions and 10 deletions
@@ -5718,16 +5718,17 @@ public class ProductService {
private List<Product> getLingmoPrice(Product dto, Double width, Double length) {
List<String> carftList = dto.getCraft() == null ? new ArrayList<>() : Arrays.asList(dto.getCraft());
String[] sizes = {"21*29", "36*24", "36*26", "42*28.5"};
double[][] prices = new double[][]{
{1150, 1950, 2350, 3300, 6150},
{1350, 2050, 2550, 4050, 7200},
{1450, 2100, 2650, 4250, 7500},
{1700, 2750, 3600, 6000, 11000},
};
int count_list[] = {10000, 20000, 30000, 50000, 100000};
int current_int = Arrays.binarySearch(sizes, dto.getSize());
double[] prices_list = prices[current_int];
double[] prices_list = {1150, 1950, 2350, 3300, 6150};
if ((width <= 21 && length <= 29) || (length <= 21 && width <= 29)) {
} else if ((width <= 36 && length <= 24) || (length <= 36 && width <= 24)) {
prices_list = new double[]{1350, 2050, 2550, 4050, 7200};
} else if ((width <= 36 && length <= 26) || (length <= 36 && width <= 26)) {
prices_list = new double[]{1450, 2100, 2650, 4250, 7500};
} else if ((width <= 42 && length <= 28.5) || (length <= 42 && width <= 28.5)) {
prices_list = new double[]{1700, 2750, 3600, 6000, 11000};
}
List<Product> list = new ArrayList<>();
for (int i = 0; i < count_list.length; i++) {
double price = prices_list[i];