Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gdtel-gztel-school-center
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
吴学德
gdtel-gztel-school-center
Commits
9197a272
Commit
9197a272
authored
May 12, 2020
by
董有沛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
工具类修改
parent
8d9c8598
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
common/src/main/java/com/winsun/utils/MapUtil.java
+2
-2
No files found.
common/src/main/java/com/winsun/utils/MapUtil.java
View file @
9197a272
...
@@ -30,8 +30,8 @@ public class MapUtil {
...
@@ -30,8 +30,8 @@ public class MapUtil {
* @param key 作为key的字段名
* @param key 作为key的字段名
* @return
* @return
*/
*/
public
static
Map
<
String
,
Object
>
listToMap
(
List
<
Map
<
String
,
Object
>>
list
,
String
key
){
public
static
Map
<
String
,
Map
<
String
,
Object
>
>
listToMap
(
List
<
Map
<
String
,
Object
>>
list
,
String
key
){
Map
<
String
,
Object
>
map
=
new
HashMap
<
String
,
Object
>();
Map
<
String
,
Map
<
String
,
Object
>>
map
=
new
HashMap
<
String
,
Map
<
String
,
Object
>
>();
for
(
Map
<
String
,
Object
>
theMap
:
list
)
{
for
(
Map
<
String
,
Object
>
theMap
:
list
)
{
if
(
null
!=
theMap
.
get
(
key
))
{
if
(
null
!=
theMap
.
get
(
key
))
{
map
.
put
(
theMap
.
get
(
key
).
toString
(),
theMap
);
map
.
put
(
theMap
.
get
(
key
).
toString
(),
theMap
);
...
...
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