新增sd木垫

This commit is contained in:
2026-07-10 14:45:53 +08:00
parent a984fce392
commit 29b585c195
2 changed files with 17 additions and 1 deletions
@@ -4795,11 +4795,20 @@ public class ProductService {
double wei = 0;
// 价格按照大纸裁
priceList = ZsPrice.getSmPrice(count, length, width, priceList, number, dto.getCraft(), dto, role);
List<String> roleList = Arrays.asList("1045");
boolean isIn = false;
for (String s : roleList) {
if (role.indexOf(s) > -1) {
isIn = true;
}
}
for (Product product : priceList) {
if (craft_list.contains("菜品夹")) {
product.setPrice(Math.ceil(product.getPrice() + dto.getStickNum() * 2));
}
if (isIn) {
product.setPrice(Math.ceil(product.getPrice() * 1.2));
}
if (dto.getKindValue().equals("1") || dto.getKindValue().equals("2") || dto.getKindValue().equals("3")) {
wei = 0.38;
} else if (dto.getKindValue().equals("4") || dto.getKindValue().equals("5") || dto.getKindValue().equals("6")) {