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
5fea7b76
Commit
5fea7b76
authored
May 31, 2021
by
李传峰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:[none] 移除资源推荐的异步发起调用代码
parent
678af28e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
42 deletions
+0
-42
BookBizImpl.java
.../main/java/com/pcloud/book/book/biz/impl/BookBizImpl.java
+0
-42
No files found.
pcloud-service-book/src/main/java/com/pcloud/book/book/biz/impl/BookBizImpl.java
View file @
5fea7b76
...
@@ -732,27 +732,6 @@ public class BookBizImpl implements BookBiz {
...
@@ -732,27 +732,6 @@ public class BookBizImpl implements BookBiz {
// 尝试加载ERP单号
// 尝试加载ERP单号
bookSet
.
setErpNumbers
(
bookDto
);
bookSet
.
setErpNumbers
(
bookDto
);
// 异步发起书刊推荐超级作者资源计算
BookDto
finalBookDto
=
bookDto
;
ThreadPoolUtils
.
OTHER_THREAD_POOL
.
execute
(()
->
{
Map
<
String
,
String
>
params
=
MapUtil
.
of
(
"bookName"
,
Optional
.
ofNullable
(
finalBookDto
.
getBookName
()).
orElse
(
""
));
// 教辅类图书 通过年纪、科目、版本、上下册计算
if
(
Objects
.
equals
(
534L
,
finalBookDto
.
getTempletId
()))
{
Map
<
Long
,
String
>
labelMapByIds
=
bookLabelBiz
.
getLabelMapByIds
(
CollUtil
.
toList
(
finalBookDto
.
getGraLabelId
(),
finalBookDto
.
getSubLabelId
(),
finalBookDto
.
getVerLabelId
(),
finalBookDto
.
getVolLabelId
()));
params
.
put
(
"labelName2"
,
Optional
.
ofNullable
(
labelMapByIds
.
get
(
finalBookDto
.
getGraLabelId
())).
orElse
(
""
));
params
.
put
(
"labelName1"
,
Optional
.
ofNullable
(
labelMapByIds
.
get
(
finalBookDto
.
getSubLabelId
())).
orElse
(
""
));
params
.
put
(
"labelName3"
,
Optional
.
ofNullable
(
labelMapByIds
.
get
(
finalBookDto
.
getVerLabelId
())).
orElse
(
""
));
params
.
put
(
"labelName4"
,
Optional
.
ofNullable
(
labelMapByIds
.
get
(
finalBookDto
.
getVolLabelId
())).
orElse
(
""
));
}
else
{
// 其他图书通过 专业、深度、目的 计算
params
.
put
(
"labelName1"
,
Optional
.
ofNullable
(
finalBookDto
.
getProLabelName
()).
orElse
(
""
));
params
.
put
(
"labelName2"
,
Optional
.
ofNullable
(
finalBookDto
.
getDepLabelName
()).
orElse
(
""
));
params
.
put
(
"labelName3"
,
Optional
.
ofNullable
(
finalBookDto
.
getPurLabelName
()).
orElse
(
""
));
params
.
put
(
"labelName4"
,
""
);
}
HttpUtil
.
post
(
"http://192.168.92.169:8888/getMatchResourceIds"
,
JSONObject
.
toJSONString
(
params
));
});
return
bookDto
;
return
bookDto
;
}
}
...
@@ -1739,27 +1718,6 @@ public class BookBizImpl implements BookBiz {
...
@@ -1739,27 +1718,6 @@ public class BookBizImpl implements BookBiz {
LOGGER
.
info
(
"修改图书基本信息与类型[END]"
);
LOGGER
.
info
(
"修改图书基本信息与类型[END]"
);
//更新超级搜索es
//更新超级搜索es
searchProducer
.
updateBook
(
book
);
searchProducer
.
updateBook
(
book
);
// 异步发起书刊推荐超级作者资源计算
ThreadPoolUtils
.
OTHER_THREAD_POOL
.
execute
(()
->
{
Map
<
String
,
String
>
params
=
MapUtil
.
of
(
"bookName"
,
Optional
.
ofNullable
(
book
.
getBookName
()).
orElse
(
""
));
// 教辅类图书 通过年纪、科目、版本、上下册计算
if
(
Objects
.
equals
(
book
.
getTempletId
(),
534L
))
{
Map
<
Long
,
String
>
labelMapByIds
=
bookLabelBiz
.
getLabelMapByIds
(
CollUtil
.
toList
(
book
.
getGraLabelId
(),
book
.
getSubLabelId
(),
book
.
getVerLabelId
(),
book
.
getVolLabelId
()));
params
.
put
(
"labelName2"
,
Optional
.
ofNullable
(
labelMapByIds
.
get
(
book
.
getGraLabelId
())).
orElse
(
""
));
params
.
put
(
"labelName1"
,
Optional
.
ofNullable
(
labelMapByIds
.
get
(
book
.
getSubLabelId
())).
orElse
(
""
));
params
.
put
(
"labelName3"
,
Optional
.
ofNullable
(
labelMapByIds
.
get
(
book
.
getVerLabelId
())).
orElse
(
""
));
params
.
put
(
"labelName4"
,
Optional
.
ofNullable
(
labelMapByIds
.
get
(
book
.
getVolLabelId
())).
orElse
(
""
));
}
else
{
// 其他图书通过 专业、深度、目的 计算
Map
<
Long
,
String
>
labelName
=
labelConsr
.
getLabelName
(
CollUtil
.
toList
(
book
.
getProLabelId
(),
book
.
getDepLabelId
(),
book
.
getPurLabelId
()));
params
.
put
(
"labelName1"
,
Optional
.
ofNullable
(
labelName
.
get
(
bookDto
.
getProLabelId
())).
orElse
(
""
));
params
.
put
(
"labelName2"
,
Optional
.
ofNullable
(
labelName
.
get
(
bookDto
.
getDepLabelId
())).
orElse
(
""
));
params
.
put
(
"labelName3"
,
Optional
.
ofNullable
(
labelName
.
get
(
bookDto
.
getPurLabelId
())).
orElse
(
""
));
params
.
put
(
"labelName4"
,
""
);
}
HttpUtil
.
post
(
"http://192.168.92.169:8888/getMatchResourceIds"
,
JSONObject
.
toJSONString
(
params
));
});
}
}
/**
/**
...
...
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