瀏覽代碼

收藏夹定制信息修改

eganwu 1 年之前
父節點
當前提交
1e3c744637
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/custom/restcontroller/sale/shoppingcart/ShoppingCart.java

+ 2 - 2
src/custom/restcontroller/sale/shoppingcart/ShoppingCart.java

@@ -333,10 +333,10 @@ public class ShoppingCart extends Controller {
             row = customScheme.setScheme(row, "material");
             row = customScheme.setScheme(row, "material");
             row = customScheme.setScheme(row, "color");
             row = customScheme.setScheme(row, "color");
             row = customScheme.setScheme(row, "cheek");
             row = customScheme.setScheme(row, "cheek");
-            if (row.getLong("width") == 0) {
+            if (row.getBigDecimal("width").compareTo(BigDecimal.ZERO)==0) {
                 row.replace("width", null);
                 row.replace("width", null);
             }
             }
-            if (row.getLong("length") == 0) {
+            if (row.getBigDecimal("length").compareTo(BigDecimal.ZERO)==0) {
                 row.replace("length", null);
                 row.replace("length", null);
             }
             }
             row.put("isselect", true);
             row.put("isselect", true);