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
e1b475e8
Commit
e1b475e8
authored
Mar 12, 2020
by
裴大威
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'opti-getSkillDetail' into 'master'
optimize getSkillDetail See merge request rays/pcloud-book!545
parents
a8c4f034
76caf5f5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
SelfRobotKeywordBizImpl.java
...cloud/book/keywords/biz/impl/SelfRobotKeywordBizImpl.java
+8
-0
No files found.
pcloud-service-book/src/main/java/com/pcloud/book/keywords/biz/impl/SelfRobotKeywordBizImpl.java
View file @
e1b475e8
...
@@ -88,6 +88,8 @@ import java.util.Date;
...
@@ -88,6 +88,8 @@ import java.util.Date;
import
java.util.HashMap
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Map
;
import
java.util.concurrent.ExecutorService
;
import
java.util.concurrent.Executors
;
import
java.util.stream.Collectors
;
import
java.util.stream.Collectors
;
/**
/**
...
@@ -154,6 +156,8 @@ public class SelfRobotKeywordBizImpl implements SelfRobotKeywordBiz {
...
@@ -154,6 +156,8 @@ public class SelfRobotKeywordBizImpl implements SelfRobotKeywordBiz {
@Autowired
@Autowired
private
PcloudSkillRecordDao
pcloudSkillRecordDao
;
private
PcloudSkillRecordDao
pcloudSkillRecordDao
;
private
static
final
ExecutorService
EXECUTOR_SERVICE
=
Executors
.
newFixedThreadPool
(
5
);
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Transactional
(
rollbackFor
=
Exception
.
class
)
...
@@ -686,6 +690,9 @@ public class SelfRobotKeywordBizImpl implements SelfRobotKeywordBiz {
...
@@ -686,6 +690,9 @@ public class SelfRobotKeywordBizImpl implements SelfRobotKeywordBiz {
}
}
}
}
//异步插入记录
EXECUTOR_SERVICE
.
execute
(()
->{
//新增技能获取记录
//新增技能获取记录
PcloudSkillRecord
pcloudSkillRecord
=
pcloudSkillRecordDao
.
getBySkillIdAndWxId
(
skillId
,
wxUserId
);
PcloudSkillRecord
pcloudSkillRecord
=
pcloudSkillRecordDao
.
getBySkillIdAndWxId
(
skillId
,
wxUserId
);
if
(
null
==
pcloudSkillRecord
)
{
if
(
null
==
pcloudSkillRecord
)
{
...
@@ -729,6 +736,7 @@ public class SelfRobotKeywordBizImpl implements SelfRobotKeywordBiz {
...
@@ -729,6 +736,7 @@ public class SelfRobotKeywordBizImpl implements SelfRobotKeywordBiz {
subRemind
.
setSkillId
(
Long
.
valueOf
(
skillId
));
subRemind
.
setSkillId
(
Long
.
valueOf
(
skillId
));
pcloudSubRemindDao
.
insert
(
subRemind
);
pcloudSubRemindDao
.
insert
(
subRemind
);
}
}
});
if
(
null
!=
robotSkillDetail
)
{
if
(
null
!=
robotSkillDetail
)
{
String
filterStr
=
StringUtilParent
.
replaceHtml
(
robotSkillDetail
.
getRelSkillIntroduce
());
String
filterStr
=
StringUtilParent
.
replaceHtml
(
robotSkillDetail
.
getRelSkillIntroduce
());
...
...
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