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
0afbad8e
Commit
0afbad8e
authored
Jan 30, 2020
by
裴大威
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1002250特殊出版社配置小号
parent
cc1c79fa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
20 deletions
+29
-20
BookGroupBizImpl.java
...java/com/pcloud/book/group/biz/impl/BookGroupBizImpl.java
+29
-20
No files found.
pcloud-service-book/src/main/java/com/pcloud/book/group/biz/impl/BookGroupBizImpl.java
View file @
0afbad8e
...
...
@@ -1460,24 +1460,6 @@ public class BookGroupBizImpl implements BookGroupBiz {
TempletRelevance
templetRelevance
=
templetRelevanceDao
.
getByTempletId
(
templetId
);
LOGGER
.
info
(
"根据分类id获取大类templetRelevance"
+
templetRelevance
.
toString
());
Integer
largeTemplet
=
templetRelevance
.
getLargeTemplet
();
List
<
Long
>
labelIds
=
new
ArrayList
<>();
if
(
null
!=
bookGroupDTO
.
getProLabelId
())
{
labelIds
.
add
(
bookGroupDTO
.
getProLabelId
());
}
if
(
null
!=
bookGroupDTO
.
getDepLabelId
())
{
labelIds
.
add
(
bookGroupDTO
.
getDepLabelId
());
}
if
(!
ListUtils
.
isEmpty
(
labelIds
))
{
Map
<
Long
,
String
>
labelMap
=
ResponseHandleUtil
.
parseMap
(
labelService
.
getLabelName
(
labelIds
),
Long
.
class
,
String
.
class
);
if
(!
MapUtils
.
isEmpty
(
labelMap
))
{
if
(
null
!=
bookGroupDTO
.
getProLabelId
()
&&
labelMap
.
containsKey
(
bookGroupDTO
.
getProLabelId
()))
{
bookGroupDTO
.
setProLabelName
(
labelMap
.
get
(
bookGroupDTO
.
getProLabelId
()));
}
if
(
null
!=
bookGroupDTO
.
getDepLabelId
()
&&
labelMap
.
containsKey
(
bookGroupDTO
.
getDepLabelId
()))
{
bookGroupDTO
.
setDepLabelName
(
labelMap
.
get
(
bookGroupDTO
.
getDepLabelId
()));
}
}
}
Long
agentId
=
bookGroupDTO
.
getAgentId
();
//根据bookGroupId获取机器人
AvailableRobotParamDTO
availableRobotParamDTO
=
new
AvailableRobotParamDTO
();
...
...
@@ -1485,13 +1467,40 @@ public class BookGroupBizImpl implements BookGroupBiz {
availableRobotParamDTO
.
setBookGroupId
(
bookGroupId
);
availableRobotParamDTO
.
setWechatUserId
(
wechatUserId
);
availableRobotParamDTO
.
setLargeTemplet
(
largeTemplet
);
availableRobotParamDTO
.
setGrade
(
bookGroupDTO
.
getDepLabelName
());
availableRobotParamDTO
.
setSubject
(
bookGroupDTO
.
getProLabelName
());
availableRobotParamDTO
.
setSpecialAgent
(
bookGroupDTO
.
getBelongSpecialAgent
());
if
(
JoinGroupTypeEnum
.
ROBOT
.
getCode
().
equals
(
bookGroupDTO
.
getJoinGroupType
())){
List
<
Long
>
labelIds
=
new
ArrayList
<>();
if
(
null
!=
bookGroupDTO
.
getProLabelId
())
{
labelIds
.
add
(
bookGroupDTO
.
getProLabelId
());
}
if
(
null
!=
bookGroupDTO
.
getDepLabelId
())
{
labelIds
.
add
(
bookGroupDTO
.
getDepLabelId
());
}
if
(!
ListUtils
.
isEmpty
(
labelIds
))
{
Map
<
Long
,
String
>
labelMap
=
ResponseHandleUtil
.
parseMap
(
labelService
.
getLabelName
(
labelIds
),
Long
.
class
,
String
.
class
);
if
(!
MapUtils
.
isEmpty
(
labelMap
))
{
if
(
null
!=
bookGroupDTO
.
getProLabelId
()
&&
labelMap
.
containsKey
(
bookGroupDTO
.
getProLabelId
()))
{
availableRobotParamDTO
.
setSubject
(
labelMap
.
get
(
bookGroupDTO
.
getProLabelId
()));
}
if
(
null
!=
bookGroupDTO
.
getDepLabelId
()
&&
labelMap
.
containsKey
(
bookGroupDTO
.
getDepLabelId
()))
{
availableRobotParamDTO
.
setGrade
(
labelMap
.
get
(
bookGroupDTO
.
getDepLabelId
()));
}
}
}
availableRobotParamDTO
.
setRobotType
(
SelfRobotTypeEnum
.
version_origin
.
getCode
());
}
if
(
JoinGroupTypeEnum
.
AI_ROBOT
.
getCode
().
equals
(
bookGroupDTO
.
getJoinGroupType
())){
Long
subLabelId
=
bookDto
.
getSubLabelId
();
Long
graLabelId
=
bookDto
.
getGraLabelId
();
if
(
subLabelId
!=
null
&&
graLabelId
!=
null
){
Map
<
Long
,
BookLabel
>
bookLabelMap
=
bookLabelDao
.
getMapByIds
(
Arrays
.
asList
(
subLabelId
,
graLabelId
));
if
(
bookLabelMap
.
get
(
graLabelId
)!=
null
){
availableRobotParamDTO
.
setGrade
(
bookLabelMap
.
get
(
graLabelId
).
getName
());
}
if
(
bookLabelMap
.
get
(
subLabelId
)!=
null
){
availableRobotParamDTO
.
setSubject
(
bookLabelMap
.
get
(
subLabelId
).
getName
());
}
}
availableRobotParamDTO
.
setRobotType
(
SelfRobotTypeEnum
.
version1
.
getCode
());
}
SelfRobotDTO
selfRobotDTO
=
wechatGroupConsr
.
getAvailableRobotByBookGroup
(
availableRobotParamDTO
);
...
...
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