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
a49e8672
Commit
a49e8672
authored
Dec 12, 2022
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
任务
parent
832d0b42
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
21 deletions
+15
-21
GroupChatPlanController.java
...manage/web/controller/haoban/GroupChatPlanController.java
+15
-21
No files found.
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/controller/haoban/GroupChatPlanController.java
View file @
a49e8672
...
...
@@ -42,8 +42,8 @@ public class GroupChatPlanController {
@Autowired
private
GroupChatPlanApiService
groupChatPlanApiService
;
@Autowired
private
MaterialApiService
materialApiService
;
private
MaterialApiService
materialApiService
;
@RequestMapping
(
"total-list"
)
public
RestResponse
<
Object
>
totalList
(
String
clerkId
,
String
wxEnterpriseId
,
String
enterpriseId
,
BasePageInfo
basePageInfo
)
{
...
...
@@ -57,13 +57,7 @@ public class GroupChatPlanController {
}
@RequestMapping
(
"owner-list"
)
public
RestResponse
<
Object
>
ownerList
(
Long
planId
,
String
clerkId
,
String
wxEnterpriseId
,
String
enterpriseId
,
BasePageInfo
basePageInfo
)
{
GroupChatPlanSearchQDTO
qdto
=
new
GroupChatPlanSearchQDTO
();
qdto
.
setWxEnterpriseId
(
wxEnterpriseId
);
qdto
.
setEnterpriseId
(
enterpriseId
);
qdto
.
setClerkId
(
clerkId
);
qdto
.
setPlanId
(
planId
);
public
RestResponse
<
Object
>
ownerList
(
GroupChatPlanSearchQDTO
qdto
,
BasePageInfo
basePageInfo
)
{
ServiceResponse
<
Page
<
GroupChatPlanOwnerLogDTO
>>
page
=
this
.
groupChatPlanApiService
.
listOwnerLogPageForWxa
(
qdto
,
basePageInfo
);
return
RestResponse
.
successResult
(
page
.
getResult
());
...
...
@@ -74,7 +68,7 @@ public class GroupChatPlanController {
this
.
groupChatPlanApiService
.
reflushSendInfo
(
ownLogId
);
return
RestResponse
.
successResult
();
}
@RequestMapping
(
"detail"
)
public
RestResponse
<
Object
>
detail
(
Long
planId
)
{
ServiceResponse
<
GroupChatPlanDTO
>
linkResp
=
this
.
groupChatPlanApiService
.
detail
(
planId
);
...
...
@@ -82,24 +76,24 @@ public class GroupChatPlanController {
return
RestResponse
.
failure
(
"1"
,
"计划不存在"
);
}
GroupChatPlanDTO
plan
=
linkResp
.
getResult
();
String
content
=
plan
.
getChatContent
()
;
JSONArray
array
=
JSONArray
.
parseArray
(
content
)
;
String
content
=
plan
.
getChatContent
();
JSONArray
array
=
JSONArray
.
parseArray
(
content
);
List
<
String
>
materialIdList
=
new
ArrayList
<>();
for
(
int
i
=
0
;
i
<
array
.
size
();
i
++)
{
JSONObject
json
=
array
.
getJSONObject
(
i
)
;
materialIdList
.
add
(
json
.
getString
(
"relation_id"
))
;
for
(
int
i
=
0
;
i
<
array
.
size
();
i
++)
{
JSONObject
json
=
array
.
getJSONObject
(
i
);
materialIdList
.
add
(
json
.
getString
(
"relation_id"
));
}
//查询素材列表
//
查询素材列表
List
<
MaterialDTO
>
materials
=
materialApiService
.
listMaterialByIds
(
materialIdList
);
Map
<
String
,
Object
>
retMap
=
new
HashMap
<>();
retMap
.
put
(
"plan"
,
plan
)
;
retMap
.
put
(
"materialList"
,
materials
)
;
Map
<
String
,
Object
>
retMap
=
new
HashMap
<>();
retMap
.
put
(
"plan"
,
plan
);
retMap
.
put
(
"materialList"
,
materials
);
return
RestResponse
.
successResult
(
retMap
);
}
@RequestMapping
(
"owner-do-list"
)
public
RestResponse
<
Object
>
ownerDoList
(
Long
planId
,
String
clerkId
,
String
wxEnterpriseId
,
String
enterpriseId
,
Long
ownLogId
,
BasePageInfo
basePageInfo
)
{
public
RestResponse
<
Object
>
ownerDoList
(
Long
planId
,
String
clerkId
,
String
wxEnterpriseId
,
String
enterpriseId
,
Long
ownLogId
,
BasePageInfo
basePageInfo
)
{
GroupChatPlanSearchQDTO
qdto
=
new
GroupChatPlanSearchQDTO
();
qdto
.
setWxEnterpriseId
(
wxEnterpriseId
);
qdto
.
setEnterpriseId
(
enterpriseId
);
...
...
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