Selaa lähdekoodia

修改金属徽章价格

zhuyiyi 3 viikkoa sitten
vanhempi
sitoutus
ba14bb9f0d

+ 5 - 1
src/main/java/lingtao/net/service/ProductService.java

@@ -4829,7 +4829,7 @@ public class ProductService {
         priceList = getAreaCenterPrice(counts, count, width * length, prices, areas, number);
 
         for (Product product : priceList) {
-            if("2".equals(dto.getKind())){
+            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));
@@ -5564,6 +5564,10 @@ public class ProductService {
             if (width <= 4 && length <= 4) {
                 base_price = 4;
             }
+            if (width > 6 || length > 6) {
+                base_price = 5.5;
+                mo_price = 300;
+            }
             if (base_price < 4.5) {
                 if (count > 100 && count <= 500) {
                     base_price = 3.5;

+ 7 - 0
src/main/webapp/views/product/stickers.jsp

@@ -1560,6 +1560,13 @@
                     });
                     return false;
                 }
+                if(kindValue == "15"){
+                    if ((size.split("*")[0] > 42 || size.split("*")[1] > 28.5) && (size.split("*")[0] > 28.5 || size.split("*")[1] > 42)) {
+                        layer.msg("草香纸不干胶-彩色印刷尺寸不能超过42*28.5 cm", {offset: ['300px', '300px']}, function () {
+                        });
+                        return false;
+                    }
+                }
                 if (kindValue == "16" && TJValue == "彩色印刷") {
                     if ((size.split("*")[0] > 42 || size.split("*")[1] > 28) && (size.split("*")[0] > 28 || size.split("*")[1] > 42)) {
                         layer.msg("草香纸不干胶-彩色印刷尺寸不能超过42*28 cm", {offset: ['300px', '300px']}, function () {