test方法

This commit is contained in:
Guoqs
2024-11-29 15:21:14 +08:00
parent 6af29eed56
commit 7a70db75ac
5 changed files with 18 additions and 7 deletions

View File

@@ -3913,7 +3913,17 @@ public class SpringBootTestController {
.orderServiceDiscountAmount(orderDetail.getDiscountServiceAmount())
.orderRefundAmount(orderBasicInfo.getRefundAmount())
.build();
rabbitTemplate.convertAndSend(RabbitConstants.YKC_EXCHANGE_NAME, RabbitConstants.QUEUE_CHARGE_ORDER_DATA, afterSettleOrderDTO);
System.out.println(JSON.toJSONString(afterSettleOrderDTO));
// for (int i = 0; i < 30; i++) {
// // try {
// // Thread.sleep(5000);
// // } catch (InterruptedException e) {
// // throw new RuntimeException(e);
// // }
// afterSettleOrderDTO.setOrderCode(orderCode + "_" + i);
// rabbitTemplate.convertAndSend(RabbitConstants.YKC_EXCHANGE_NAME, RabbitConstants.QUEUE_CHARGE_ORDER_DATA, afterSettleOrderDTO);
// }
}
}