fix:修复消费明细和行程节点状态缺少映射的问题
This commit is contained in:
parent
2986559831
commit
841346be3c
|
@ -87,33 +87,33 @@ public class CommonController {
|
|||
@PostMapping("/back")
|
||||
public LYNoteResponse Back(@RequestBody Notification notification) {
|
||||
|
||||
int notifyType = notification.getNotifyType();
|
||||
switch (notifyType) {
|
||||
//进行订单数据回推
|
||||
case 1 -> getOrderFlight(notification);
|
||||
case 3 -> getOrderHotel(notification);
|
||||
case 5 -> getOrderTrain(notification);
|
||||
case 6 -> getOrderCar(notification);
|
||||
default -> LYNoteResponse.success();
|
||||
// int notifyType = notification.getNotifyType();
|
||||
// switch (notifyType) {
|
||||
// //进行订单数据回推
|
||||
// case 1 -> getOrderFlight(notification);
|
||||
// case 3 -> getOrderHotel(notification);
|
||||
// case 5 -> getOrderTrain(notification);
|
||||
// case 6 -> getOrderCar(notification);
|
||||
// default -> LYNoteResponse.success();
|
||||
// }
|
||||
|
||||
|
||||
if (ifForwardRequest) {
|
||||
CompletableFuture.runAsync(() -> {
|
||||
log.info("转发同程订单状态推送");
|
||||
LYNoteResponse response = basePostRequest
|
||||
.post(forwardRequestBaseUrl + forwardRequestPath, notification, LYNoteResponse.class);
|
||||
if (response.getResCode().equals("100")) {
|
||||
log.info("转发同程订单状态推送成功");
|
||||
} else {
|
||||
log.info("转发同程订单状态推送失败");
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
// if (ifForwardRequest) {
|
||||
// CompletableFuture.runAsync(() -> {
|
||||
// log.info("转发同程订单状态推送");
|
||||
// LYNoteResponse response = basePostRequest
|
||||
// .post(forwardRequestBaseUrl + forwardRequestPath, notification, LYNoteResponse.class);
|
||||
// if (response.getResCode().equals("100")) {
|
||||
// log.info("转发同程订单状态推送成功");
|
||||
// } else {
|
||||
// log.info("转发同程订单状态推送失败");
|
||||
// }
|
||||
// });
|
||||
// }
|
||||
//
|
||||
// String json = gson.toJson(notification);
|
||||
// log.info("存入Redis{}", json);
|
||||
// redisTemplate.opsForList().leftPush(CommonMessageConstant.COMMON_BACK, json);
|
||||
String json = gson.toJson(notification);
|
||||
log.info("存入Redis{}", json);
|
||||
redisTemplate.opsForList().leftPush(CommonMessageConstant.COMMON_BACK, json);
|
||||
return new LYNoteResponse("100", "OK");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue