打印简化
This commit is contained in:
@@ -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");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user