1.代客下单 打票未清空缓存修复
This commit is contained in:
parent
f3ad47f0f3
commit
1d644bc232
|
|
@ -279,10 +279,9 @@ public class PrintMechineConsumer {
|
|||
String printKey = RedisCst.ORDER_PRINT_PRO + orderId;
|
||||
AtomicReference<Set<Object>> printProductSet = new AtomicReference<>(redisTemplate.opsForSet().members(printKey));
|
||||
List<TbOrderDetail> tbOrderDetails = tbOrderDetailMapper.selectAllByOrderId(orderId);
|
||||
// 重置打印数据
|
||||
redisTemplate.delete(printKey);
|
||||
if (!tbOrderDetails.isEmpty()) {
|
||||
|
||||
// 重置打印数据
|
||||
redisTemplate.delete(printKey);
|
||||
tbOrderDetails.forEach(it -> {
|
||||
log.info("开始打印一菜一品票据,:{}", it.getProductName());
|
||||
String categoryId = tbProductMapper.selectByPrimaryKey(it.getProductId()).getCategoryId();
|
||||
|
|
|
|||
Loading…
Reference in New Issue