Parcourir la source

新增电线胶材质

zhuyiyi il y a 1 mois
Parent
commit
f4319613e4

+ 4 - 0
src/main/java/lingtao/net/service/ProductService.java

@@ -4818,7 +4818,11 @@ public class ProductService {
         };
         };
         int[] counts = {500, 1000, 2000, 3000, 5000, 10000, 20000};
         int[] counts = {500, 1000, 2000, 3000, 5000, 10000, 20000};
         priceList = getAreaCenterPrice(counts, count, width * length, prices, areas, number);
         priceList = getAreaCenterPrice(counts, count, width * length, prices, areas, number);
+
         for (Product product : priceList) {
         for (Product product : priceList) {
+            if("2".equals(dto.getKind())){
+                product.setPrice(Math.ceil(product.getPrice() * 1.1));
+            }
             product.setWeight(df.format(number * length / 100 * width / 100 * product.getCount() * 0.3));
             product.setWeight(df.format(number * length / 100 * width / 100 * product.getCount() * 0.3));
         }
         }
         return priceList;
         return priceList;

+ 1 - 0
src/main/webapp/views/product/wireTape.jsp

@@ -26,6 +26,7 @@
             <div class="layui-form-item">
             <div class="layui-form-item">
                 <select name="kind" class="select" lay-search>
                 <select name="kind" class="select" lay-search>
                     <option value="1">PP合成</option>
                     <option value="1">PP合成</option>
+                    <option value="2">PET哑银</option>
                 </select>
                 </select>
             </div>
             </div>
             <p>
             <p>