Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
AppTag
Project
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
dataplatform
AppTag
Commits
dae5019e
Commit
dae5019e
authored
5 years ago
by
jinfeng.wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
2a738f46
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
6 deletions
+10
-6
FeatServiceImpl.java
...ava/com/mobvista/apptag/service/impl/FeatServiceImpl.java
+10
-6
No files found.
src/main/java/com/mobvista/apptag/service/impl/FeatServiceImpl.java
View file @
dae5019e
package
com
.
mobvista
.
apptag
.
service
.
impl
;
package
com
.
mobvista
.
apptag
.
service
.
impl
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
import
com.mobvista.apptag.entity.Feat
;
import
com.mobvista.apptag.entity.Feat
;
import
com.mobvista.apptag.mapper.FeatDao
;
import
com.mobvista.apptag.mapper.FeatDao
;
import
com.mobvista.apptag.service.FeatService
;
import
com.mobvista.apptag.service.FeatService
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
/**
/**
* @author wangjf
* @author wangjf
*/
*/
...
@@ -26,7 +26,11 @@ public class FeatServiceImpl implements FeatService {
...
@@ -26,7 +26,11 @@ public class FeatServiceImpl implements FeatService {
Map
<
String
,
String
>
map
=
new
HashMap
<>();
Map
<
String
,
String
>
map
=
new
HashMap
<>();
List
<
Feat
>
feats
=
featDao
.
listAll
();
List
<
Feat
>
feats
=
featDao
.
listAll
();
for
(
Feat
feat
:
feats
)
{
for
(
Feat
feat
:
feats
)
{
map
.
put
(
feat
.
getSecondId
(),
feat
.
getSecondTag
());
if
(
StringUtils
.
isNotBlank
(
feat
.
getSecondTag
()))
{
map
.
put
(
feat
.
getSecondId
(),
feat
.
getSecondTag
());
}
else
{
map
.
put
(
feat
.
getSecondId
(),
feat
.
getFirstTag
());
}
}
}
return
map
;
return
map
;
}
}
...
...
This diff is collapsed.
Click to expand it.
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