fix: 只选择餐位费不允许创建订单

This commit is contained in:
张松
2024-11-07 11:08:21 +08:00
parent 68a8f6d3c5
commit 873aa9fc89

View File

@@ -1064,9 +1064,10 @@ public class OrderService {
jsonObject.put("type", "create"); jsonObject.put("type", "create");
producer.cons(jsonObject.toString()); producer.cons(jsonObject.toString());
List<TbCashierCart> finalList = list;
ThreadUtil.execAsync(() -> { ThreadUtil.execAsync(() -> {
ThreadUtil.sleep(5, TimeUnit.SECONDS); ThreadUtil.sleep(5, TimeUnit.SECONDS);
for (TbCashierCart cashierCart : list) { for (TbCashierCart cashierCart : finalList) {
JSONObject objectMsg = new JSONObject(); JSONObject objectMsg = new JSONObject();
objectMsg.put("skuId", Integer.valueOf(cashierCart.getSkuId())); objectMsg.put("skuId", Integer.valueOf(cashierCart.getSkuId()));
objectMsg.put("shopId", Integer.valueOf(cashierCart.getShopId())); objectMsg.put("shopId", Integer.valueOf(cashierCart.getShopId()));