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
25ae5c3c
Commit
25ae5c3c
authored
Aug 15, 2019
by
裴大威
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix 1012452
parent
fa2242a7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
7 deletions
+15
-7
BookGroupClassifyBizImpl.java
.../pcloud/book/group/biz/impl/BookGroupClassifyBizImpl.java
+10
-2
GroupQrcodeBizImpl.java
...va/com/pcloud/book/group/biz/impl/GroupQrcodeBizImpl.java
+3
-3
UpdateWXGroupNameListener.java
...a/com/pcloud/book/mq/topic/UpdateWXGroupNameListener.java
+2
-2
No files found.
pcloud-service-book/src/main/java/com/pcloud/book/group/biz/impl/BookGroupClassifyBizImpl.java
View file @
25ae5c3c
...
@@ -179,7 +179,6 @@ public class BookGroupClassifyBizImpl implements BookGroupClassifyBiz {
...
@@ -179,7 +179,6 @@ public class BookGroupClassifyBizImpl implements BookGroupClassifyBiz {
if
(
qrcodeNameAndProId
==
null
)
{
if
(
qrcodeNameAndProId
==
null
)
{
throw
new
BookBizException
(
BookBizException
.
PARAM_IS_NULL
,
"请先填写社群码信息!"
);
throw
new
BookBizException
(
BookBizException
.
PARAM_IS_NULL
,
"请先填写社群码信息!"
);
}
}
String
groupName
=
qrcodeNameAndProId
.
getGroupQrcodeName
();
bookGroupClassify
.
setProductId
(
qrcodeNameAndProId
.
getProductId
());
bookGroupClassify
.
setProductId
(
qrcodeNameAndProId
.
getProductId
());
bookGroupClassify
.
setCreateUser
(
partyId
);
bookGroupClassify
.
setCreateUser
(
partyId
);
Integer
rank
=
bookGroupClassifyDao
.
getMaxRank
(
addClassifyVO
.
getBookGroupId
());
Integer
rank
=
bookGroupClassifyDao
.
getMaxRank
(
addClassifyVO
.
getBookGroupId
());
...
@@ -201,7 +200,16 @@ public class BookGroupClassifyBizImpl implements BookGroupClassifyBiz {
...
@@ -201,7 +200,16 @@ public class BookGroupClassifyBizImpl implements BookGroupClassifyBiz {
groupQrcode
.
setWeixinQrcodeId
(
oneQrcode
.
getId
());
groupQrcode
.
setWeixinQrcodeId
(
oneQrcode
.
getId
());
groupQrcode
.
setUserNumber
(
oneQrcode
.
getUserNumber
());
groupQrcode
.
setUserNumber
(
oneQrcode
.
getUserNumber
());
groupQrcode
.
setGroupSeq
(
1
);
groupQrcode
.
setGroupSeq
(
1
);
groupQrcode
.
setGroupName
(
groupName
+
addClassifyVO
.
getClassify
()
+
"1群"
);
// 群长度超过16部分会被截取,导致群名称重复
final
String
s
=
"1群"
;
String
groupName
=
qrcodeNameAndProId
.
getGroupQrcodeName
()
+
addClassifyVO
.
getClassify
()
+
s
;
if
(
groupName
.
length
()
>
15
)
{
groupName
=
addClassifyVO
.
getClassify
()
+
s
;
if
(
groupName
.
length
()
>
15
)
{
groupName
=
addClassifyVO
.
getClassify
().
substring
(
0
,
16
-
s
.
length
())
+
s
;
}
}
groupQrcode
.
setGroupName
(
groupName
);
groupQrcode
.
setClassifyId
(
bookGroupClassify
.
getId
());
groupQrcode
.
setClassifyId
(
bookGroupClassify
.
getId
());
groupQrcode
.
setQrcodeHeadUrl
(
readerConsr
.
getNineHeadUrl
());
groupQrcode
.
setQrcodeHeadUrl
(
readerConsr
.
getNineHeadUrl
());
groupQrcodeBiz
.
insert
(
groupQrcode
);
groupQrcodeBiz
.
insert
(
groupQrcode
);
...
...
pcloud-service-book/src/main/java/com/pcloud/book/group/biz/impl/GroupQrcodeBizImpl.java
View file @
25ae5c3c
...
@@ -492,11 +492,11 @@ public class GroupQrcodeBizImpl implements GroupQrcodeBiz {
...
@@ -492,11 +492,11 @@ public class GroupQrcodeBizImpl implements GroupQrcodeBiz {
Integer
maxSeq
=
groupNameAndMaxSeqDTO
.
getMaxSeq
()
+
1
;
Integer
maxSeq
=
groupNameAndMaxSeqDTO
.
getMaxSeq
()
+
1
;
String
groupName
=
groupNameAndMaxSeqDTO
.
getGroupQrcodeName
()
+
groupNameAndMaxSeqDTO
.
getClassify
()
+
maxSeq
+
"群"
;
String
groupName
=
groupNameAndMaxSeqDTO
.
getGroupQrcodeName
()
+
groupNameAndMaxSeqDTO
.
getClassify
()
+
maxSeq
+
"群"
;
// 群长度超过16部分会被截取,导致群名称重复
// 群长度超过16部分会被截取,导致群名称重复
if
(
groupName
.
length
()
>
1
6
)
{
if
(
groupName
.
length
()
>
1
5
)
{
final
String
s
=
maxSeq
+
"群"
;
final
String
s
=
maxSeq
+
"群"
;
groupName
=
groupNameAndMaxSeqDTO
.
getClassify
()
+
s
;
groupName
=
groupNameAndMaxSeqDTO
.
getClassify
()
+
s
;
if
(
groupName
.
length
()
>
1
6
)
{
if
(
groupName
.
length
()
>
1
5
)
{
groupName
=
groupNameAndMaxSeqDTO
.
getClassify
().
substring
(
0
,
1
6
-
s
.
length
())
+
s
;
groupName
=
groupNameAndMaxSeqDTO
.
getClassify
().
substring
(
0
,
1
5
-
s
.
length
())
+
s
;
}
}
}
}
GroupQrcode
groupQrcode
=
new
GroupQrcode
();
GroupQrcode
groupQrcode
=
new
GroupQrcode
();
...
...
pcloud-service-book/src/main/java/com/pcloud/book/mq/topic/UpdateWXGroupNameListener.java
View file @
25ae5c3c
...
@@ -51,8 +51,8 @@ public class UpdateWXGroupNameListener {
...
@@ -51,8 +51,8 @@ public class UpdateWXGroupNameListener {
}
}
String
groupName
=
groupQrcode
.
getGroupName
();
String
groupName
=
groupQrcode
.
getGroupName
();
// 如果数据库微信群名称超过16,就截断,然后重新设置数据库的名称,因为wxgroup那边设置的时候截断了
// 如果数据库微信群名称超过16,就截断,然后重新设置数据库的名称,因为wxgroup那边设置的时候截断了
if
(
groupName
.
length
()
>
1
6
)
{
if
(
groupName
.
length
()
>
1
5
)
{
groupName
=
groupName
.
substring
(
0
,
1
6
);
groupName
=
groupName
.
substring
(
0
,
1
5
);
groupQrcodeDao
.
updateGroupName
(
groupQrcode
.
getId
(),
groupName
);
groupQrcodeDao
.
updateGroupName
(
groupQrcode
.
getId
(),
groupName
);
}
}
if
(!
groupNameDTO
.
getNewGroupName
().
equals
(
groupName
))
{
if
(!
groupNameDTO
.
getNewGroupName
().
equals
(
groupName
))
{
...
...
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