提交 4e2216c1 authored 作者: hzh's avatar hzh

bug修复

上级 12c1f917
...@@ -105,7 +105,7 @@ public interface ITrainService { ...@@ -105,7 +105,7 @@ public interface ITrainService {
* @param model 退票参数 * @param model 退票参数
* @return 退票结果 * @return 退票结果
*/ */
OrderRefundDetailModel orderRefundDetail(String userId, org.dromara.common.ys.model.req.train.OrderRefundDetailModel model); List<OrderRefundDetailModel> orderRefundDetail(String userId, org.dromara.common.ys.model.req.train.OrderRefundDetailModel model);
/** /**
* 退票单详情 * 退票单详情
......
...@@ -185,7 +185,7 @@ public class TrainServiceImpl implements ITrainService { ...@@ -185,7 +185,7 @@ public class TrainServiceImpl implements ITrainService {
} }
@Override @Override
public OrderRefundDetailModel orderRefundDetail(String userId, org.dromara.common.ys.model.req.train.OrderRefundDetailModel model) { public List<OrderRefundDetailModel> orderRefundDetail(String userId, org.dromara.common.ys.model.req.train.OrderRefundDetailModel model) {
ApiHttpResponse res = Api.v1( ApiHttpResponse res = Api.v1(
com.wenhe.base.base.RequestMethodEnum.POST, com.wenhe.base.base.RequestMethodEnum.POST,
DomainEnum.TEST.getDomain(), DomainEnum.TEST.getDomain(),
...@@ -196,7 +196,7 @@ public class TrainServiceImpl implements ITrainService { ...@@ -196,7 +196,7 @@ public class TrainServiceImpl implements ITrainService {
if (!CharSequenceUtil.equals(res.getErrCode(), Code.SUCCESS.getCode())) { if (!CharSequenceUtil.equals(res.getErrCode(), Code.SUCCESS.getCode())) {
throw new RuntimeException(res.getTips()); throw new RuntimeException(res.getTips());
} }
return JSON.parseArray(JSON.parseObject(res.getData()).getString("orderGather"), OrderRefundDetailModel.class).get(0); return JSON.parseArray(JSON.parseObject(res.getData()).getString("orderGather"), OrderRefundDetailModel.class);
} }
@Override @Override
......
...@@ -311,7 +311,7 @@ public class TrainController extends BaseController { ...@@ -311,7 +311,7 @@ public class TrainController extends BaseController {
* 退票单详情 * 退票单详情
*/ */
@GetMapping("/orderRefund/detail") @GetMapping("/orderRefund/detail")
public R<OrderRefundDetailModel> orderRefundDetail(org.dromara.common.ys.model.req.train.OrderRefundDetailModel model) { public R<List<OrderRefundDetailModel>> orderRefundDetail(org.dromara.common.ys.model.req.train.OrderRefundDetailModel model) {
return R.ok(trainService.orderRefundDetail(getUserId(), model)); return R.ok(trainService.orderRefundDetail(getUserId(), model));
} }
......
...@@ -120,7 +120,7 @@ public class OrderTrainRefundServiceImpl extends AbstractBaseService<OrderTrainR ...@@ -120,7 +120,7 @@ public class OrderTrainRefundServiceImpl extends AbstractBaseService<OrderTrainR
//更新数据 //更新数据
orderList.forEach(order -> { orderList.forEach(order -> {
scheduledExecutorService.execute(() -> { scheduledExecutorService.execute(() -> {
OrderRefundDetailModel orderModel = trainService.orderRefundDetail(order.getPersonCode(), new org.dromara.common.ys.model.req.train.OrderRefundDetailModel().setRefundNo(order.getRefundNo())); OrderRefundDetailModel orderModel = trainService.orderRefundDetail(order.getPersonCode(), new org.dromara.common.ys.model.req.train.OrderRefundDetailModel().setRefundNo(order.getRefundNo())).get(0);
//获取订单状态 //获取订单状态
String orderStatus = getOrderStatus(order); String orderStatus = getOrderStatus(order);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论