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
04a65d01
Commit
04a65d01
authored
Sep 26, 2019
by
阮思源
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改下枚举
parent
aab99556
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
5 deletions
+13
-5
BookGroupBizImpl.java
...java/com/pcloud/book/group/biz/impl/BookGroupBizImpl.java
+2
-2
JoinGroupTypeEnum.java
...n/java/com/pcloud/book/group/enums/JoinGroupTypeEnum.java
+11
-3
No files found.
pcloud-service-book/src/main/java/com/pcloud/book/group/biz/impl/BookGroupBizImpl.java
View file @
04a65d01
...
...
@@ -459,12 +459,12 @@ public class BookGroupBizImpl implements BookGroupBiz {
||
null
==
bookGroup
.
getDepLabelId
()
||
null
==
bookGroup
.
getPurLabelId
()
||
bookGroup
.
getJoinGroupType
()
==
null
)
{
throw
new
BookBizException
(
BookBizException
.
PARAM_IS_ERROR
,
"参数有误!"
);
}
if
(
JoinGroupTypeEnum
.
GROUP_QRCODE
.
code
.
equals
(
bookGroup
.
getJoinGroupType
())
if
(
JoinGroupTypeEnum
.
GROUP_QRCODE
.
getCode
()
.
equals
(
bookGroup
.
getJoinGroupType
())
&&
(
StringUtil
.
isEmpty
(
bookGroup
.
getJoinTitle
())
||
StringUtil
.
isEmpty
(
bookGroup
.
getJoinSlogan
())))
{
throw
new
BookBizException
(
BookBizException
.
PARAM_IS_ERROR
,
"参数有误!"
);
}
if
(
JoinGroupTypeEnum
.
ROBOT
.
code
.
equals
(
bookGroup
.
getJoinGroupType
())
if
(
JoinGroupTypeEnum
.
ROBOT
.
getCode
()
.
equals
(
bookGroup
.
getJoinGroupType
())
&&
(
bookGroup
.
getIsInviteGroup
()
==
null
||
StringUtil
.
isEmpty
(
bookGroup
.
getAddFriendGuide
())
||
StringUtil
.
isEmpty
(
bookGroup
.
getCustomerServiceName
())))
{
...
...
pcloud-service-book/src/main/java/com/pcloud/book/group/enums/JoinGroupTypeEnum.java
View file @
04a65d01
...
...
@@ -16,11 +16,19 @@ public enum JoinGroupTypeEnum {
*/
ROBOT
(
2
,
"客服机器人"
);
p
ublic
final
Integer
code
;
p
rivate
final
Integer
code
;
p
ublic
final
String
name
;
p
rivate
final
String
name
;
JoinGroupTypeEnum
(
Integer
code
,
String
name
)
{
public
Integer
getCode
()
{
return
code
;
}
public
String
getName
()
{
return
name
;
}
private
JoinGroupTypeEnum
(
Integer
code
,
String
name
)
{
this
.
code
=
code
;
this
.
name
=
name
;
}
...
...
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