帆布新增旗杆
This commit is contained in:
@@ -4417,8 +4417,12 @@ public class ProductService {
|
||||
return priceList;
|
||||
case "帆布":
|
||||
priceList = new PriceUtils().getFbPrice(dto, number, width, length, count, priceList);
|
||||
List<String> carftList = dto.getCraft() == null ? new ArrayList<>() : Arrays.asList(dto.getCraft());
|
||||
for (Product product : priceList) {
|
||||
if (product.getCount() != null && number != null) {
|
||||
if (carftList.contains("伸缩杆70-120CM")) {
|
||||
product.setPrice(product.getPrice() + 2 * Math.max(dto.getPcount(), 1));
|
||||
}
|
||||
product.setWeight(df.format(0.28 * width * length * product.getCount() / 10000 * number));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user