|
@@ -433,12 +433,15 @@ public class StudentOrderController extends BaseController {
|
|
|
}
|
|
|
orderDetail.put("detail", vipGroupActivities);
|
|
|
} else if (orderByOrderNo.getGroupType().equals(GroupType.MEMBER)) {
|
|
|
- CloudTeacherOrderDto orderDto = cloudTeacherOrderService.queryOrderInfoByOrderId(orderByOrderNo.getId()).get(0);
|
|
|
- orderDetail.put("detail", orderDto);
|
|
|
- if (orderDto != null) {
|
|
|
- Map<String, Object> map = new HashMap<>(1);
|
|
|
- map.put("paymentOrderId", orderDto.getCloudTeacherOrder().getOrderId());
|
|
|
- orderDetail.put("couponList", sysCouponCodeDao.querySysCouponUseList(map));
|
|
|
+ List<CloudTeacherOrderDto> cloudTeacherOrderDtos = cloudTeacherOrderService.queryOrderInfoByOrderId(orderByOrderNo.getId());
|
|
|
+ if(CollectionUtils.isNotEmpty(cloudTeacherOrderDtos)){
|
|
|
+ CloudTeacherOrderDto orderDto = cloudTeacherOrderDtos.get(0);
|
|
|
+ orderDetail.put("detail", orderDto);
|
|
|
+ if (orderDto != null) {
|
|
|
+ Map<String, Object> map = new HashMap<>(1);
|
|
|
+ map.put("paymentOrderId", orderDto.getCloudTeacherOrder().getOrderId());
|
|
|
+ orderDetail.put("couponList", sysCouponCodeDao.querySysCouponUseList(map));
|
|
|
+ }
|
|
|
}
|
|
|
} else if (orderByOrderNo.getGroupType().equals(GroupType.LIVE_BUY)) {
|
|
|
orderDetail.put("detail", vipGroupActivityService.getDao().queryByIds(orderByOrderNo.getActivityId()));
|