打印简化

This commit is contained in:
SongZhang 2024-09-28 10:53:19 +08:00
parent b1f88d9932
commit c439ac091e
1 changed files with 3 additions and 2 deletions

View File

@ -69,9 +69,10 @@ public class PrintConsumer {
}
@RabbitListener(queues = {RabbitConstants.QUEUE_PRINT_PLACE})
public void printPlaceListener(JSONObject jsonObject) {
public void printPlaceListener(String msg) {
try {
log.info("打印消息mq 接收到打印结算单消息,消息内容: {}", jsonObject);
log.info("打印消息mq 接收到打印结算单消息,消息内容: {}", msg);
JSONObject jsonObject = JSONObject.parseObject(msg);
Integer orderId = jsonObject.getInteger("orderId");
Boolean isReturn = jsonObject.getBoolean("isReturn");