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
3c031fc6
Commit
3c031fc6
authored
Nov 07, 2023
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
所有群主
parent
e51be9af
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
0 deletions
+11
-0
GroupChatPlanMapper.java
...n/manage/service/dao/mapper/chat/GroupChatPlanMapper.java
+3
-0
GroupChatPlanServiceImpl.java
...e/service/service/chat/impl/GroupChatPlanServiceImpl.java
+3
-0
GroupChatPlanMapper.xml
...ce/src/main/resources/mapper/chat/GroupChatPlanMapper.xml
+5
-0
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/dao/mapper/chat/GroupChatPlanMapper.java
View file @
3c031fc6
...
...
@@ -39,4 +39,6 @@ public interface GroupChatPlanMapper {
@Param
(
"successChatCount"
)
int
successChatCount
,
@Param
(
"failChatCount"
)
int
failChatCount
);
public
void
updateRemark
(
GroupChatPlanDTO
dto
);
public
void
updateStaffCount
(
@Param
(
"planId"
)
Long
planId
,
@Param
(
"staffCount"
)
int
staffCount
)
;
}
\ No newline at end of file
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/chat/impl/GroupChatPlanServiceImpl.java
View file @
3c031fc6
...
...
@@ -341,6 +341,7 @@ public class GroupChatPlanServiceImpl implements GroupChatPlanService {
if
(
sendAlFlag
==
1
)
{
int
ownerPageNo
=
0
;
int
ownerPageSize
=
500
;
int
totalCount
=
0
;
List
<
GroupChatOwnerDTO
>
list
=
null
;
while
(
true
)
{
list
=
this
.
groupChatOwnerMapper
.
listOwnerForStatistic
(
wxEnterpriseId
,
ownerPageNo
*
ownerPageSize
,
ownerPageSize
);
...
...
@@ -350,8 +351,10 @@ public class GroupChatPlanServiceImpl implements GroupChatPlanService {
logger
.
info
(
"全部,群主数={},{}"
,
wxEnterpriseId
,
list
.
size
());
ownerPageNo
++;
String
staffIds
=
list
.
stream
().
map
(
o
->
o
.
getStaffId
()).
collect
(
Collectors
.
joining
(
","
))
;
totalCount
=
totalCount
+
list
.
size
()
;
this
.
groupChatPlanOwnerLogService
.
batchAdd
(
staffIds
,
plan
);
}
this
.
groupChatPlanMapper
.
updateStaffCount
(
planId
,
totalCount
);
}
while
(
true
)
{
ownerList
=
this
.
groupChatPlanOwnerLogMapper
.
listForDoPlan
(
planId
,
pageNum
*
pageSize
,
pageSize
);
...
...
haoban-manage3-service/src/main/resources/mapper/chat/GroupChatPlanMapper.xml
View file @
3c031fc6
...
...
@@ -204,4 +204,8 @@
update tab_haoban_group_chat_plan set send_count = send_count+ #{sendCount} , success_chat_count=success_chat_count+#{successChatCount} , fail_chat_count = fail_chat_count+#{failChatCount} ,
update_time =now() where plan_id = #{planId}
</update>
<update
id=
"updateStaffCount"
>
update tab_haoban_group_chat_plan set staff_count = #{staffCount} , update_time =now() where plan_id = #{planId}
</update>
</mapper>
\ No newline at end of file
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