Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
S
sentinel
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
曲欣亮
sentinel
Commits
568ccfd1
Commit
568ccfd1
authored
Apr 19, 2019
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
072543e4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
27 deletions
+33
-27
WebApiController.java
src/main/java/com/egolm/film/api/WebApiController.java
+33
-27
No files found.
src/main/java/com/egolm/film/api/WebApiController.java
View file @
568ccfd1
...
@@ -92,37 +92,43 @@ public class WebApiController {
...
@@ -92,37 +92,43 @@ public class WebApiController {
}
}
Map
<
String
,
Object
>
extMap
=
playactorMM
.
get
(
String
.
valueOf
(
id
));
Map
<
String
,
Object
>
extMap
=
playactorMM
.
get
(
String
.
valueOf
(
id
));
{
if
(
extMap
!=
null
)
{
List
<
Map
<
String
,
Object
>>
directorList
=
new
ArrayList
<
Map
<
String
,
Object
>>();
{
String
director_cn
=
(
String
)
extMap
.
get
(
"director_cn"
);
List
<
Map
<
String
,
Object
>>
directorList
=
new
ArrayList
<
Map
<
String
,
Object
>>();
String
director_en
=
(
String
)
extMap
.
get
(
"director_en"
);
String
director_cn
=
(
String
)
extMap
.
get
(
"director_cn"
);
if
(
StringUtil
.
isNotBlank
(
director_cn
))
{
String
director_en
=
(
String
)
extMap
.
get
(
"director_en"
);
String
[]
directorCnArray
=
director_cn
.
split
(
","
);
if
(
StringUtil
.
isNotBlank
(
director_cn
))
{
String
[]
directorEnArray
=
(
director_en
==
null
?
""
:
director_en
).
split
(
","
,
directorCnArray
.
length
);
String
[]
directorCnArray
=
director_cn
.
split
(
","
);
for
(
int
i
=
0
;
i
<
directorCnArray
.
length
;
i
++)
{
String
[]
directorEnArray
=
(
director_en
==
null
?
""
:
director_en
).
split
(
","
,
directorCnArray
.
length
);
Map
<
String
,
Object
>
directorMap
=
new
HashMap
<
String
,
Object
>();
for
(
int
i
=
0
;
i
<
directorCnArray
.
length
;
i
++)
{
directorMap
.
put
(
"en_name"
,
directorEnArray
[
i
]);
Map
<
String
,
Object
>
directorMap
=
new
HashMap
<
String
,
Object
>();
directorMap
.
put
(
"cn_name"
,
directorCnArray
[
i
]);
directorMap
.
put
(
"en_name"
,
directorEnArray
[
i
]);
directorList
.
add
(
directorMap
);
directorMap
.
put
(
"cn_name"
,
directorCnArray
[
i
]);
directorList
.
add
(
directorMap
);
}
}
}
map
.
put
(
"directorList"
,
directorList
);
}
}
map
.
put
(
"directorList"
,
directorList
);
}
{
{
List
<
String
>
producerList
=
new
ArrayList
<
String
>();
List
<
String
>
producerList
=
new
ArrayList
<
String
>();
String
producer_en
=
(
String
)
extMap
.
get
(
"producer_en"
);
String
producer_en
=
(
String
)
extMap
.
get
(
"producer_en"
);
if
(
StringUtil
.
isNotBlank
(
producer_en
))
{
if
(
StringUtil
.
isNotBlank
(
producer_en
))
{
String
[]
producerArray
=
producer_en
.
split
(
","
);
String
[]
producerArray
=
producer_en
.
split
(
","
);
producerList
.
addAll
(
Arrays
.
asList
(
producerArray
));
producerList
.
addAll
(
Arrays
.
asList
(
producerArray
));
}
map
.
put
(
"producerList"
,
producerList
);
}
}
map
.
put
(
"producerList"
,
producerList
);
}
{
{
List
<
String
>
productionList
=
new
ArrayList
<
String
>();
List
<
String
>
productionList
=
new
ArrayList
<
String
>();
String
production_en
=
(
String
)
extMap
.
get
(
"production_en"
);
String
production_en
=
(
String
)
extMap
.
get
(
"production_en"
);
if
(
StringUtil
.
isNotBlank
(
production_en
))
{
if
(
StringUtil
.
isNotBlank
(
production_en
))
{
String
[]
productionArray
=
production_en
.
split
(
","
);
String
[]
productionArray
=
production_en
.
split
(
","
);
productionList
.
addAll
(
Arrays
.
asList
(
productionArray
));
productionList
.
addAll
(
Arrays
.
asList
(
productionArray
));
}
map
.
put
(
"productionList"
,
productionList
);
}
}
map
.
put
(
"productionList"
,
productionList
);
}
}
list
.
add
(
map
);
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