Browse Source

收藏夹定制信息修改

eganwu 1 year ago
parent
commit
c7d0d2b86f

+ 12 - 2
src/custom/restcontroller/sale/promotion/promotion.java

@@ -168,7 +168,12 @@ public class promotion extends Controller {
             row = customScheme.setScheme(row, "material");
             row = customScheme.setScheme(row, "color");
             row = customScheme.setScheme(row, "cheek");
-
+            if (row.getLong("width") == 0) {
+                row.replace("width", null);
+            }
+            if (row.getLong("length") == 0) {
+                row.replace("length", null);
+            }
             row.putIfAbsent("saledqty", 0);
             row.putIfAbsent("islimit", 0);
             row.putIfAbsent("groupqty", 1);
@@ -317,7 +322,12 @@ public class promotion extends Controller {
             row = customScheme.setScheme(row, "material");
             row = customScheme.setScheme(row, "color");
             row = customScheme.setScheme(row, "cheek");
-
+            if (row.getLong("width") == 0) {
+                row.replace("width", null);
+            }
+            if (row.getLong("length") == 0) {
+                row.replace("length", null);
+            }
         }
 
         return getSucReturnObject().setData(rows).toString();

+ 6 - 1
src/custom/restcontroller/sale/shoppingcart/ShoppingCart.java

@@ -333,7 +333,12 @@ public class ShoppingCart extends Controller {
             row = customScheme.setScheme(row, "material");
             row = customScheme.setScheme(row, "color");
             row = customScheme.setScheme(row, "cheek");
-
+            if (row.getLong("width") == 0) {
+                row.replace("width", null);
+            }
+            if (row.getLong("length") == 0) {
+                row.replace("length", null);
+            }
             row.put("isselect", true);
         }
         return getSucReturnObject().setData(rows).toString();

+ 6 - 1
src/custom/restcontroller/webmanage/sale/order/OrderItems.java

@@ -1128,7 +1128,12 @@ public class OrderItems extends Controller {
             row = customScheme.setScheme(row, "material");
             row = customScheme.setScheme(row, "color");
             row = customScheme.setScheme(row, "cheek");
-
+            if (row.getLong("width") == 0) {
+                row.replace("width", null);
+            }
+            if (row.getLong("length") == 0) {
+                row.replace("length", null);
+            }
 
         }
         return getSucReturnObject().setData(rows).toString();

+ 6 - 1
src/custom/restcontroller/webmanage/sale/order/PromotionOrder.java

@@ -115,7 +115,12 @@ public class PromotionOrder extends Controller {
             row = customScheme.setScheme(row, "material");
             row = customScheme.setScheme(row, "color");
             row = customScheme.setScheme(row, "cheek");
-
+            if (row.getLong("width") == 0) {
+                row.replace("width", null);
+            }
+            if (row.getLong("length") == 0) {
+                row.replace("length", null);
+            }
         }