瀏覽代碼

修改PET工艺价格

zhuyiyi 2 月之前
父節點
當前提交
73e2d3777b
共有 2 個文件被更改,包括 4 次插入4 次删除
  1. 3 3
      src/main/java/lingtao/net/service/ProductService.java
  2. 1 1
      src/main/webapp/views/product/pet.jsp

+ 3 - 3
src/main/java/lingtao/net/service/ProductService.java

@@ -4981,9 +4981,9 @@ public class ProductService {
         List<String> carftList = dto.getCraft() == null ? new ArrayList<>() : Arrays.asList(dto.getCraft());
         for (Product product : priceList) {
             product.setWeight(df.format(width / 100 * length / 100 * product.getCount() * 0.48 * 1.4));
-            if (carftList.contains("装opp袋")) {
-                product.setPrice(Math.ceil(product.getPrice() + Math.max(product.getCount() * dto.getNumber() * 0.33, 100)));
-            }
+//            if (carftList.contains("装opp袋")) {
+//                product.setPrice(Math.ceil(product.getPrice() + Math.max(product.getCount() * dto.getNumber() * 0.33, 100)));
+//            }
         }
         return priceList;
     }

+ 1 - 1
src/main/webapp/views/product/pet.jsp

@@ -82,7 +82,7 @@
                 </div>
                 <div class="layui-input-block" style="display:inline-block;">
                     其他工艺:
-                    <input type="checkbox" name="craft" lay-filter="ui_craft" value="装opp袋" title="装opp袋">
+                    <input type="checkbox" name="craft" lay-filter="ui_craft" value="装opp袋" title="装opp袋" checked>
                 </div>
             </div>
             <hr>