Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
dj
/
rop-dj-pad
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 6d24f81f
authored
Mar 23, 2026
by
谢海旭
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
v5.7.0版本 飞行督导
1 parent
a85677d2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
0 deletions
src/main/java/cn/com/glsx/dj/pad/controller/learningcenter/LearningCenterController.java
src/main/java/cn/com/glsx/dj/pad/response/learningcenter/LearningCenterMyselfCourseCountResponse.java
src/main/java/cn/com/glsx/dj/pad/controller/learningcenter/LearningCenterController.java
View file @
6d24f81
...
@@ -157,6 +157,20 @@ public class LearningCenterController {
...
@@ -157,6 +157,20 @@ public class LearningCenterController {
LearningCenterMyselfCourseCountRespDTO
result
=
rpcResponse
.
getResult
();
LearningCenterMyselfCourseCountRespDTO
result
=
rpcResponse
.
getResult
();
LearningCenterMyselfCourseCountResponse
response
=
BeanUtil
.
copyProperties
(
result
,
LearningCenterMyselfCourseCountResponse
.
class
);
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
);
return
RopResponse
.
success
(
response
);
}
catch
(
RpcServiceException
e
)
{
}
catch
(
RpcServiceException
e
)
{
log
.
info
(
"dj.api.pad.learning.center.myself.course.count error reason!"
,
e
);
log
.
info
(
"dj.api.pad.learning.center.myself.course.count error reason!"
,
e
);
...
...
src/main/java/cn/com/glsx/dj/pad/response/learningcenter/LearningCenterMyselfCourseCountResponse.java
View file @
6d24f81
...
@@ -38,4 +38,11 @@ public class LearningCenterMyselfCourseCountResponse implements Serializable {
...
@@ -38,4 +38,11 @@ public class LearningCenterMyselfCourseCountResponse implements Serializable {
example
=
"4"
example
=
"4"
)
)
private
Integer
completedCount
;
private
Integer
completedCount
;
@ApiModelProperty
(
name
=
"recommendCount"
,
notes
=
"推荐课程总数"
,
example
=
"5"
)
private
Long
recommendCount
;
}
}
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment