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
df28db26
Commit
df28db26
authored
Nov 07, 2019
by
阮思源
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加关键词相应内容字数限制
parent
a95b689d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
2 deletions
+14
-2
BookKeywordBizImpl.java
...com/pcloud/book/keywords/biz/impl/BookKeywordBizImpl.java
+4
-1
GroupQrcode.Mapper.xml
...ok/src/main/resources/mapper/group/GroupQrcode.Mapper.xml
+10
-1
No files found.
pcloud-service-book/src/main/java/com/pcloud/book/keywords/biz/impl/BookKeywordBizImpl.java
View file @
df28db26
...
@@ -161,6 +161,9 @@ public class BookKeywordBizImpl implements BookKeywordBiz {
...
@@ -161,6 +161,9 @@ public class BookKeywordBizImpl implements BookKeywordBiz {
if
(
null
==
setKeywordVO
||
setKeywordVO
.
check
())
{
if
(
null
==
setKeywordVO
||
setKeywordVO
.
check
())
{
throw
new
BookBizException
(
BookBizException
.
PARAM_IS_NULL
,
"应用/作品信息为空"
);
throw
new
BookBizException
(
BookBizException
.
PARAM_IS_NULL
,
"应用/作品信息为空"
);
}
}
if
(
setKeywordVO
.
getContent
()
!=
null
&&
setKeywordVO
.
getContent
().
length
()
>
1000
)
{
throw
new
BookBizException
(
BookBizException
.
PARAM_IS_NULL
,
"回复内容超出限制!"
);
}
if
(
setKeywordVO
.
getClassifyId
()
==
null
)
{
if
(
setKeywordVO
.
getClassifyId
()
==
null
)
{
setKeywordVO
.
setClassifyId
(
0L
);
setKeywordVO
.
setClassifyId
(
0L
);
}
}
...
@@ -513,7 +516,7 @@ public class BookKeywordBizImpl implements BookKeywordBiz {
...
@@ -513,7 +516,7 @@ public class BookKeywordBizImpl implements BookKeywordBiz {
String
bookName
=
bookGroupDTO
.
getBookName
();
String
bookName
=
bookGroupDTO
.
getBookName
();
if
(!
ListUtils
.
isEmpty
(
bookGroupServeList
))
{
if
(!
ListUtils
.
isEmpty
(
bookGroupServeList
))
{
if
(!
StringUtil
.
isEmpty
(
bookName
))
{
if
(!
StringUtil
.
isEmpty
(
bookName
))
{
text
=
text
+
"《"
+
bookName
+
"》"
+
"配有以下资源服务,
戳
链接立即获取:\n"
;
text
=
text
+
"《"
+
bookName
+
"》"
+
"配有以下资源服务,
点击
链接立即获取:\n"
;
}
}
int
i
=
1
;
int
i
=
1
;
for
(
BookGroupServe
bookGroupServe
:
bookGroupServeList
)
{
for
(
BookGroupServe
bookGroupServe
:
bookGroupServeList
)
{
...
...
pcloud-service-book/src/main/resources/mapper/group/GroupQrcode.Mapper.xml
View file @
df28db26
...
@@ -737,7 +737,16 @@
...
@@ -737,7 +737,16 @@
</select>
</select>
<select
id=
"getWechatGroupInfoMap"
parameterType=
"list"
resultType=
"com.pcloud.book.group.dto.GroupQrcodeInfo4Advertising"
>
<select
id=
"getWechatGroupInfoMap"
parameterType=
"list"
resultType=
"com.pcloud.book.group.dto.GroupQrcodeInfo4Advertising"
>
select id groupQrcodeId, group_name groupName, qrcode_url qrcodeUrl from book_group_qrcode where id in
SELECT
t.id groupQrcodeId,
t.group_name groupName,
t.qrcode_url qrcodeUrl,
bg.join_group_type joinGroupType
FROM
book_group_qrcode t
INNER JOIN book_group_classify t1 ON t.classify_id = t1.id
INNER JOIN book_group bg ON t1.book_group_id = bg.id
where t.id in
<foreach
collection=
"list"
separator=
","
open=
"("
close=
")"
item=
"id"
>
<foreach
collection=
"list"
separator=
","
open=
"("
close=
")"
item=
"id"
>
#{id}
#{id}
</foreach>
</foreach>
...
...
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