Explorar o código

购物车转订单bug修复

eganwu %!s(int64=3) %!d(string=hai) anos
pai
achega
93f80a2c2a
Modificáronse 1 ficheiros con 4 adicións e 4 borrados
  1. 4 4
      src/custom/restcontroller/webmanage/sale/order/Order.java

+ 4 - 4
src/custom/restcontroller/webmanage/sale/order/Order.java

@@ -207,17 +207,17 @@ public class Order extends Controller {
         JSONArray items = content.getJSONArray("items");
         ArrayList<Long> itemidids = new ArrayList();
         //判断是否是同一个品牌的商品
-//        for (Object obj : items) {
-//            JSONObject item = (JSONObject) obj;
+        for (Object obj : items) {
+            JSONObject item = (JSONObject) obj;
 //            Long temp_sa_brandid = item.getLongValue("sa_brandid");
-//            itemidids.add(item.getLongValue("itemid"));
+            itemidids.add(item.getLongValue("itemid"));
 //            if (sa_brandid == 0) {
 //                sa_brandid = temp_sa_brandid;
 //            }
 //            if (!sa_brandid.equals(temp_sa_brandid)) {
 //                return getErrReturnObject().setErrMsg("请添加同一品牌的商品").toString();
 //            }
-//        }
+        }
 
         //判断领域
 //        String sql = "SELECT count(0) count from plm_item_tradefield WHERE tradefield='" + tradefield + "' and itemid in " + itemidids;