|
|
|
@@ -482,19 +482,7 @@ public class WxUserStructureController extends BaseController { |
|
|
|
} |
|
|
|
|
|
|
|
HashMap result = new HashMap(); |
|
|
|
Collections.sort(senceStructureList, new Comparator<WxUserChannel>() { |
|
|
|
@Override |
|
|
|
public int compare(WxUserChannel c1, WxUserChannel c2) { |
|
|
|
long diff = c1.getCount() - c2.getCount(); |
|
|
|
if (diff > 0) { |
|
|
|
return -1; |
|
|
|
} |
|
|
|
else if (diff < 0) { |
|
|
|
return 1; |
|
|
|
} |
|
|
|
return 0; |
|
|
|
} |
|
|
|
}); |
|
|
|
Collections.sort(senceStructureList, (s1,s2) -> ((int)(s2.getCount()-s1.getCount()))); |
|
|
|
|
|
|
|
result.put("channelList",channelStructureList); |
|
|
|
result.put("senceList",senceStructureList.subList(0,10)); |
|
|
|
|