新增金属标颜色

This commit is contained in:
2026-05-07 15:44:46 +08:00
parent 03d7d8808e
commit ab1e443e4b
4 changed files with 21 additions and 19 deletions
@@ -2624,7 +2624,7 @@ public class ProductService {
product.setPrice(Math.ceil(product.getPrice() + (number - 1) * 0.5));
product.setWeight(df.format((width + 0.6) * (length + 0.6) * product.getCount() / 10000));
product.setWeight(df.format((width + 0.6) * (length + 0.6) * product.getCount() * number / 10000 * 0.5));
if (product.getPrice() < apprise) {
product.setPrice(apprise);
}
@@ -2695,7 +2695,7 @@ public class ProductService {
// double base = number < 6 && number > 1 ? 5 : 0;
double apprise = 0;
for (Product product : priceList) {
product.setWeight(df.format((width + 0.6) * (length + 0.6) * product.getCount() / 10000));
product.setWeight(df.format((width + 0.6) * (length + 0.6) * product.getCount() * number / 10000 * 0.5));
if (apprise > product.getPrice()) {
product.setPrice(apprise);
}