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
e888abaf
Commit
e888abaf
authored
Mar 07, 2019
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
859b39c5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
ExportServiceImpl.java
...va/com/egolm/film/api/service/impl/ExportServiceImpl.java
+7
-7
No files found.
src/main/java/com/egolm/film/api/service/impl/ExportServiceImpl.java
View file @
e888abaf
...
...
@@ -633,17 +633,17 @@ public class ExportServiceImpl implements ExportService {
}
Map
<
String
,
String
>
photoVars
=
new
HashMap
<
String
,
String
>();
photoVars
.
put
(
"
0,3,9,3
"
,
filmExt
.
getPhoto_mv
());
photoVars
.
put
(
"
2,18,3,25
"
,
filmExt
.
getPhoto_director
());
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
{
String
[]
c1_r1_c2_r2_ary
=
key
.
split
(
","
,
4
);
short
c1
=
Short
.
valueOf
(
c1_r1_c2_r2_ary
[
0
])
;
int
r1
=
Integer
.
valueOf
(
c1_r1_c2_r2_ary
[
1
]);
short
c2
=
Short
.
valueOf
(
c1_r1_c2_r2_ary
[
2
])
;
int
r2
=
Integer
.
valueOf
(
c1_r1_c2_r2_ary
[
3
]);
int
c1
=
Integer
.
valueOf
(
c1_r1_c2_r2_ary
[
0
])
-
1
;
int
r1
=
Integer
.
valueOf
(
c1_r1_c2_r2_ary
[
1
])
-
1
;
int
c2
=
Integer
.
valueOf
(
c1_r1_c2_r2_ary
[
2
])
-
1
;
int
r2
=
Integer
.
valueOf
(
c1_r1_c2_r2_ary
[
3
])
-
1
;
String
pathMvPhoto
=
ossService
.
getOssPath
(
photoVars
.
get
(
key
),
10
);
URL
mvPhotoUrl
=
new
URL
(
pathMvPhoto
);
HttpURLConnection
mvPhotoConn
=
(
HttpURLConnection
)
mvPhotoUrl
.
openConnection
();
...
...
@@ -651,7 +651,7 @@ public class ExportServiceImpl implements ExportService {
mvPhotoConn
.
setConnectTimeout
(
50
*
1000
);
InputStream
mvPhotoInstream
=
mvPhotoConn
.
getInputStream
();
byte
[]
mvPhotoBytes
=
FileUtil
.
streamToBytes
(
mvPhotoInstream
);
ClientAnchor
anchor
=
new
HSSFClientAnchor
(
0
,
0
,
1023
,
255
,
c1
,
r1
,
c2
,
r2
);
ClientAnchor
anchor
=
new
HSSFClientAnchor
(
0
,
0
,
1023
,
255
,
(
short
)
c1
,
r1
,
(
short
)
c2
,
r2
);
int
pritureType
=
HSSFWorkbook
.
PICTURE_TYPE_JPEG
;
String
fileName
=
filmExt
.
getPhoto_director
().
toUpperCase
();
if
(
fileName
.
endsWith
(
".JPG"
)
||
fileName
.
endsWith
(
".JPEG"
))
{
...
...
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