소스 검색

购物车添加时增加判断长宽

hu 2 년 전
부모
커밋
7d9827be10
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/custom/restcontroller/sale/shoppingcart/ShoppingCart.java

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

@@ -44,7 +44,7 @@ public class ShoppingCart extends Controller {
         Long sa_shoppingcartid = 0L;
         Rows rows = dbConnect.runSqlQuery("SELECT sa_shoppingcartid FROM sa_shoppingcart WHERE siteid = '" + siteid +
                 "' AND sa_brandid = " + sa_brandid +
-                " AND itemid = " + itemid +
+                " and length="+length+" and width="+width+" AND itemid = " + itemid +
                 " AND sys_enterpriseid = " + sys_enterpriseid +
                 " AND tradefield = '" + tradefield +
                 "' AND itemno = '" + itemno + "'");