Commit 6d24f81f by 谢海旭

v5.7.0版本 飞行督导

1 parent a85677d2
......@@ -157,6 +157,20 @@ public class LearningCenterController {
LearningCenterMyselfCourseCountRespDTO result = rpcResponse.getResult();
LearningCenterMyselfCourseCountResponse response = BeanUtil.copyProperties(result, LearningCenterMyselfCourseCountResponse.class);
// 查询推荐课程总数
RpcPagination<MyselfCourseRecommendDTO> recommendPagination = new RpcPagination<>();
MyselfCourseRecommendDTO recommendCondition = new MyselfCourseRecommendDTO();
recommendCondition.setPhone(phone);
recommendPagination.setCondition(recommendCondition);
recommendPagination.setPageNum(1);
recommendPagination.setPageSize(1);
RpcResponse<RpcPagination<MyselfCourseRecommendDTO>> recommendResponse = personCourseRecommendationRemote.getPersonCourseRecommendPage(recommendPagination);
if (recommendResponse != null && recommendResponse.hasResult() && recommendResponse.getResult() != null) {
response.setRecommendCount(recommendResponse.getResult().getTotal());
} else {
response.setRecommendCount(0L);
}
return RopResponse.success(response);
} catch (RpcServiceException e) {
log.info("dj.api.pad.learning.center.myself.course.count error reason!", e);
......
......@@ -38,4 +38,11 @@ public class LearningCenterMyselfCourseCountResponse implements Serializable {
example = "4"
)
private Integer completedCount;
@ApiModelProperty(
name = "recommendCount",
notes = "推荐课程总数",
example = "5"
)
private Long recommendCount;
}
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!