Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
member-api
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
曲欣亮
member-api
Commits
6f166edc
Commit
6f166edc
authored
Apr 19, 2019
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
2ea8e34e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
8 deletions
+11
-8
WebApiController.java
src/main/java/com/egolm/film/api/web/WebApiController.java
+11
-8
No files found.
src/main/java/com/egolm/film/api/web/WebApiController.java
View file @
6f166edc
package
com
.
egolm
.
film
.
api
.
web
;
import
java.util.ArrayList
;
import
java.util.Arrays
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
...
...
@@ -105,19 +106,21 @@ public class WebApiController {
}
map
.
put
(
"directorList"
,
directorList
);
}
{
List
<
Map
<
String
,
Object
>>
producerList
=
new
ArrayList
<
Map
<
String
,
Object
>
>();
List
<
String
>
producerList
=
new
ArrayList
<
String
>();
String
producer_en
=
(
String
)
extMap
.
get
(
"producer_en"
);
String
production_en
=
(
String
)
extMap
.
get
(
"production_en"
);
if
(
StringUtil
.
isNotBlank
(
producer_en
))
{
String
[]
producerArray
=
producer_en
.
split
(
","
);
for
(
int
i
=
0
;
i
<
producerArray
.
length
;
i
++)
{
Map
<
String
,
Object
>
producerMap
=
new
HashMap
<
String
,
Object
>();
producerMap
.
put
(
"producer_name"
,
producerArray
[
i
]);
producerMap
.
put
(
"production_name"
,
production_en
);
producerList
.
add
(
producerMap
);
}
producerList
.
addAll
(
Arrays
.
asList
(
producerArray
));
}
map
.
put
(
"producerList"
,
producerList
);
}
{
List
<
String
>
productionList
=
new
ArrayList
<
String
>();
String
production_en
=
(
String
)
extMap
.
get
(
"production_en"
);
if
(
StringUtil
.
isNotBlank
(
production_en
))
{
String
[]
productionArray
=
production_en
.
split
(
","
);
productionList
.
addAll
(
Arrays
.
asList
(
productionArray
));
}
map
.
put
(
"productionList"
,
productionList
);
}
list
.
add
(
map
);
}
...
...
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