소스 검색

收藏夹定制信息修改

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, "color");
             row = customScheme.setScheme(row, "cheek");
-            if (row.getLong("width") == 0) {
+            if (row.getBigDecimal("width").compareTo(BigDecimal.ZERO)==0) {
                 row.replace("width", null);
             }
-            if (row.getLong("length") == 0) {
+            if (row.getBigDecimal("length").compareTo(BigDecimal.ZERO)==0) {
                 row.replace("length", null);
             }
             row.put("isselect", true);