修改店铺信息发送跟新mq

This commit is contained in:
张松
2025-12-02 15:17:32 +08:00
parent d05f1f1caf
commit 2c2b3765ad
3 changed files with 11 additions and 6 deletions

View File

@@ -316,10 +316,10 @@ public class ShopInfoServiceImpl extends ServiceImpl<ShopInfoMapper, ShopInfo> i
if (flag) {
sysUserService.updateById(sysUser);
}
rabbitPublisher.sendOrderDetailStatusMsg(shopInfo.getId().toString(), "shopInfoUpdate");
return true;
}
rabbitPublisher.sendOrderDetailStatusMsg(shopInfo.getId().toString());
return false;
}

View File

@@ -325,7 +325,7 @@ public class OrderInfoCustomServiceImpl implements OrderInfoCustomService {
redisService.set(RedisCst.classKeyExpired.EXPIRED_ORDER + orderInfo.getId(), "", 60 * 15);
}
rabbitPublisher.sendOrderStockMsg(orderInfo.getId().toString());
rabbitPublisher.sendOrderDetailStatusMsg(orderInfo.getShopId().toString());
rabbitPublisher.sendOrderDetailStatusMsg(orderInfo.getShopId().toString(), "bc");
return orderInfo;
}
@@ -1340,7 +1340,7 @@ public class OrderInfoCustomServiceImpl implements OrderInfoCustomService {
rabbitPublisher.sendOrderPrintMsg(printParam, isPrint);
// log.info("非事务环境下,直接发送订单{}打印消息", orderId);
}
rabbitPublisher.sendOrderDetailStatusMsg(orderInfo.getShopId().toString());
rabbitPublisher.sendOrderDetailStatusMsg(orderInfo.getShopId().toString(), "bc");
redisService.del(RedisCst.classKeyExpired.EXPIRED_ORDER + orderInfo.getId());
}
@@ -1790,7 +1790,7 @@ public class OrderInfoCustomServiceImpl implements OrderInfoCustomService {
}
}
rabbitPublisher.sendOrderDetailStatusMsg(shopId.toString());
rabbitPublisher.sendOrderDetailStatusMsg(shopId.toString(), "bc");
return true;
}
}