瀏覽代碼

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

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 + "'");