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
2c396251
Commit
2c396251
authored
Nov 15, 2022
by
shenjunjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
去除tags里附带情感倾向值
parent
88c5fad4
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
src/main/java/com/zhiwei/brandkbs2/pojo/external/BaseMapCompound.java
+1
-1
src/main/java/com/zhiwei/brandkbs2/service/impl/ProjectWarnServiceImpl.java
+2
-2
No files found.
src/main/java/com/zhiwei/brandkbs2/pojo/external/BaseMapCompound.java
View file @
2c396251
...
@@ -31,7 +31,7 @@ public class BaseMapCompound {
...
@@ -31,7 +31,7 @@ public class BaseMapCompound {
public
static
BaseMapCompound
createFromBaseMap
(
BaseMap
baseMap
,
String
projectId
)
{
public
static
BaseMapCompound
createFromBaseMap
(
BaseMap
baseMap
,
String
projectId
)
{
List
<
String
>
tagList
=
new
ArrayList
<>();
List
<
String
>
tagList
=
new
ArrayList
<>();
// 情感倾向
// 情感倾向
tagList
.
add
(
baseMap
.
getEmotion
());
//
tagList.add(baseMap.getEmotion());
// 媒体类型
// 媒体类型
String
mediaType
=
GlobalPojo
.
getMediaType
(
projectId
,
baseMap
.
getPlatform
(),
baseMap
.
getSource
());
String
mediaType
=
GlobalPojo
.
getMediaType
(
projectId
,
baseMap
.
getPlatform
(),
baseMap
.
getSource
());
if
(
null
!=
mediaType
)
{
if
(
null
!=
mediaType
)
{
...
...
src/main/java/com/zhiwei/brandkbs2/service/impl/ProjectWarnServiceImpl.java
View file @
2c396251
...
@@ -225,7 +225,7 @@ public class ProjectWarnServiceImpl implements ProjectWarnService {
...
@@ -225,7 +225,7 @@ public class ProjectWarnServiceImpl implements ProjectWarnService {
// 如果有竞品
// 如果有竞品
if
(
CollectionUtils
.
isNotEmpty
(
config
.
getContends
()))
{
if
(
CollectionUtils
.
isNotEmpty
(
config
.
getContends
()))
{
dataType
.
append
(
","
);
dataType
.
append
(
","
);
config
.
getContends
().
forEach
(
contend
->
dataType
.
append
(
contend
).
append
(
" "
));
config
.
getContends
().
forEach
(
contend
->
dataType
.
append
(
projectService
.
getProjectByContendId
(
project
.
getId
(),
contend
).
getBrandName
()
).
append
(
" "
));
dataType
.
append
(
"(竞品)"
);
dataType
.
append
(
"(竞品)"
);
}
}
String
key2
=
key2Header
+
dataType
;
String
key2
=
key2Header
+
dataType
;
...
@@ -528,7 +528,7 @@ public class ProjectWarnServiceImpl implements ProjectWarnService {
...
@@ -528,7 +528,7 @@ public class ProjectWarnServiceImpl implements ProjectWarnService {
private
List
<
BaseMap
>
duplicateBaseMapList
(
List
<
BaseMap
>
datas
)
{
private
List
<
BaseMap
>
duplicateBaseMapList
(
List
<
BaseMap
>
datas
)
{
Map
<
String
,
BaseMap
>
duplicateMap
=
new
LinkedHashMap
<>();
Map
<
String
,
BaseMap
>
duplicateMap
=
new
LinkedHashMap
<>();
for
(
BaseMap
data
:
datas
)
{
for
(
BaseMap
data
:
datas
)
{
String
key
=
data
.
getTitleNullOptionalContent
(
);
String
key
=
Tools
.
filterSpecialCharacter
(
data
.
getTitleNullOptionalContent
()
);
BaseMap
newValue
;
BaseMap
newValue
;
if
(
duplicateMap
.
containsKey
(
key
))
{
if
(
duplicateMap
.
containsKey
(
key
))
{
BaseMap
oldValue
=
duplicateMap
.
get
(
key
);
BaseMap
oldValue
=
duplicateMap
.
get
(
key
);
...
...
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