Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
midjourney-proxy
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
徐少华
midjourney-proxy
Commits
53145e15
Commit
53145e15
authored
Apr 26, 2020
by
曾迫
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug 1022899
parent
6b651c2d
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
0 deletions
+27
-0
WechatGroupConsr.java
...om/pcloud/book/consumer/wechatgroup/WechatGroupConsr.java
+12
-0
GroupQrcodeBizImpl.java
...va/com/pcloud/book/group/biz/impl/GroupQrcodeBizImpl.java
+12
-0
SelfPushMapper.xml
...ce-book/src/main/resources/mapper/push/SelfPushMapper.xml
+3
-0
No files found.
pcloud-service-book/src/main/java/com/pcloud/book/consumer/wechatgroup/WechatGroupConsr.java
View file @
53145e15
...
@@ -181,6 +181,18 @@ public class WechatGroupConsr {
...
@@ -181,6 +181,18 @@ public class WechatGroupConsr {
return
null
;
return
null
;
}
}
public
Map
<
String
,
Integer
>
mapGroupMemberCount
(
List
<
String
>
weixinGroupIds
)
throws
BizException
{
if
(
ListUtils
.
isEmpty
(
weixinGroupIds
))
{
return
null
;
}
try
{
return
ResponseHandleUtil
.
parseMapResponse
(
groupMemberService
.
mapGroupMemberCount
(
weixinGroupIds
),
String
.
class
,
Integer
.
class
);
}
catch
(
Exception
e
)
{
log
.
error
(
"获取群成员数量.[mapGroupMemberCount]:"
+
e
.
getMessage
(),
e
);
}
return
null
;
}
@ParamLog
(
value
=
"群分类累计进群人数与今日进群人数"
,
isBefore
=
false
,
isAfterReturn
=
false
)
@ParamLog
(
value
=
"群分类累计进群人数与今日进群人数"
,
isBefore
=
false
,
isAfterReturn
=
false
)
public
Map
<
Long
,
Long
>
getclassifyMemberCount
(
List
<
Long
>
classifyIds
)
throws
BizException
{
public
Map
<
Long
,
Long
>
getclassifyMemberCount
(
List
<
Long
>
classifyIds
)
throws
BizException
{
if
(
ListUtils
.
isEmpty
(
classifyIds
))
{
if
(
ListUtils
.
isEmpty
(
classifyIds
))
{
...
...
pcloud-service-book/src/main/java/com/pcloud/book/group/biz/impl/GroupQrcodeBizImpl.java
View file @
53145e15
...
@@ -830,6 +830,18 @@ public class GroupQrcodeBizImpl implements GroupQrcodeBiz {
...
@@ -830,6 +830,18 @@ public class GroupQrcodeBizImpl implements GroupQrcodeBiz {
}
}
}
}
}
}
//从wechatGroup中获取群人数,设置群人数
List
<
String
>
wxGroupIds
=
pageBeanNew
.
getRecordList
().
stream
().
filter
(
s
->
s
.
getWxGroupId
()
!=
null
).
map
(
GroupQrcodeBookVO:
:
getWxGroupId
).
distinct
().
collect
(
Collectors
.
toList
());
Map
<
String
,
Integer
>
userCountMap
=
wechatGroupConsr
.
mapGroupMemberCount
(
wxGroupIds
);
for
(
GroupQrcodeBookVO
vo
:
pageBeanNew
.
getRecordList
())
{
Integer
userNumber
=
0
;
if
(
userCountMap
==
null
)
{
vo
.
setUserNumber
(
0
);
continue
;
}
userNumber
=
userCountMap
.
get
(
vo
.
getWxGroupId
());
vo
.
setUserNumber
(
userNumber
==
null
?
0
:
userNumber
);
}
return
pageBeanNew
;
return
pageBeanNew
;
}
}
...
...
pcloud-service-book/src/main/resources/mapper/push/SelfPushMapper.xml
View file @
53145e15
...
@@ -91,8 +91,10 @@
...
@@ -91,8 +91,10 @@
p.send_time sendTime
p.send_time sendTime
FROM
FROM
self_push p
self_push p
left join self_push_item i on i.push_id=p.id
WHERE
WHERE
1 = 1
1 = 1
and i.item_type in (1,2,3,4,5,6)
<if
test=
"startTime != null and endTime != null"
>
<if
test=
"startTime != null and endTime != null"
>
AND (
AND (
(p.send_time BETWEEN #{startTime} AND #{endTime} )
(p.send_time BETWEEN #{startTime} AND #{endTime} )
...
@@ -110,6 +112,7 @@
...
@@ -110,6 +112,7 @@
AND p.create_user = #{partyId}
AND p.create_user = #{partyId}
</otherwise>
</otherwise>
</choose>
</choose>
group by p.id
ORDER BY
ORDER BY
p.create_time DESC
p.create_time DESC
</select>
</select>
...
...
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