Commit 97a53b8f authored by yanzg's avatar yanzg

公式计算处理

parent 74bb1ffa
...@@ -463,14 +463,14 @@ public class TableSqlCache { ...@@ -463,14 +463,14 @@ public class TableSqlCache {
* @param collection * @param collection
* @return * @return
*/ */
public List getKeySort(Collection collection) { public <T extends Object> List<T> getKeySort(Collection<T> collection) {
// 集合数据 // 集合数据
List list = new ArrayList(); List<T> list = new ArrayList();
list.addAll(collection); list.addAll(collection);
// 对集合进行排序 // 对集合进行排序
Collections.sort(list, new Comparator<Object>() { Collections.sort(list, new Comparator<T>() {
@Override @Override
public int compare(Object o1, Object o2) { public int compare(T o1, T o2) {
String key1 = StringHelper.getFirst(TableSqlCache.this.getKeyValue(o1)); String key1 = StringHelper.getFirst(TableSqlCache.this.getKeyValue(o1));
String key2 = StringHelper.getFirst(TableSqlCache.this.getKeyValue(o2)); String key2 = StringHelper.getFirst(TableSqlCache.this.getKeyValue(o2));
return key1.compareTo(key2); return key1.compareTo(key2);
...@@ -481,6 +481,7 @@ public class TableSqlCache { ...@@ -481,6 +481,7 @@ public class TableSqlCache {
/** /**
* 获取返回值数组 * 获取返回值数组
*
* @param collection * @param collection
* @return * @return
*/ */
......
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