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
1481f1a9
Commit
1481f1a9
authored
May 28, 2019
by
lili
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新用户数
parent
872b7814
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
0 deletions
+27
-0
GroupQrcodeBiz.java
...c/main/java/com/pcloud/book/group/biz/GroupQrcodeBiz.java
+7
-0
GroupQrcodeBizImpl.java
...va/com/pcloud/book/group/biz/impl/GroupQrcodeBizImpl.java
+12
-0
GroupQrcodeFacadeImpl.java
.../pcloud/book/group/facade/impl/GroupQrcodeFacadeImpl.java
+8
-0
No files found.
pcloud-service-book/src/main/java/com/pcloud/book/group/biz/GroupQrcodeBiz.java
View file @
1481f1a9
...
@@ -73,4 +73,11 @@ public interface GroupQrcodeBiz {
...
@@ -73,4 +73,11 @@ public interface GroupQrcodeBiz {
* @Date:2019/5/6 16:12
* @Date:2019/5/6 16:12
*/
*/
GroupQrcodeBaseInfoVO
getBaseById
(
Long
groupQrcodeId
);
GroupQrcodeBaseInfoVO
getBaseById
(
Long
groupQrcodeId
);
/**
* @Author:lili
* @Desr:更新用户数
* @Date:2019/5/28 11:47
*/
void
updateUserNumber
(
String
weixinGroupId
);
}
}
pcloud-service-book/src/main/java/com/pcloud/book/group/biz/impl/GroupQrcodeBizImpl.java
View file @
1481f1a9
...
@@ -220,6 +220,18 @@ public class GroupQrcodeBizImpl implements GroupQrcodeBiz {
...
@@ -220,6 +220,18 @@ public class GroupQrcodeBizImpl implements GroupQrcodeBiz {
return
groupQrcodeDao
.
getBaseById
(
groupQrcodeId
);
return
groupQrcodeDao
.
getBaseById
(
groupQrcodeId
);
}
}
@Override
public
void
updateUserNumber
(
String
weixinGroupId
)
{
String
robotIdByGroupId
=
wechatGroupConsr
.
getRobotIdByGroupId
(
weixinGroupId
);
if
(
robotIdByGroupId
!=
null
){
Integer
peopleCounts
=
WxGroupSDK
.
getPeopleCounts
(
weixinGroupId
,
robotIdByGroupId
);
if
(
peopleCounts
!=
null
)
{
//更新用户数
groupQrcodeDao
.
updateUserNumber
(
weixinGroupId
,
peopleCounts
);
}
}
}
/**
/**
* 重新分配一个群
* 重新分配一个群
*/
*/
...
...
pcloud-service-book/src/main/java/com/pcloud/book/group/facade/impl/GroupQrcodeFacadeImpl.java
View file @
1481f1a9
...
@@ -58,10 +58,18 @@ public class GroupQrcodeFacadeImpl implements GroupQrcodeFacade {
...
@@ -58,10 +58,18 @@ public class GroupQrcodeFacadeImpl implements GroupQrcodeFacade {
GroupQrcodeBaseInfoVO
groupQrcodeBaseInfoVO
=
groupQrcodeBiz
.
getBaseById
(
groupQrcodeId
);
GroupQrcodeBaseInfoVO
groupQrcodeBaseInfoVO
=
groupQrcodeBiz
.
getBaseById
(
groupQrcodeId
);
return
new
ResponseDto
<>(
groupQrcodeBaseInfoVO
==
null
?
new
GroupQrcodeBaseInfoVO
()
:
groupQrcodeBaseInfoVO
);
return
new
ResponseDto
<>(
groupQrcodeBaseInfoVO
==
null
?
new
GroupQrcodeBaseInfoVO
()
:
groupQrcodeBaseInfoVO
);
}
}
@GetMapping
(
"addUser"
)
@GetMapping
(
"addUser"
)
ResponseDto
<?>
addUser
(
@RequestParam
(
"weixinGroupId"
)
String
weixinGroupId
,
@RequestParam
(
"userNumber"
)
Integer
userNumber
)
ResponseDto
<?>
addUser
(
@RequestParam
(
"weixinGroupId"
)
String
weixinGroupId
,
@RequestParam
(
"userNumber"
)
Integer
userNumber
)
throws
BizException
{
throws
BizException
{
groupQrcodeBiz
.
addOneUser
(
weixinGroupId
,
userNumber
,
null
);
groupQrcodeBiz
.
addOneUser
(
weixinGroupId
,
userNumber
,
null
);
return
new
ResponseDto
<>();
return
new
ResponseDto
<>();
}
}
@GetMapping
(
"updateUserNumber"
)
ResponseDto
<?>
updateUserNumber
(
@RequestParam
(
"weixinGroupId"
)
String
weixinGroupId
)
throws
BizException
{
groupQrcodeBiz
.
updateUserNumber
(
weixinGroupId
);
return
new
ResponseDto
<>();
}
}
}
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