Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
ftp_pic
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李辅翼
ftp_pic
Commits
57157a55
Commit
57157a55
authored
Aug 22, 2019
by
李辅翼
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
v14
parent
81334198
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
src/main/java/com/hikcreate/drv_photo_pic/impl/VehicleImpl.java
+4
-3
No files found.
src/main/java/com/hikcreate/drv_photo_pic/impl/VehicleImpl.java
View file @
57157a55
...
@@ -224,7 +224,7 @@ public class VehicleImpl implements Vehicle {
...
@@ -224,7 +224,7 @@ public class VehicleImpl implements Vehicle {
put
.
addColumn
(
"info"
.
getBytes
(),
"hpzl"
.
getBytes
(),
(
hpzl
==
null
?
"null"
:
hpzl
).
getBytes
());
put
.
addColumn
(
"info"
.
getBytes
(),
"hpzl"
.
getBytes
(),
(
hpzl
==
null
?
"null"
:
hpzl
).
getBytes
());
put
.
addColumn
(
"info"
.
getBytes
(),
"gxsj"
.
getBytes
(),
(
gxsj
==
null
?
"null"
:
gxsj
).
getBytes
());
put
.
addColumn
(
"info"
.
getBytes
(),
"gxsj"
.
getBytes
(),
(
gxsj
==
null
?
"null"
:
gxsj
).
getBytes
());
byte
[]
bytes
=
SqlHelp
.
blobToByteZp
(
zp
);
byte
[]
bytes
=
SqlHelp
.
blobToByteZp
(
zp
);
String
picUrl
=
uploadFile
(
bytes
,
xh
+
".jpeg"
);
String
picUrl
=
uploadFile
(
bytes
,
xh
+
".jpeg"
,
xh
);
put
.
addColumn
(
"info"
.
getBytes
(),
"picUrl"
.
getBytes
(),
picUrl
.
getBytes
());
put
.
addColumn
(
"info"
.
getBytes
(),
"picUrl"
.
getBytes
(),
picUrl
.
getBytes
());
vehPicTable
.
put
(
put
);
vehPicTable
.
put
(
put
);
}
}
...
@@ -235,13 +235,14 @@ public class VehicleImpl implements Vehicle {
...
@@ -235,13 +235,14 @@ public class VehicleImpl implements Vehicle {
}
}
private
String
uploadFile
(
byte
[]
file
,
String
fileName
)
{
private
String
uploadFile
(
byte
[]
file
,
String
fileName
,
String
xh
)
{
String
url
;
String
url
;
try
{
try
{
url
=
fileService
.
uploadFile
(
file
,
fileName
);
url
=
fileService
.
uploadFile
(
file
,
fileName
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
logger
.
info
(
"---------------"
+
xh
);
e
.
printStackTrace
();
e
.
printStackTrace
();
url
=
uploadFile
(
file
,
fileName
);
url
=
uploadFile
(
file
,
fileName
,
xh
);
}
}
return
url
;
return
url
;
}
}
...
...
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