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
eb0edb98
Commit
eb0edb98
authored
Jul 08, 2019
by
高鹏
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feat-lihao' into 'master'
merge:获取10人以上有效群 See merge request rays/pcloud-book!39
parents
1511139c
daa4de6a
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
56 additions
and
1 deletions
+56
-1
WeixinQrcodeService.java
...va/com/pcloud/book/group/service/WeixinQrcodeService.java
+4
-0
WeixinQrcodeBiz.java
.../main/java/com/pcloud/book/group/biz/WeixinQrcodeBiz.java
+8
-0
WeixinQrcodeBizImpl.java
...a/com/pcloud/book/group/biz/impl/WeixinQrcodeBizImpl.java
+9
-0
WeixinQrcodeDao.java
.../main/java/com/pcloud/book/group/dao/WeixinQrcodeDao.java
+8
-1
WeixinQrcodeDaoImpl.java
...a/com/pcloud/book/group/dao/impl/WeixinQrcodeDaoImpl.java
+5
-0
WeixinQrcodeServiceImpl.java
...loud/book/group/service/impl/WeixinQrcodeServiceImpl.java
+7
-0
WeixinQrcode.Mapper.xml
...k/src/main/resources/mapper/group/WeixinQrcode.Mapper.xml
+15
-0
No files found.
pcloud-facade-book/src/main/java/com/pcloud/book/group/service/WeixinQrcodeService.java
View file @
eb0edb98
...
@@ -69,6 +69,10 @@ public interface WeixinQrcodeService {
...
@@ -69,6 +69,10 @@ public interface WeixinQrcodeService {
@GetMapping
(
"listAvailableGroupByPage"
)
@GetMapping
(
"listAvailableGroupByPage"
)
ResponseEntity
<
ResponseDto
<
List
<
BookWxQrcodeDTO
>>>
listAvailableGroupByPage
(
@RequestParam
(
"currentPage"
)
Integer
currentPage
,
@RequestParam
(
"numPerPage"
)
Integer
numPerPage
);
ResponseEntity
<
ResponseDto
<
List
<
BookWxQrcodeDTO
>>>
listAvailableGroupByPage
(
@RequestParam
(
"currentPage"
)
Integer
currentPage
,
@RequestParam
(
"numPerPage"
)
Integer
numPerPage
);
@ApiOperation
(
"分页获取人数超过10人的可用微信群"
)
@GetMapping
(
"listOver10AvailableGroupByPage"
)
ResponseEntity
<
ResponseDto
<
List
<
BookWxQrcodeDTO
>>>
listOver10AvailableGroupByPage
(
@RequestParam
(
"currentPage"
)
Integer
currentPage
,
@RequestParam
(
"numPerPage"
)
Integer
numPerPage
);
@ApiOperation
(
"所有群邀请新的机器人小号(有接收消息机器人存在好友关系)"
)
@ApiOperation
(
"所有群邀请新的机器人小号(有接收消息机器人存在好友关系)"
)
@GetMapping
(
"inviteNewRobot"
)
@GetMapping
(
"inviteNewRobot"
)
void
inviteNewRobot
(
@RequestParam
(
"wxUserId"
)
String
wxUserId
);
void
inviteNewRobot
(
@RequestParam
(
"wxUserId"
)
String
wxUserId
);
...
...
pcloud-service-book/src/main/java/com/pcloud/book/group/biz/WeixinQrcodeBiz.java
View file @
eb0edb98
...
@@ -115,6 +115,14 @@ public interface WeixinQrcodeBiz {
...
@@ -115,6 +115,14 @@ public interface WeixinQrcodeBiz {
List
<
BookWxQrcodeDTO
>
listAvailableGroupByPage
(
Integer
currentPage
,
Integer
numPerPage
);
List
<
BookWxQrcodeDTO
>
listAvailableGroupByPage
(
Integer
currentPage
,
Integer
numPerPage
);
/**
/**
* 分页获取人数超过10人的可用微信群
* @param currentPage
* @param numPerPage
* @return
*/
List
<
BookWxQrcodeDTO
>
listOver10AvailableGroupByPage
(
Integer
currentPage
,
Integer
numPerPage
);
/**
* 所有群邀请新的机器人小号
* 所有群邀请新的机器人小号
* @param wxUserId 用户微信ID
* @param wxUserId 用户微信ID
*/
*/
...
...
pcloud-service-book/src/main/java/com/pcloud/book/group/biz/impl/WeixinQrcodeBizImpl.java
View file @
eb0edb98
...
@@ -318,6 +318,15 @@ public class WeixinQrcodeBizImpl implements WeixinQrcodeBiz {
...
@@ -318,6 +318,15 @@ public class WeixinQrcodeBizImpl implements WeixinQrcodeBiz {
}
}
@Override
@Override
@ParamLog
(
"分页获取人数超过10人的可用微信群"
)
public
List
<
BookWxQrcodeDTO
>
listOver10AvailableGroupByPage
(
Integer
currentPage
,
Integer
numPerPage
)
{
Map
<
String
,
Object
>
paramMap
=
new
HashMap
<>();
paramMap
.
put
(
"currentPage"
,
currentPage
);
paramMap
.
put
(
"numPerPage"
,
numPerPage
);
return
weixinQrcodeDao
.
listOver10AvailableGroupByPage
(
paramMap
);
}
@Override
@ParamLog
(
"所有群邀请新的机器人小号"
)
@ParamLog
(
"所有群邀请新的机器人小号"
)
public
void
inviteNewRobot
(
String
wxUserId
)
{
public
void
inviteNewRobot
(
String
wxUserId
)
{
for
(
int
i
=
0
;
true
;
i
++)
{
for
(
int
i
=
0
;
true
;
i
++)
{
...
...
pcloud-service-book/src/main/java/com/pcloud/book/group/dao/WeixinQrcodeDao.java
View file @
eb0edb98
...
@@ -139,9 +139,16 @@ public interface WeixinQrcodeDao extends BaseDao<WeixinQrcode> {
...
@@ -139,9 +139,16 @@ public interface WeixinQrcodeDao extends BaseDao<WeixinQrcode> {
WeixinQrcode
getByGroupId
(
String
wechatGroupId
);
WeixinQrcode
getByGroupId
(
String
wechatGroupId
);
/**
/**
*
*
分页获取可用微信群
* @param paramMap 参数map
* @param paramMap 参数map
* @return
* @return
*/
*/
List
<
BookWxQrcodeDTO
>
listAvailableGroupByPage
(
Map
<
String
,
Object
>
paramMap
);
List
<
BookWxQrcodeDTO
>
listAvailableGroupByPage
(
Map
<
String
,
Object
>
paramMap
);
/**
* 分页获取人数超过10人的可用微信群
* @param paramMap
* @return
*/
List
<
BookWxQrcodeDTO
>
listOver10AvailableGroupByPage
(
Map
<
String
,
Object
>
paramMap
);
}
}
pcloud-service-book/src/main/java/com/pcloud/book/group/dao/impl/WeixinQrcodeDaoImpl.java
View file @
eb0edb98
...
@@ -137,4 +137,9 @@ public class WeixinQrcodeDaoImpl extends BaseDaoImpl<WeixinQrcode> implements We
...
@@ -137,4 +137,9 @@ public class WeixinQrcodeDaoImpl extends BaseDaoImpl<WeixinQrcode> implements We
public
List
<
BookWxQrcodeDTO
>
listAvailableGroupByPage
(
Map
<
String
,
Object
>
paramMap
)
{
public
List
<
BookWxQrcodeDTO
>
listAvailableGroupByPage
(
Map
<
String
,
Object
>
paramMap
)
{
return
this
.
getSqlSession
().
selectList
(
this
.
getStatement
(
"listAvailableGroupByPage"
),
paramMap
);
return
this
.
getSqlSession
().
selectList
(
this
.
getStatement
(
"listAvailableGroupByPage"
),
paramMap
);
}
}
@Override
public
List
<
BookWxQrcodeDTO
>
listOver10AvailableGroupByPage
(
Map
<
String
,
Object
>
paramMap
)
{
return
this
.
getSqlSession
().
selectList
(
this
.
getStatement
(
"listOver10AvailableGroupByPage"
),
paramMap
);
}
}
}
pcloud-service-book/src/main/java/com/pcloud/book/group/service/impl/WeixinQrcodeServiceImpl.java
View file @
eb0edb98
...
@@ -97,6 +97,13 @@ public class WeixinQrcodeServiceImpl implements WeixinQrcodeService {
...
@@ -97,6 +97,13 @@ public class WeixinQrcodeServiceImpl implements WeixinQrcodeService {
}
}
@Override
@Override
@GetMapping
(
"listOver10AvailableGroupByPage"
)
public
ResponseEntity
<
ResponseDto
<
List
<
BookWxQrcodeDTO
>>>
listOver10AvailableGroupByPage
(
@RequestParam
(
"currentPage"
)
Integer
currentPage
,
@RequestParam
(
"numPerPage"
)
Integer
numPerPage
)
{
return
ResponseHandleUtil
.
toResponse
(
weixinQrcodeBiz
.
listOver10AvailableGroupByPage
(
currentPage
,
numPerPage
));
}
@Override
@GetMapping
(
"inviteNewRobot"
)
@GetMapping
(
"inviteNewRobot"
)
public
void
inviteNewRobot
(
@RequestParam
(
"wxUserId"
)
String
wxUserId
)
{
public
void
inviteNewRobot
(
@RequestParam
(
"wxUserId"
)
String
wxUserId
)
{
weixinQrcodeBiz
.
inviteNewRobot
(
wxUserId
);
weixinQrcodeBiz
.
inviteNewRobot
(
wxUserId
);
...
...
pcloud-service-book/src/main/resources/mapper/group/WeixinQrcode.Mapper.xml
View file @
eb0edb98
...
@@ -238,5 +238,19 @@
...
@@ -238,5 +238,19 @@
LIMIT #{currentPage}, #{numPerPage}
LIMIT #{currentPage}, #{numPerPage}
</select>
</select>
<select
id=
"listOver10AvailableGroupByPage"
parameterType=
"map"
resultType=
"bookWxQrcodeDTO"
>
SELECT
q.weixin_group_id AS weixinGroupId,
q.robot_wx_id AS robotWxId
FROM
`weixin_qrcode` q
LEFT JOIN book_group_qrcode bq ON q.weixin_group_id = bq.weixin_group_id
WHERE
q.use_state = 1
AND bq.user_number
<![CDATA[ > ]]>
10
GROUP BY
q.weixin_group_id
LIMIT #{currentPage}, #{numPerPage}
</select>
</mapper>
</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