修改钥匙扣价格
This commit is contained in:
@@ -618,6 +618,9 @@ public class PriceService {
|
|||||||
if ("加厚铜版纸不干胶".equals(product.getKind())) {
|
if ("加厚铜版纸不干胶".equals(product.getKind())) {
|
||||||
basePrice = 2;
|
basePrice = 2;
|
||||||
}
|
}
|
||||||
|
if ("铜板可移不干胶".equals(product.getKind())) {
|
||||||
|
basePrice = 2;
|
||||||
|
}
|
||||||
if ("牛皮纸".equals(product.getKind())) {
|
if ("牛皮纸".equals(product.getKind())) {
|
||||||
basePrice = 1.8;
|
basePrice = 1.8;
|
||||||
}
|
}
|
||||||
@@ -634,7 +637,7 @@ public class PriceService {
|
|||||||
basePrice = 3.5;
|
basePrice = 3.5;
|
||||||
}
|
}
|
||||||
|
|
||||||
List<String> base_2 = Arrays.asList("艾丽铜板不干胶", "特光不干胶", "铜板可移不干胶", "大红洒金", "白布纹纸");
|
List<String> base_2 = Arrays.asList("艾丽铜板不干胶", "特光不干胶", "大红洒金", "白布纹纸");
|
||||||
if (base_2.contains(product.getKind())) {
|
if (base_2.contains(product.getKind())) {
|
||||||
basePrice = 2.5;
|
basePrice = 2.5;
|
||||||
}
|
}
|
||||||
@@ -726,7 +729,7 @@ public class PriceService {
|
|||||||
|
|
||||||
double basePrice = PriceUtils.TableCountDoublePrice(requiredSheets, basePrices, counts);
|
double basePrice = PriceUtils.TableCountDoublePrice(requiredSheets, basePrices, counts);
|
||||||
|
|
||||||
BigDecimal price = new BigDecimal(basePrice).multiply(new BigDecimal(requiredSheets)).setScale(2, RoundingMode.HALF_UP);
|
BigDecimal price = new BigDecimal(basePrice / requiredSheets).multiply(new BigDecimal(requiredSheets)).setScale(2, RoundingMode.HALF_UP);
|
||||||
|
|
||||||
ProductVo pro = new ProductVo();
|
ProductVo pro = new ProductVo();
|
||||||
pro.setPrice(price.doubleValue());
|
pro.setPrice(price.doubleValue());
|
||||||
|
|||||||
@@ -4509,7 +4509,7 @@ public class ProductService {
|
|||||||
double min_price = 35;
|
double min_price = 35;
|
||||||
if (width * length / 10000 < 0.001) {
|
if (width * length / 10000 < 0.001) {
|
||||||
double basePrice = 1;
|
double basePrice = 1;
|
||||||
price = basePrice * count * dto.getNumber();
|
price = Math.max(min_price, basePrice * count * dto.getNumber() + 8 * dto.getNumber());
|
||||||
} else {
|
} else {
|
||||||
double area = width * length / 10000 * count * dto.getNumber();
|
double area = width * length / 10000 * count * dto.getNumber();
|
||||||
double[] areas = {0, 0.1, 0.15, 0.2, 0.3, 0.4, 0.5, 1, 2, 3, 5, 7, 9, 10, 20, 50};
|
double[] areas = {0, 0.1, 0.15, 0.2, 0.3, 0.4, 0.5, 1, 2, 3, 5, 7, 9, 10, 20, 50};
|
||||||
@@ -6407,7 +6407,7 @@ public class ProductService {
|
|||||||
if ("4.2".equals(cailiao)) {
|
if ("4.2".equals(cailiao)) {
|
||||||
basePrice = 1.5;
|
basePrice = 1.5;
|
||||||
}
|
}
|
||||||
price = basePrice * count * dto.getNumber();
|
price = Math.max(basePrice * count * dto.getNumber() + 8 * dto.getNumber(), min_price);
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
double[] areas = {0, 0.1, 0.15, 0.2, 0.3, 0.4, 0.5, 1, 2, 3, 5, 7, 9, 10, 20, 50};
|
double[] areas = {0, 0.1, 0.15, 0.2, 0.3, 0.4, 0.5, 1, 2, 3, 5, 7, 9, 10, 20, 50};
|
||||||
|
|||||||
@@ -245,8 +245,8 @@
|
|||||||
});
|
});
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if ((size.split("*")[0] > 12 || size.split("*")[1] > 12)) {
|
if ((size.split("*")[0] > 120 || size.split("*")[1] > 120)) {
|
||||||
layer.msg("最小尺寸不能小于12*12", {offset: ['300px', '300px']}, function () {
|
layer.msg("最小尺寸不能超过120*120", {offset: ['300px', '300px']}, function () {
|
||||||
});
|
});
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2010,6 +2010,7 @@
|
|||||||
})
|
})
|
||||||
if (padCraft) {
|
if (padCraft) {
|
||||||
span_result += "\n\n亲亲 当天15点之前定稿 可以当天发货哦!"
|
span_result += "\n\n亲亲 当天15点之前定稿 可以当天发货哦!"
|
||||||
|
span_result += "\n\n亲亲 当天下单立享9折优惠 加购其他产品可享85折优惠"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
addLog(span_result);
|
addLog(span_result);
|
||||||
|
|||||||
Reference in New Issue
Block a user