Преглед изворни кода

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

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