Commit b3c3190b by zhangkb

修改标签分析排序

parent 07d39a74
......@@ -397,8 +397,8 @@ public class TagService {
Collections.sort(sysTagList, new Comparator<Map<String, Object>>() {
@Override
public int compare(Map<String, Object> o1, Map<String, Object> o2) {
int total1 = Integer.valueOf(o1.get("total").toString());
int total2 = Integer.valueOf(o2.get("total").toString());
int total1 = Integer.parseInt(o1.get("total").toString());
int total2 = Integer.parseInt(o2.get("total").toString());
return total2-total1;
}
});
......@@ -408,8 +408,8 @@ public class TagService {
Collections.sort(perTagList, new Comparator<Map<String, Object>>() {
@Override
public int compare(Map<String, Object> o1, Map<String, Object> o2) {
int total1 = Integer.valueOf(o1.get("total").toString());
int total2 = Integer.valueOf(o2.get("total").toString());
int total1 = Integer.parseInt(o1.get("total").toString());
int total2 = Integer.parseInt(o2.get("total").toString());
return total2-total1;
}
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment