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
5e501f9f
Commit
5e501f9f
authored
Dec 29, 2022
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
计划校验
parent
e9f84776
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
16 deletions
+16
-16
GroupChatPlanController.java
...manage/web/controller/haoban/GroupChatPlanController.java
+16
-16
No files found.
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/controller/haoban/GroupChatPlanController.java
View file @
5e501f9f
...
...
@@ -29,11 +29,11 @@ import com.gic.haoban.manage.api.service.chat.GroupChatPlanApiService;
/**
*
* @ClassName: GroupChatPlanController
* @Description: 群群发计划
* @author xugh
* @date 2022年11月26日 上午9:32:56
*
* @ClassName: GroupChatPlanController
* @Description: 群群发计划
* @author xugh
* @date 2022年11月26日 上午9:32:56
*
*/
@RestController
@RequestMapping
(
"/chat/plan"
)
...
...
@@ -47,23 +47,23 @@ public class GroupChatPlanController {
private
MaterialApiService
materialApiService
;
@RequestMapping
(
"total-list"
)
public
RestResponse
<
Object
>
totalList
(
String
clerkId
,
String
wxEnterpriseId
,
String
enterpriseId
,
String
searchParams
,
BasePageInfo
basePageInfo
)
{
public
RestResponse
<
Object
>
totalList
(
String
clerkId
,
String
wxEnterpriseId
,
String
enterpriseId
,
String
searchParams
,
BasePageInfo
basePageInfo
)
{
GroupChatPlanSearchQDTO
qdto
=
new
GroupChatPlanSearchQDTO
();
qdto
.
setWxEnterpriseId
(
wxEnterpriseId
);
qdto
.
setEnterpriseId
(
enterpriseId
);
qdto
.
setClerkId
(
clerkId
);
if
(
StringUtils
.
isNotBlank
(
searchParams
))
{
if
(
StringUtils
.
isNotBlank
(
searchParams
))
{
qdto
.
setSearchParams
(
searchParams
);
}
ServiceResponse
<
Page
<
ChatOwnerTotalDTO
>>
pageResp
=
this
.
groupChatPlanApiService
.
listOwnerLogPageForWxaTotal
(
qdto
,
basePageInfo
);
Page
<
ChatOwnerTotalDTO
>
page
=
pageResp
.
getResult
()
;
if
(
null
!=
page
.
getResult
())
{
page
.
getResult
().
forEach
(
dto
->
{
if
(
dto
.
getEndTime
().
before
(
new
Date
()))
{
ServiceResponse
<
Page
<
ChatOwnerTotalDTO
>>
pageResp
=
this
.
groupChatPlanApiService
.
listOwnerLogPageForWxaTotal
(
qdto
,
basePageInfo
);
Page
<
ChatOwnerTotalDTO
>
page
=
pageResp
.
getResult
()
;
if
(
null
!=
page
.
getResult
())
{
page
.
getResult
().
forEach
(
dto
->
{
if
(
dto
.
getEndTime
().
before
(
new
Date
()))
{
dto
.
setPlanStatus
(
2
);
}
else
{
}
else
{
dto
.
setPlanStatus
(
1
);
}
});
...
...
@@ -87,7 +87,7 @@ public class GroupChatPlanController {
@RequestMapping
(
"detail"
)
public
RestResponse
<
Object
>
detail
(
Long
planId
)
{
ServiceResponse
<
GroupChatPlanDTO
>
linkResp
=
this
.
groupChatPlanApiService
.
detail
(
planId
);
if
(!
linkResp
.
isSuccess
())
{
if
(!
linkResp
.
isSuccess
()
||
null
==
linkResp
.
getResult
()
)
{
return
RestResponse
.
failure
(
"1"
,
"计划不存在"
);
}
GroupChatPlanDTO
plan
=
linkResp
.
getResult
();
...
...
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