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
10535be2
Commit
10535be2
authored
Mar 11, 2019
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
afd7bd35
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
28 deletions
+32
-28
ExportServiceImpl.java
...va/com/egolm/film/api/service/impl/ExportServiceImpl.java
+32
-28
No files found.
src/main/java/com/egolm/film/api/service/impl/ExportServiceImpl.java
View file @
10535be2
...
...
@@ -584,34 +584,36 @@ public class ExportServiceImpl implements ExportService {
System
.
out
.
println
(
JSON
.
toJSONString
(
filmExt
));
System
.
out
.
println
(
JSON
.
toJSONString
(
film
));
Map
<
String
,
String
>
stringVars
=
new
HashMap
<
String
,
String
>();
stringVars
.
put
(
"1,1"
,
film
.
getCn_name
());
stringVars
.
put
(
"1,1"
,
film
.
getCn_name
());
stringVars
.
put
(
"2,1"
,
film
.
getEn_name
());
stringVars
.
put
(
"3,1"
,
filmExt
.
getDirector_en
());
stringVars
.
put
(
"6,1"
,
film
.
getFilm_country
());
stringVars
.
put
(
"7,1"
,
film
.
getCompletion_date
());
stringVars
.
put
(
"8,1"
,
film
.
getFilm_total_time
());
stringVars
.
put
(
"9,1"
,
ExportConstant
.
fmtopts
.
get
(
String
.
valueOf
(
filmExt
.
getFormat
())));
stringVars
.
put
(
"11,1"
,
filmExt
.
getScreenplay
());
stringVars
.
put
(
"13,1"
,
filmExt
.
getDirector_of_photography
());
stringVars
.
put
(
"15,1"
,
filmExt
.
getMusic
());
stringVars
.
put
(
"17,1"
,
filmExt
.
getProduction_designer
());
stringVars
.
put
(
"19,1"
,
filmExt
.
getExecutive_producer
());
stringVars
.
put
(
"21,1"
,
filmExt
.
getEditor
());
stringVars
.
put
(
"23,1"
,
filmExt
.
getProducer_en
());
stringVars
.
put
(
"25,1"
,
filmExt
.
getCast
());
stringVars
.
put
(
"27,1"
,
filmExt
.
getProduction_en
());
stringVars
.
put
(
"29,1"
,
filmExt
.
getWorld_sales
());
stringVars
.
put
(
"30,1"
,
ExportConstant
.
resolutionopts
.
get
(
String
.
valueOf
(
filmExt
.
getResolution
()).
trim
()));
stringVars
.
put
(
"31,1"
,
ExportConstant
.
aspectopts
.
get
(
String
.
valueOf
(
filmExt
.
getAspect_ratio
()).
trim
()));
stringVars
.
put
(
"32,1"
,
ExportConstant
.
soundopts
.
get
(
String
.
valueOf
(
filmExt
.
getSound_format
()).
trim
()));
stringVars
.
put
(
"33,1"
,
ExportConstant
.
frameopts
.
get
(
String
.
valueOf
(
filmExt
.
getFrame_rate
()).
trim
()));
stringVars
.
put
(
"34,1"
,
ExportConstant
.
kdmopts
.
get
(
String
.
valueOf
(
filmExt
.
getKdm
()).
trim
()));
stringVars
.
put
(
"5,3"
,
filmExt
.
getSynopsis_cn
());
stringVars
.
put
(
"12,3"
,
filmExt
.
getSynopsis_en
());
stringVars
.
put
(
"20,5"
,
filmExt
.
getDirector_biography_cn
());
stringVars
.
put
(
"24,5"
,
filmExt
.
getDirector_biography_en
());
stringVars
.
put
(
"19,5"
,
filmExt
.
getDirector_cn
());
stringVars
.
put
(
"23,5"
,
filmExt
.
getDirector_en
());
if
(
filmExt
!=
null
)
{
stringVars
.
put
(
"3,1"
,
filmExt
.
getDirector_en
());
stringVars
.
put
(
"9,1"
,
ExportConstant
.
fmtopts
.
get
(
String
.
valueOf
(
filmExt
.
getFormat
())));
stringVars
.
put
(
"11,1"
,
filmExt
.
getScreenplay
());
stringVars
.
put
(
"13,1"
,
filmExt
.
getDirector_of_photography
());
stringVars
.
put
(
"15,1"
,
filmExt
.
getMusic
());
stringVars
.
put
(
"17,1"
,
filmExt
.
getProduction_designer
());
stringVars
.
put
(
"19,1"
,
filmExt
.
getExecutive_producer
());
stringVars
.
put
(
"21,1"
,
filmExt
.
getEditor
());
stringVars
.
put
(
"23,1"
,
filmExt
.
getProducer_en
());
stringVars
.
put
(
"25,1"
,
filmExt
.
getCast
());
stringVars
.
put
(
"27,1"
,
filmExt
.
getProduction_en
());
stringVars
.
put
(
"29,1"
,
filmExt
.
getWorld_sales
());
stringVars
.
put
(
"30,1"
,
ExportConstant
.
resolutionopts
.
get
(
String
.
valueOf
(
filmExt
.
getResolution
()).
trim
()));
stringVars
.
put
(
"31,1"
,
ExportConstant
.
aspectopts
.
get
(
String
.
valueOf
(
filmExt
.
getAspect_ratio
()).
trim
()));
stringVars
.
put
(
"32,1"
,
ExportConstant
.
soundopts
.
get
(
String
.
valueOf
(
filmExt
.
getSound_format
()).
trim
()));
stringVars
.
put
(
"33,1"
,
ExportConstant
.
frameopts
.
get
(
String
.
valueOf
(
filmExt
.
getFrame_rate
()).
trim
()));
stringVars
.
put
(
"34,1"
,
ExportConstant
.
kdmopts
.
get
(
String
.
valueOf
(
filmExt
.
getKdm
()).
trim
()));
stringVars
.
put
(
"5,3"
,
filmExt
.
getSynopsis_cn
());
stringVars
.
put
(
"12,3"
,
filmExt
.
getSynopsis_en
());
stringVars
.
put
(
"20,5"
,
filmExt
.
getDirector_biography_cn
());
stringVars
.
put
(
"24,5"
,
filmExt
.
getDirector_biography_en
());
stringVars
.
put
(
"19,5"
,
filmExt
.
getDirector_cn
());
stringVars
.
put
(
"23,5"
,
filmExt
.
getDirector_en
());
}
for
(
String
key
:
stringVars
.
keySet
())
{
String
value
=
stringVars
.
get
(
key
);
value
=
value
==
null
?
""
:
value
.
trim
();
...
...
@@ -634,11 +636,13 @@ public class ExportServiceImpl implements ExportService {
}
}
}
Map
<
String
,
String
>
photoVars
=
new
HashMap
<
String
,
String
>();
photoVars
.
put
(
"1,4,10,4"
,
filmExt
.
getPhoto_mv
());
photoVars
.
put
(
"3,19,4,26"
,
filmExt
.
getPhoto_director
());
HSSFPatriarch
patriarch
=
sheet
.
createDrawingPatriarch
();
if
(
filmExt
!=
null
)
{
photoVars
.
put
(
"1,4,10,4"
,
filmExt
.
getPhoto_mv
());
photoVars
.
put
(
"3,19,4,26"
,
filmExt
.
getPhoto_director
());
}
HSSFPatriarch
patriarch
=
sheet
.
createDrawingPatriarch
();
for
(
String
key
:
photoVars
.
keySet
())
{
if
(
StringUtil
.
isNotBlank
(
key
))
{
try
{
...
...
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