Ver código fonte

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

hu 2 anos atrás
pai
commit
7d9827be10

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