修改亚克力接口

This commit is contained in:
2026-05-19 14:34:20 +08:00
parent 4a46014f91
commit 6795b6f4ff
2 changed files with 26 additions and 5 deletions
@@ -2746,7 +2746,7 @@ public class ProductService {
priceList.add(dto2);
} else if (dto.getProTypeLabel().equals("种子纸")) {
int av_count = count;
if ("4".equals(dto.getZ3type()) || "2".equals(dto.getZ3type())) {
if ("4".equals(dto.getZ3type())) {
count = Math.max(count, 300);
}
double price = Math.ceil((length * width * count * 200) / 10000);//价格计算尺寸*数量*200/10000
@@ -4418,6 +4418,18 @@ public class ProductService {
partsVo.setSizeUnit("CM");
partsVo.setWidth(width);
partsVo.setHeight(length);
List<ShengDaPriceRequstItemVo> crafts = new ArrayList<>();
if ("1.8MM瓷白亚克力(市场2mm)".equals(params.getPaper()) || "2.3MM瓷白亚克力(市场3mm)".equals(params.getPaper()) || "4.2MM瓷白亚克力(市场5mm)".equals(params.getPaper())) {
if (craft_list.contains("单面") || craft_list.contains("双面")) {
//固定分类
ShengDaPriceRequstItemVo craft_peng = new ShengDaPriceRequstItemVo();
craft_peng.setName("正喷");
craft_peng.setParameters(new HashMap<>());
crafts.add(craft_peng);
}
}
//印面 0不印 1单面 2双面
partsVo.setPrintSide(0);
craft_list.remove("不印面");
@@ -4429,15 +4441,18 @@ public class ProductService {
partsVo.setPrintSide(2);
craft_list.remove("双面");
}
List<ShengDaPriceRequstItemVo> crafts = new ArrayList<>();
//固定分类
ShengDaPriceRequstItemVo craft_diaoke = new ShengDaPriceRequstItemVo();
craft_diaoke.setName("按设计文件雕刻");
Map<String, String> craft_diaokeItem = new HashMap<>();
craft_diaokeItem.put("类型", "文件造型");
craft_diaoke.setParameters(craft_diaokeItem);
crafts.add(craft_diaoke);
for (String s : craft_list) {
ShengDaPriceRequstItemVo craftItem = new ShengDaPriceRequstItemVo();
HashMap<String, String> parameters = new HashMap<>();