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
784f00fd
Commit
784f00fd
authored
Sep 11, 2019
by
裴大威
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix update groupNum
parent
54c761ed
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
BookKeywordBizImpl.java
...com/pcloud/book/keywords/biz/impl/BookKeywordBizImpl.java
+2
-4
No files found.
pcloud-service-book/src/main/java/com/pcloud/book/keywords/biz/impl/BookKeywordBizImpl.java
View file @
784f00fd
...
...
@@ -48,7 +48,6 @@ import com.pcloud.book.keywords.vo.QrWeixinParam;
import
com.pcloud.book.keywords.vo.SetKeywordVO
;
import
com.pcloud.book.keywords.vo.SetRankVO
;
import
com.pcloud.book.keywords.vo.UpdateKeywordVO
;
import
com.pcloud.book.util.common.ThreadPoolUtils
;
import
com.pcloud.channelcenter.base.constants.ChannelEnum
;
import
com.pcloud.channelcenter.qrcode.service.QrcodeSceneService
;
import
com.pcloud.channelcenter.qrcode.vo.MessageBookVO
;
...
...
@@ -656,15 +655,14 @@ public class BookKeywordBizImpl implements BookKeywordBiz {
@Override
public
void
updateGroupPeopleCount
(
String
wxGroupId
,
Integer
memberCount
,
Integer
changeNumber
,
Long
weixinQrcodeId
,
Long
groupQrcodeId
)
{
log
.
info
(
"[更新群人数] updateGroupPeopleCount wxGroupId:{} memberCount:{} changeNumber:{} weixinQrcodeId:{} groupQrcodeId:{}"
,
wxGroupId
,
memberCount
,
changeNumber
,
weixinQrcodeId
,
groupQrcodeId
);
if
(
Objects
.
isNull
(
memberCount
)
||
StringUtil
.
isBlank
(
wxGroupId
))
{
if
(
Objects
.
isNull
(
memberCount
)
||
StringUtil
.
isBlank
(
wxGroupId
)
||
memberCount
<=
0
)
{
return
;
}
String
key
=
CacheConstant
.
BOOK
+
"groupPeopleCount:"
;
String
groupPeopleCount
=
JedisClusterUtils
.
hget
(
key
,
wxGroupId
);
log
.
info
(
"[更新群人数] updateGroupPeopleCount groupPeopleCount:{}"
,
groupPeopleCount
);
// 如果没有缓存或者有缓存但是人数与缓存不一致,代表有更新,则更新数据库
final
boolean
update
=
StringUtil
.
isBlank
(
groupPeopleCount
)
||
(
StringUtil
.
isNotBlank
(
groupPeopleCount
)
&&
Integer
.
parseInt
(
groupPeopleCount
)
>
0
&&
!
groupPeopleCount
.
equals
(
memberCount
+
""
));
final
boolean
update
=
StringUtil
.
isBlank
(
groupPeopleCount
)
||
StringUtil
.
isNotBlank
(
groupPeopleCount
)
&&
!
groupPeopleCount
.
equals
(
memberCount
+
""
);
if
(
update
)
{
JedisClusterUtils
.
hset
(
key
,
wxGroupId
,
memberCount
+
""
);
// 将二维码改为已满群BookKeywordBizImpl
...
...
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