Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tagManager
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
lanmw
tagManager
Commits
07d39a74
Commit
07d39a74
authored
Jan 17, 2020
by
zhangkb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改标签分析排序
parent
009a21e3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
6 deletions
+13
-6
pom.xml
pom.xml
+7
-0
TagService.java
...ain/java/com/keymobile/tagmanager/service/TagService.java
+6
-6
No files found.
pom.xml
View file @
07d39a74
...
@@ -192,6 +192,13 @@
...
@@ -192,6 +192,13 @@
<include>
**/*.jar
</include>
<include>
**/*.jar
</include>
</includes>
</includes>
</resource>
</resource>
<resource>
<directory>
src/main/resources
</directory>
<includes>
<include>
*.yml
</include>
<include>
**/*.xml
</include>
</includes>
</resource>
</resources>
</resources>
<plugins>
<plugins>
...
...
src/main/java/com/keymobile/tagmanager/service/TagService.java
View file @
07d39a74
...
@@ -397,9 +397,9 @@ public class TagService {
...
@@ -397,9 +397,9 @@ public class TagService {
Collections
.
sort
(
sysTagList
,
new
Comparator
<
Map
<
String
,
Object
>>()
{
Collections
.
sort
(
sysTagList
,
new
Comparator
<
Map
<
String
,
Object
>>()
{
@Override
@Override
public
int
compare
(
Map
<
String
,
Object
>
o1
,
Map
<
String
,
Object
>
o2
)
{
public
int
compare
(
Map
<
String
,
Object
>
o1
,
Map
<
String
,
Object
>
o2
)
{
String
total1
=
o1
.
get
(
"total"
).
toString
(
);
int
total1
=
Integer
.
valueOf
(
o1
.
get
(
"total"
).
toString
()
);
String
total2
=
o2
.
get
(
"total"
).
toString
(
);
int
total2
=
Integer
.
valueOf
(
o2
.
get
(
"total"
).
toString
()
);
return
total2
.
compareTo
(
total1
)
;
return
total2
-
total1
;
}
}
});
});
}
}
...
@@ -408,9 +408,9 @@ public class TagService {
...
@@ -408,9 +408,9 @@ public class TagService {
Collections
.
sort
(
perTagList
,
new
Comparator
<
Map
<
String
,
Object
>>()
{
Collections
.
sort
(
perTagList
,
new
Comparator
<
Map
<
String
,
Object
>>()
{
@Override
@Override
public
int
compare
(
Map
<
String
,
Object
>
o1
,
Map
<
String
,
Object
>
o2
)
{
public
int
compare
(
Map
<
String
,
Object
>
o1
,
Map
<
String
,
Object
>
o2
)
{
String
total1
=
o1
.
get
(
"total"
).
toString
(
);
int
total1
=
Integer
.
valueOf
(
o1
.
get
(
"total"
).
toString
()
);
String
total2
=
o2
.
get
(
"total"
).
toString
(
);
int
total2
=
Integer
.
valueOf
(
o2
.
get
(
"total"
).
toString
()
);
return
total2
.
compareTo
(
total1
)
;
return
total2
-
total1
;
}
}
});
});
}
}
...
...
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