Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
cloud-web
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hqzhdj
cloud-web
Commits
86114cd1
Commit
86114cd1
authored
Oct 31, 2024
by
梅存智
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
项目评论增加关联业务类型:1活动服务;2新闻资讯;3培训测试;4培训资讯
parent
c59b007c
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
cloud-web-manage/src/main/java/com/yizhi/application/project/controller/TpCommentController.java
+2
-1
cloud-web-student/src/main/java/com/yizhi/application/project/controller/TpCommentApiController.java
+3
-2
No files found.
cloud-web-manage/src/main/java/com/yizhi/application/project/controller/TpCommentController.java
View file @
86114cd1
...
...
@@ -39,10 +39,11 @@ public class TpCommentController {
@ApiOperation
(
value
=
"评论列表查询"
,
notes
=
"返回评论列表"
,
response
=
PageCommentVo
.
class
)
public
Response
<
Page
<
PageCommentVo
>>
list
(
@ApiParam
(
value
=
"培训项目id"
,
required
=
true
)
@RequestParam
(
"trainingProjectId"
)
Long
trainingProjectId
,
@ApiParam
(
value
=
"关联业务类型:1活动服务;2新闻资讯;3培训测试;4培训资讯"
)
@RequestParam
(
"bizType"
)
Integer
bizType
,
@ApiParam
(
name
=
"pageNo"
,
value
=
"跳转页数,默认第一页"
,
required
=
true
)
@RequestParam
(
name
=
"pageNo"
,
defaultValue
=
"1"
)
Integer
pageNo
,
@ApiParam
(
name
=
"pageSize"
,
value
=
"每页条数,默认20条"
,
required
=
true
)
@RequestParam
(
name
=
"pageSize"
,
defaultValue
=
"20"
)
Integer
pageSize
){
RequestContext
requestContext
=
ContextHolder
.
get
();
Page
<
PageCommentVo
>
page
=
tpCommentClient
.
list
(
trainingProjectId
,
requestContext
.
getAccountId
(),
pageNo
,
pageSize
,
0
);
Page
<
PageCommentVo
>
page
=
tpCommentClient
.
list
(
trainingProjectId
,
bizType
,
requestContext
.
getAccountId
(),
pageNo
,
pageSize
,
0
);
return
Response
.
ok
(
page
);
}
...
...
cloud-web-student/src/main/java/com/yizhi/application/project/controller/TpCommentApiController.java
View file @
86114cd1
...
...
@@ -84,11 +84,12 @@ public class TpCommentApiController {
@ApiOperation
(
value
=
"项目查看评论列表"
,
notes
=
"项目查看评论列表"
,
response
=
PageCommentVo
.
class
)
public
Response
commentList
(
@ApiParam
(
value
=
"项目主键id"
,
required
=
true
)
@RequestParam
(
"id"
)
Long
id
,
@ApiParam
(
value
=
"关联业务类型:1活动服务;2新闻资讯;3培训测试;4培训资讯"
)
@RequestParam
(
name
=
"bizType"
,
required
=
false
)
Integer
bizType
,
@ApiParam
(
name
=
"pageNo"
,
value
=
"跳转页数,默认第一页"
,
required
=
true
)
@RequestParam
(
name
=
"pageNo"
,
defaultValue
=
"1"
)
Integer
pageNo
,
@ApiParam
(
name
=
"pageSize"
,
value
=
"每页条数,默认20条"
,
required
=
true
)
@RequestParam
(
name
=
"pageSize"
,
defaultValue
=
"20"
)
Integer
pageSize
)
{
RequestContext
requestContext
=
ContextHolder
.
get
();
Page
<
PageCommentVo
>
page
=
tpCommentClient
.
list
(
id
,
requestContext
.
getAccountId
(),
pageNo
,
pageSize
,
1
);
Page
<
PageCommentVo
>
page
=
tpCommentClient
.
list
(
id
,
bizType
,
requestContext
.
getAccountId
(),
pageNo
,
pageSize
,
1
);
page
=
workUtil
.
fillData
(
page
,
requestContext
);
return
Response
.
ok
(
page
);
}
...
...
@@ -104,7 +105,7 @@ public class TpCommentApiController {
@ApiOperation
(
value
=
"PC端培训项目展现评论列表"
)
Response
<
PageCommentVo
>
tpCommentList
(
@ApiParam
(
value
=
"trCommentVo"
)
@RequestBody
TrCommentVo
trCommentVo
)
{
RequestContext
requestContext
=
ContextHolder
.
get
();
Page
<
PageCommentVo
>
commentVoPage
=
tpCommentClient
.
list
(
trCommentVo
.
getTrainingProjectId
(),
requestContext
.
getAccountId
(),
trCommentVo
.
getPageNo
(),
trCommentVo
.
getPageSize
(),
1
);
Page
<
PageCommentVo
>
commentVoPage
=
tpCommentClient
.
list
(
trCommentVo
.
getTrainingProjectId
(),
trCommentVo
.
getBizType
(),
requestContext
.
getAccountId
(),
trCommentVo
.
getPageNo
(),
trCommentVo
.
getPageSize
(),
1
);
commentVoPage
=
workUtil
.
fillData
(
commentVoPage
,
requestContext
);
Pair
pair
=
PageTools
.
split
(
commentVoPage
);
return
Response
.
ok
(
commentVoPage
,
(
Map
<
String
,
Integer
>)
pair
.
getRight
());
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment