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
bd96fd0e
Commit
bd96fd0e
authored
Dec 14, 2022
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
群发统计
parent
2943d23a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
10 deletions
+13
-10
GroupChatPlanOwnerLogMapper.xml
...ain/resources/mapper/chat/GroupChatPlanOwnerLogMapper.xml
+3
-1
GroupChatPlanController.java
...n/manage/web/controller/chat/GroupChatPlanController.java
+10
-9
No files found.
haoban-manage3-service/src/main/resources/mapper/chat/GroupChatPlanOwnerLogMapper.xml
View file @
bd96fd0e
...
@@ -143,7 +143,9 @@
...
@@ -143,7 +143,9 @@
<select
id=
"listForTimer"
resultType=
"long"
>
<select
id=
"listForTimer"
resultType=
"long"
>
SELECT a.owner_log_id FROM tab_haoban_group_chat_plan_owner_log a left join tab_haoban_group_chat_plan b on a.plan_id = b.plan_id
SELECT a.owner_log_id FROM tab_haoban_group_chat_plan_owner_log a left join tab_haoban_group_chat_plan b on a.plan_id = b.plan_id
WHERE b.end_time >= DATE_ADD(NOW(),INTERVAL -12 hour) and a.done_flag = 0 and a.delete_flag = 0 and b.delete_flag = 0
WHERE b.end_time >= DATE_ADD(NOW(),INTERVAL -12 hour) and a.done_flag = 0 and a.delete_flag = 0 and b.delete_flag = 0
and a.plan_id = #{planId}
<if
test=
"null != planId and -1 != planId"
>
and a.plan_id = #{planId}
</if>
</select>
</select>
<select
id=
"listPage"
parameterType=
"com.gic.haoban.manage.api.dto.qdto.chat.GroupChatPlanSearchQDTO"
resultType=
"com.gic.haoban.manage.api.dto.chat.GroupChatPlanOwnerLogDTO"
>
<select
id=
"listPage"
parameterType=
"com.gic.haoban.manage.api.dto.qdto.chat.GroupChatPlanSearchQDTO"
resultType=
"com.gic.haoban.manage.api.dto.chat.GroupChatPlanOwnerLogDTO"
>
...
...
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/controller/chat/GroupChatPlanController.java
View file @
bd96fd0e
...
@@ -143,7 +143,7 @@ public class GroupChatPlanController {
...
@@ -143,7 +143,7 @@ public class GroupChatPlanController {
}
}
@RequestMapping
(
"detail"
)
@RequestMapping
(
"detail"
)
public
RestResponse
<
Object
>
detail
(
Long
planId
,
@RequestParam
(
defaultValue
=
"0"
)
int
updteFlag
)
{
public
RestResponse
<
Object
>
detail
(
Long
planId
,
@RequestParam
(
defaultValue
=
"0"
)
int
updteFlag
)
{
ServiceResponse
<
GroupChatPlanDTO
>
linkResp
=
this
.
groupChatPlanApiService
.
detail
(
planId
);
ServiceResponse
<
GroupChatPlanDTO
>
linkResp
=
this
.
groupChatPlanApiService
.
detail
(
planId
);
if
(!
linkResp
.
isSuccess
())
{
if
(!
linkResp
.
isSuccess
())
{
return
RestResponse
.
failure
(
"1"
,
"计划不存在"
);
return
RestResponse
.
failure
(
"1"
,
"计划不存在"
);
...
@@ -161,23 +161,24 @@ public class GroupChatPlanController {
...
@@ -161,23 +161,24 @@ public class GroupChatPlanController {
GroupChatPlanVO
vo
=
EntityUtil
.
changeEntityByJSON
(
GroupChatPlanVO
.
class
,
plan
);
GroupChatPlanVO
vo
=
EntityUtil
.
changeEntityByJSON
(
GroupChatPlanVO
.
class
,
plan
);
List
<
MaterialDTO
>
materials
=
materialApiService
.
listMaterialByIds
(
materialIdList
);
List
<
MaterialDTO
>
materials
=
materialApiService
.
listMaterialByIds
(
materialIdList
);
vo
.
setMaterialIdList
(
materials
);
vo
.
setMaterialIdList
(
materials
);
GroupChatPlanSearchQDTO
qdto
=
new
GroupChatPlanSearchQDTO
()
;
GroupChatPlanSearchQDTO
qdto
=
new
GroupChatPlanSearchQDTO
();
WebLoginDTO
loginUser
=
AuthWebRequestUtil
.
getLoginUser
();
WebLoginDTO
loginUser
=
AuthWebRequestUtil
.
getLoginUser
();
qdto
.
setWxEnterpriseId
(
loginUser
.
getWxEnterpriseId
());
qdto
.
setWxEnterpriseId
(
loginUser
.
getWxEnterpriseId
());
qdto
.
setEnterpriseId
(
loginUser
.
getEnterpriseId
());
qdto
.
setEnterpriseId
(
loginUser
.
getEnterpriseId
());
BasePageInfo
basePageInfo
=
new
BasePageInfo
();
BasePageInfo
basePageInfo
=
new
BasePageInfo
();
basePageInfo
.
setPageNum
(
1
);
basePageInfo
.
setPageNum
(
1
);
basePageInfo
.
setPageSize
(
10000
);
basePageInfo
.
setPageSize
(
10000
);
ServiceResponse
<
Page
<
GroupChatPlanOwnerLogDTO
>>
ownerResp
=
this
.
groupChatPlanApiService
.
listOwnerLogPage
(
planId
,
qdto
,
basePageInfo
)
;
ServiceResponse
<
Page
<
GroupChatPlanOwnerLogDTO
>>
ownerResp
=
this
.
groupChatPlanApiService
if
(
ownerResp
.
isSuccess
())
{
.
listOwnerLogPage
(
planId
,
qdto
,
basePageInfo
);
List
<
GroupChatPlanOwnerLogDTO
>
list
=
ownerResp
.
getResult
().
getResult
()
;
if
(
ownerResp
.
isSuccess
())
{
if
(
CollectionUtils
.
isNotEmpty
(
list
))
{
List
<
GroupChatPlanOwnerLogDTO
>
list
=
ownerResp
.
getResult
().
getResult
();
List
<
ChatOwnerVO
>
ownerList
=
list
.
stream
().
map
(
dto
->{
if
(
CollectionUtils
.
isNotEmpty
(
list
))
{
List
<
ChatOwnerVO
>
ownerList
=
list
.
stream
().
map
(
dto
->
{
ChatOwnerVO
owner
=
new
ChatOwnerVO
();
ChatOwnerVO
owner
=
new
ChatOwnerVO
();
owner
.
setStaffId
(
dto
.
getStaffId
());
owner
.
setStaffId
(
dto
.
getStaffId
());
owner
.
setStaffName
(
dto
.
getStaffName
());
owner
.
setStaffName
(
dto
.
getStaffName
());
return
owner
;
return
owner
;
}).
collect
(
Collectors
.
toList
())
;
}).
collect
(
Collectors
.
toList
());
vo
.
setOwnerList
(
ownerList
);
vo
.
setOwnerList
(
ownerList
);
}
}
}
}
...
...
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