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
c6afc4cb
Commit
c6afc4cb
authored
Sep 16, 2019
by
阮思源
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
校验群名称不能包含#
parent
bbc4a447
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
BookGroupClassifyBizImpl.java
.../pcloud/book/group/biz/impl/BookGroupClassifyBizImpl.java
+3
-3
No files found.
pcloud-service-book/src/main/java/com/pcloud/book/group/biz/impl/BookGroupClassifyBizImpl.java
View file @
c6afc4cb
...
@@ -170,9 +170,6 @@ public class BookGroupClassifyBizImpl implements BookGroupClassifyBiz {
...
@@ -170,9 +170,6 @@ public class BookGroupClassifyBizImpl implements BookGroupClassifyBiz {
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
void
addClassify
(
AddClassifyVO
addClassifyVO
,
Long
partyId
)
{
public
void
addClassify
(
AddClassifyVO
addClassifyVO
,
Long
partyId
)
{
checkClassifyIsExist
(
addClassifyVO
.
getClassify
(),
null
,
addClassifyVO
.
getBookGroupId
());
checkClassifyIsExist
(
addClassifyVO
.
getClassify
(),
null
,
addClassifyVO
.
getBookGroupId
());
if
(
addClassifyVO
.
getClassify
()
!=
null
&&
addClassifyVO
.
getClassify
().
contains
(
"#"
))
{
throw
new
BookBizException
(
BookBizException
.
ERROR
,
"名称不能包含#!"
);
}
final
Map
<
Long
,
BookGroupStatisticDTO
>
statistic
=
bookGroupClassifyBiz
.
getBookGroupStatistic
(
Collections
.
singletonList
(
addClassifyVO
.
getBookGroupId
()));
final
Map
<
Long
,
BookGroupStatisticDTO
>
statistic
=
bookGroupClassifyBiz
.
getBookGroupStatistic
(
Collections
.
singletonList
(
addClassifyVO
.
getBookGroupId
()));
Integer
classifyCount
=
0
;
Integer
classifyCount
=
0
;
if
(!
CollectionUtils
.
isEmpty
(
statistic
)
&&
null
!=
statistic
.
get
(
addClassifyVO
.
getBookGroupId
()))
{
if
(!
CollectionUtils
.
isEmpty
(
statistic
)
&&
null
!=
statistic
.
get
(
addClassifyVO
.
getBookGroupId
()))
{
...
@@ -309,6 +306,9 @@ public class BookGroupClassifyBizImpl implements BookGroupClassifyBiz {
...
@@ -309,6 +306,9 @@ public class BookGroupClassifyBizImpl implements BookGroupClassifyBiz {
if
(
isHaveThisClassify
)
{
if
(
isHaveThisClassify
)
{
throw
new
BookBizException
(
BookBizException
.
ERROR
,
"已存在该分类!"
);
throw
new
BookBizException
(
BookBizException
.
ERROR
,
"已存在该分类!"
);
}
}
if
(
classify
!=
null
&&
classify
.
contains
(
"#"
))
{
throw
new
BookBizException
(
BookBizException
.
ERROR
,
"名称不能包含#!"
);
}
}
}
@ParamLog
(
"获取社群下有多少分类"
)
@ParamLog
(
"获取社群下有多少分类"
)
...
...
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