Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-manage3.0
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
haoban3.0
haoban-manage3.0
Commits
9a884926
Commit
9a884926
authored
Dec 14, 2022
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test
parent
d070300c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
GroupChatPlanController.java
...n/manage/web/controller/chat/GroupChatPlanController.java
+5
-4
No files found.
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/controller/chat/GroupChatPlanController.java
View file @
9a884926
...
...
@@ -12,6 +12,7 @@ import org.apache.logging.log4j.LogManager;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.RestController
;
import
com.alibaba.fastjson.JSON
;
...
...
@@ -142,7 +143,7 @@ public class GroupChatPlanController {
}
@RequestMapping
(
"detail"
)
public
RestResponse
<
Object
>
detail
(
Long
planId
)
{
public
RestResponse
<
Object
>
detail
(
Long
planId
,
@RequestParam
(
defaultValue
=
"0"
)
int
updteFlag
)
{
ServiceResponse
<
GroupChatPlanDTO
>
linkResp
=
this
.
groupChatPlanApiService
.
detail
(
planId
);
if
(!
linkResp
.
isSuccess
())
{
return
RestResponse
.
failure
(
"1"
,
"计划不存在"
);
...
...
@@ -157,17 +158,17 @@ public class GroupChatPlanController {
materialIdList
.
add
(
json
.
getString
(
"relation_id"
));
}
// 查询素材列表
GroupChatPlanVO
vo
=
EntityUtil
.
changeEntityByJSON
(
GroupChatPlanVO
.
class
,
plan
);
List
<
MaterialDTO
>
materials
=
materialApiService
.
listMaterialByIds
(
materialIdList
);
vo
.
setMaterialIdList
(
materials
);
GroupChatPlanSearchQDTO
qdto
=
new
GroupChatPlanSearchQDTO
()
;
WebLoginDTO
loginUser
=
AuthWebRequestUtil
.
getLoginUser
();
qdto
.
setWxEnterpriseId
(
loginUser
.
getWxEnterpriseId
());
qdto
.
setEnterpriseId
(
loginUser
.
getEnterpriseId
());
BasePageInfo
basePageInfo
=
new
BasePageInfo
();
basePageInfo
.
setPageNum
(
1
);
basePageInfo
.
setPageNum
(
10000
);
ServiceResponse
<
Page
<
GroupChatPlanOwnerLogDTO
>>
ownerResp
=
this
.
groupChatPlanApiService
.
listOwnerLogPage
(
planId
,
qdto
,
basePageInfo
)
;
GroupChatPlanVO
vo
=
EntityUtil
.
changeEntityByJSON
(
GroupChatPlanVO
.
class
,
plan
);
vo
.
setMaterialIdList
(
materials
);
if
(
ownerResp
.
isSuccess
())
{
List
<
GroupChatPlanOwnerLogDTO
>
list
=
ownerResp
.
getResult
().
getResult
()
;
List
<
ChatOwnerVO
>
ownerList
=
list
.
stream
().
map
(
dto
->{
...
...
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