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
2ea8e34e
Commit
2ea8e34e
authored
Apr 19, 2019
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
c2c8a965
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
WebApiController.java
src/main/java/com/egolm/film/api/web/WebApiController.java
+4
-4
No files found.
src/main/java/com/egolm/film/api/web/WebApiController.java
View file @
2ea8e34e
...
...
@@ -90,34 +90,34 @@ public class WebApiController {
Map
<
String
,
Object
>
extMap
=
playactorMM
.
get
(
String
.
valueOf
(
id
));
{
List
<
Map
<
String
,
Object
>>
directorList
=
new
ArrayList
<
Map
<
String
,
Object
>>();
String
director_cn
=
(
String
)
extMap
.
get
(
"director_cn"
);
String
director_en
=
(
String
)
extMap
.
get
(
"director_en"
);
if
(
StringUtil
.
isNotBlank
(
director_cn
))
{
String
[]
directorCnArray
=
director_cn
.
split
(
","
);
String
[]
directorEnArray
=
(
director_en
==
null
?
""
:
director_en
).
split
(
","
,
directorCnArray
.
length
);
List
<
Map
<
String
,
Object
>>
directorList
=
new
ArrayList
<
Map
<
String
,
Object
>>();
for
(
int
i
=
0
;
i
<
directorCnArray
.
length
;
i
++)
{
Map
<
String
,
Object
>
directorMap
=
new
HashMap
<
String
,
Object
>();
directorMap
.
put
(
"en_name"
,
directorEnArray
[
i
]);
directorMap
.
put
(
"cn_name"
,
directorCnArray
[
i
]);
directorList
.
add
(
directorMap
);
}
map
.
put
(
"directorList"
,
directorList
);
}
map
.
put
(
"directorList"
,
directorList
);
}
{
List
<
Map
<
String
,
Object
>>
producerList
=
new
ArrayList
<
Map
<
String
,
Object
>>();
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
(
","
);
List
<
Map
<
String
,
Object
>>
producerList
=
new
ArrayList
<
Map
<
String
,
Object
>>();
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
);
}
map
.
put
(
"producerList"
,
producerList
);
}
map
.
put
(
"producerList"
,
producerList
);
}
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