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
a356187c
Commit
a356187c
authored
Aug 22, 2019
by
李辅翼
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
v14
parent
c62693ad
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
9 deletions
+8
-9
src/main/java/com/hikcreate/drv_photo_pic/impl/VehicleImpl.java
+7
-2
src/main/java/com/hikcreate/service/fdfs/service/impl/FileServiceImpl.java
+1
-7
No files found.
src/main/java/com/hikcreate/drv_photo_pic/impl/VehicleImpl.java
View file @
a356187c
...
@@ -197,7 +197,7 @@ public class VehicleImpl implements Vehicle {
...
@@ -197,7 +197,7 @@ public class VehicleImpl implements Vehicle {
* @param resultSet
* @param resultSet
* @param vehPicTable
* @param vehPicTable
*/
*/
private
synchronized
void
saveToHbase
(
ResultSet
resultSet
,
Table
vehPicTable
)
{
private
synchronized
void
saveToHbase
(
ResultSet
resultSet
,
Table
vehPicTable
)
{
try
{
try
{
String
xh
=
resultSet
.
getString
(
"XH"
);
String
xh
=
resultSet
.
getString
(
"XH"
);
String
hphm
=
resultSet
.
getString
(
"HPHM"
);
String
hphm
=
resultSet
.
getString
(
"HPHM"
);
...
@@ -209,7 +209,12 @@ public class VehicleImpl implements Vehicle {
...
@@ -209,7 +209,12 @@ public class VehicleImpl implements Vehicle {
PicResult
picResult
=
SqlHelp
.
getFlag
(
rowkey
,
vehPicTable
,
colValue
,
gxsj
);
PicResult
picResult
=
SqlHelp
.
getFlag
(
rowkey
,
vehPicTable
,
colValue
,
gxsj
);
if
(
picResult
.
getI
()
!=
0
)
{
if
(
picResult
.
getI
()
!=
0
)
{
if
(
picResult
.
getI
()
==
2
)
{
if
(
picResult
.
getI
()
==
2
)
{
fileService
.
deleteFile
(
picResult
.
getUrl
());
try
{
fileService
.
deleteFile
(
picResult
.
getUrl
());
}
catch
(
Exception
e
)
{
logger
.
info
(
xh
);
e
.
printStackTrace
();
}
}
}
Put
put
=
new
Put
(
rowkey
.
getBytes
());
Put
put
=
new
Put
(
rowkey
.
getBytes
());
put
.
addColumn
(
"info"
.
getBytes
(),
"xh"
.
getBytes
(),
(
xh
==
null
?
"null"
:
xh
).
getBytes
());
put
.
addColumn
(
"info"
.
getBytes
(),
"xh"
.
getBytes
(),
(
xh
==
null
?
"null"
:
xh
).
getBytes
());
...
...
src/main/java/com/hikcreate/service/fdfs/service/impl/FileServiceImpl.java
View file @
a356187c
...
@@ -42,13 +42,7 @@ public class FileServiceImpl implements FileService {
...
@@ -42,13 +42,7 @@ public class FileServiceImpl implements FileService {
@Override
@Override
public
void
deleteFile
(
String
path
)
{
public
void
deleteFile
(
String
path
)
{
try
{
fastDFSClient
.
deleteFile
(
path
);
// logger.info("删除图片:" + path);
fastDFSClient
.
deleteFile
(
path
);
}
catch
(
Exception
e
)
{
// e.printStackTrace();
logger
.
error
(
e
.
toString
());
}
}
}
...
...
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