Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
Y
yzg-util
Project
Project
Details
Activity
Releases
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
YZG
yzg-util
Commits
97a53b8f
Commit
97a53b8f
authored
Jan 01, 2022
by
yanzg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
公式计算处理
parent
74bb1ffa
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
TableSqlCache.java
...src/main/java/com/yanzuoguang/dao/impl/TableSqlCache.java
+5
-4
No files found.
yzg-util-db/src/main/java/com/yanzuoguang/dao/impl/TableSqlCache.java
View file @
97a53b8f
...
...
@@ -463,14 +463,14 @@ public class TableSqlCache {
* @param collection
* @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
);
// 对集合进行排序
Collections
.
sort
(
list
,
new
Comparator
<
Object
>()
{
Collections
.
sort
(
list
,
new
Comparator
<
T
>()
{
@Override
public
int
compare
(
Object
o1
,
Object
o2
)
{
public
int
compare
(
T
o1
,
T
o2
)
{
String
key1
=
StringHelper
.
getFirst
(
TableSqlCache
.
this
.
getKeyValue
(
o1
));
String
key2
=
StringHelper
.
getFirst
(
TableSqlCache
.
this
.
getKeyValue
(
o2
));
return
key1
.
compareTo
(
key2
);
...
...
@@ -481,6 +481,7 @@ public class TableSqlCache {
/**
* 获取返回值数组
*
* @param collection
* @return
*/
...
...
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