修改条幅价格
This commit is contained in:
@@ -3110,8 +3110,12 @@ public class ProductService {
|
||||
product.setWeight(df.format(0.065 * length * width * product.getCount() / 10000 * number));
|
||||
double other_price = 0;
|
||||
if (width * length <= 50 * 50) {
|
||||
other_price = (count) * 5 * number + number * 5;
|
||||
product.setPrice(Math.ceil(45 + other_price));
|
||||
if (number > 1) {
|
||||
other_price = (count) * 5 * (number - 1) + (number - 1) * 5;
|
||||
} else {
|
||||
other_price = (count - 1) * 5;
|
||||
}
|
||||
product.setPrice(Math.ceil(40 + other_price));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user