parent
de2300311d
commit
95f529e4d7
|
|
@ -643,11 +643,6 @@ public class CartService {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 发送判断耗材是否耗尽消息
|
|
||||||
JSONObject objectMsg = new JSONObject();
|
|
||||||
objectMsg.put("skuId", Integer.valueOf(cashierCart.getSkuId()));
|
|
||||||
objectMsg.put("shopId", Integer.valueOf(cashierCart.getShopId()));
|
|
||||||
producer.con_msg(objectMsg.toString());
|
|
||||||
|
|
||||||
totalAmount = totalAmount.add(cashierCart.getTotalAmount());
|
totalAmount = totalAmount.add(cashierCart.getTotalAmount());
|
||||||
packAMount = packAMount.add(cashierCart.getPackFee());
|
packAMount = packAMount.add(cashierCart.getPackFee());
|
||||||
|
|
@ -849,6 +844,17 @@ public class CartService {
|
||||||
log.info("开始发送mq消息,消耗耗材,消息内容:{}", jsonObject2);
|
log.info("开始发送mq消息,消耗耗材,消息内容:{}", jsonObject2);
|
||||||
producer.cons(jsonObject2.toString());
|
producer.cons(jsonObject2.toString());
|
||||||
|
|
||||||
|
for (int i = 0; i < array.size(); i++) {
|
||||||
|
JSONObject object = array.getJSONObject(i);
|
||||||
|
TbCashierCart cashierCart = JSONUtil.parseJSONStr2T(object.toJSONString(), TbCashierCart.class);
|
||||||
|
// 发送判断耗材是否耗尽消息
|
||||||
|
JSONObject objectMsg = new JSONObject();
|
||||||
|
objectMsg.put("skuId", Integer.valueOf(cashierCart.getSkuId()));
|
||||||
|
objectMsg.put("shopId", Integer.valueOf(cashierCart.getShopId()));
|
||||||
|
producer.con_msg(objectMsg.toString());
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
redisUtil.saveMessage(RedisCst.TABLE_CART.concat(jsonObject.getString("tableId")).concat("-").concat(shopId), array.toJSONString());
|
redisUtil.saveMessage(RedisCst.TABLE_CART.concat(jsonObject.getString("tableId")).concat("-").concat(shopId), array.toJSONString());
|
||||||
orderInfo.setDetailList(orderDetails);
|
orderInfo.setDetailList(orderDetails);
|
||||||
JSONObject jsonObject1 = new JSONObject();
|
JSONObject jsonObject1 = new JSONObject();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue