提交 76402d1f 编写于 作者: F fengyw

订单

上级 6029f708
......@@ -54,9 +54,10 @@ public class AuthOrderInfoBiz extends BaseBiz {
if (CollUtil.isNotEmpty(respPage.getList())) {
// 获取课程信息
List<Long> courseIds = respPage.getList().stream().map(AuthOrderInfoResp::getCourseId).collect(Collectors.toList());
Map<Long, String> courseNames = feignCourse.listByIds(courseIds).stream().collect(Collectors.toMap(CourseViewVO::getId, CourseViewVO::getCourseName));
Map<Long, CourseViewVO> courseViewVOMap = feignCourse.listByIds(courseIds).stream().collect(Collectors.toMap(CourseViewVO::getId, item -> item));
for (AuthOrderInfoResp resp : respPage.getList()) {
resp.setCourseName(courseNames.get(resp.getCourseId()));
resp.setCourseName(courseViewVOMap.get(resp.getCourseId()).getCourseName());
resp.setCourseLogo(courseViewVOMap.get(resp.getCourseId()).getCourseLogo());
}
}
return Result.success(respPage);
......
......@@ -8,7 +8,7 @@ import lombok.experimental.Accessors;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;
/**
* <p>
......@@ -30,11 +30,11 @@ public class AuthOrderInfoResp implements Serializable {
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@ApiModelProperty(value = "创建时间")
private LocalDateTime gmtCreate;
private Date gmtCreate;
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@ApiModelProperty(value = "修改时间")
private LocalDateTime gmtModified;
private Date gmtModified;
@ApiModelProperty(value = "订单号")
private Long orderNo;
......@@ -47,7 +47,7 @@ public class AuthOrderInfoResp implements Serializable {
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@ApiModelProperty(value = "下单用户注册时间")
private LocalDateTime registerTime;
private Date registerTime;
@ApiModelProperty(value = "课程ID")
private Long courseId;
......@@ -72,8 +72,11 @@ public class AuthOrderInfoResp implements Serializable {
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@ApiModelProperty(value = "支付时间")
private LocalDateTime payTime;
private Date payTime;
@ApiModelProperty(value = "课程名称")
private String courseName;
@ApiModelProperty(value = "课程封面")
private String courseLogo;
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册