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
5e583e11
Commit
5e583e11
authored
Aug 15, 2019
by
李辅翼
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
v11
parent
47fefcec
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
24 additions
and
6 deletions
+24
-6
src/main/java/com/hikcreate/controller/PicController.java
+9
-0
src/main/java/com/hikcreate/drv_photo_pic/Vehicle.java
+2
-0
src/main/java/com/hikcreate/drv_photo_pic/impl/VehicleImpl.java
+10
-0
src/main/java/com/hikcreate/drv_photo_pic/impl/VioPicImpl.java
+0
-3
src/main/java/com/hikcreate/service/fdfs/service/impl/FileServiceImpl.java
+3
-3
No files found.
src/main/java/com/hikcreate/controller/PicController.java
View file @
5e583e11
...
@@ -93,6 +93,15 @@ public class PicController {
...
@@ -93,6 +93,15 @@ public class PicController {
}
}
/**
/**
* 根据序号插入车辆图片
* @param xh
*/
@GetMapping
(
"/insertVehPicByXh"
)
public
void
insertVehPicByXh
(
@RequestParam
(
"xh"
)
String
xh
){
vehicle
.
insertVehPicByXh
(
xh
);
}
/**
* 指定时间段驾驶人头像同步
* 指定时间段驾驶人头像同步
* @param start
* @param start
* @param end
* @param end
...
...
src/main/java/com/hikcreate/drv_photo_pic/Vehicle.java
View file @
5e583e11
...
@@ -8,4 +8,6 @@ public interface Vehicle {
...
@@ -8,4 +8,6 @@ public interface Vehicle {
void
insertVehPicByCar
(
String
hphm
,
String
hpzl
);
void
insertVehPicByCar
(
String
hphm
,
String
hpzl
);
void
getVehPicStage
(
String
start
,
String
end
);
void
getVehPicStage
(
String
start
,
String
end
);
void
insertVehPicByXh
(
String
xh
);
}
}
src/main/java/com/hikcreate/drv_photo_pic/impl/VehicleImpl.java
View file @
5e583e11
...
@@ -123,6 +123,16 @@ public class VehicleImpl implements Vehicle {
...
@@ -123,6 +123,16 @@ public class VehicleImpl implements Vehicle {
getPic
(
sql
);
getPic
(
sql
);
}
}
/**
* 根据序号插入图片
* @param xh
*/
@Override
public
void
insertVehPicByXh
(
String
xh
)
{
String
sql
=
"select * from GYJG.VEH_PICTURE where XH='"
+
xh
+
"'"
;
getPic
(
sql
);
}
private
void
getPic
(
String
sql
)
{
private
void
getPic
(
String
sql
)
{
getHbaseVioPicTable
();
getHbaseVioPicTable
();
...
...
src/main/java/com/hikcreate/drv_photo_pic/impl/VioPicImpl.java
View file @
5e583e11
...
@@ -22,9 +22,6 @@ import org.springframework.util.MultiValueMap;
...
@@ -22,9 +22,6 @@ import org.springframework.util.MultiValueMap;
import
org.springframework.web.client.RestTemplate
;
import
org.springframework.web.client.RestTemplate
;
import
java.io.IOException
;
import
java.io.IOException
;
import
java.io.PrintWriter
;
import
java.io.StringWriter
;
import
java.io.Writer
;
import
java.sql.*
;
import
java.sql.*
;
import
java.sql.Connection
;
import
java.sql.Connection
;
import
java.util.Map
;
import
java.util.Map
;
...
...
src/main/java/com/hikcreate/service/fdfs/service/impl/FileServiceImpl.java
View file @
5e583e11
...
@@ -34,10 +34,10 @@ public class FileServiceImpl implements FileService {
...
@@ -34,10 +34,10 @@ public class FileServiceImpl implements FileService {
return
"/group"
+
path
.
split
(
"group"
)[
1
];
return
"/group"
+
path
.
split
(
"group"
)[
1
];
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
//
e.printStackTrace();
logger
.
error
(
"Upload Img Error, msg ={}"
,
e
);
logger
.
error
(
"Upload Img Error, msg ={}"
,
e
);
uploadFile
(
file
,
fileName
);
return
uploadFile
(
file
,
fileName
);
throw
new
RuntimeException
(
"上传图片失败"
);
//
throw new RuntimeException("上传图片失败");
}
}
}
}
...
...
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