Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
brandkbs2
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
shenjunjie
brandkbs2
Commits
9a1879be
Commit
9a1879be
authored
Nov 17, 2022
by
shenjunjie
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature' into 'dev'
2022/11/17 10:40 See merge request
!92
parents
ab517515
36b35ceb
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
src/main/java/com/zhiwei/brandkbs2/service/impl/MarkDataServiceImpl.java
+1
-1
src/main/java/com/zhiwei/brandkbs2/service/impl/MarkFlowServiceImpl.java
+1
-1
No files found.
src/main/java/com/zhiwei/brandkbs2/service/impl/MarkDataServiceImpl.java
View file @
9a1879be
...
@@ -1788,7 +1788,7 @@ public class MarkDataServiceImpl implements MarkDataService {
...
@@ -1788,7 +1788,7 @@ public class MarkDataServiceImpl implements MarkDataService {
emotionMap
.
put
(
ChannelEmotion
.
NEUTRAL
.
getState
(),
new
AtomicInteger
());
emotionMap
.
put
(
ChannelEmotion
.
NEUTRAL
.
getState
(),
new
AtomicInteger
());
for
(
SearchResponse
searchResponse
:
searchResponses
)
{
for
(
SearchResponse
searchResponse
:
searchResponses
)
{
for
(
SearchHit
hit
:
searchResponse
.
getHits
().
getHits
())
{
for
(
SearchHit
hit
:
searchResponse
.
getHits
().
getHits
())
{
Object
emotionObj
=
Tools
.
getBrandkbsHitMap
(
hit
.
getSourceAsMap
(),
Tools
.
concat
(
projectId
,
linkedGroupId
,
"0"
)).
get
(
"channel_emotion"
);
Object
emotionObj
=
Tools
.
getBrandkbsHitMap
(
hit
.
getSourceAsMap
(),
Tools
.
concat
(
projectId
,
"0"
)).
get
(
"channel_emotion"
);
if
(
null
!=
emotionObj
)
{
if
(
null
!=
emotionObj
)
{
int
channelEmotion
=
Integer
.
parseInt
(
String
.
valueOf
(
emotionObj
));
int
channelEmotion
=
Integer
.
parseInt
(
String
.
valueOf
(
emotionObj
));
Optional
.
ofNullable
(
emotionMap
.
get
(
channelEmotion
)).
ifPresent
(
AtomicInteger:
:
getAndIncrement
);
Optional
.
ofNullable
(
emotionMap
.
get
(
channelEmotion
)).
ifPresent
(
AtomicInteger:
:
getAndIncrement
);
...
...
src/main/java/com/zhiwei/brandkbs2/service/impl/MarkFlowServiceImpl.java
View file @
9a1879be
...
@@ -136,7 +136,7 @@ public class MarkFlowServiceImpl implements MarkFlowService {
...
@@ -136,7 +136,7 @@ public class MarkFlowServiceImpl implements MarkFlowService {
// sourceDetails.put("channelEmotion", ChannelEmotion.getNameFromState(hitMap.get("channel_emotion")));
// sourceDetails.put("channelEmotion", ChannelEmotion.getNameFromState(hitMap.get("channel_emotion")));
// }
// }
// }
// }
JSONObject
brandkbsHitJson
=
Tools
.
getBrandkbsHitMap
(
tJson
,
Tools
.
concat
(
projectId
,
linkedGroupId
,
contendId
));
JSONObject
brandkbsHitJson
=
Tools
.
getBrandkbsHitMap
(
tJson
,
Tools
.
concat
(
projectId
,
contendId
));
if
(
null
!=
brandkbsHitJson
.
get
(
"channel_emotion"
))
{
if
(
null
!=
brandkbsHitJson
.
get
(
"channel_emotion"
))
{
sourceDetails
.
put
(
"channelEmotion"
,
ChannelEmotion
.
getNameFromState
(
brandkbsHitJson
.
getIntValue
(
"channel_emotion"
)));
sourceDetails
.
put
(
"channelEmotion"
,
ChannelEmotion
.
getNameFromState
(
brandkbsHitJson
.
getIntValue
(
"channel_emotion"
)));
}
}
...
...
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