Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
V
VideoAIBatchTaskConsumerService
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
VideoAIService
VideoAIBatchTaskConsumerService
Commits
1cbd9743
Commit
1cbd9743
authored
May 28, 2021
by
yzm
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
推送给智慧城市,ftp url暴露用户名密码的地址参数改为id
parent
92c53d38
Changes
7
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
122 additions
and
7 deletions
+122
-7
src/main/java/com/cx/cn/cxquartz/controller/ExtController.java
...ain/java/com/cx/cn/cxquartz/controller/ExtController.java
+3
-3
src/main/java/com/cx/cn/cxquartz/controller/IndexController.java
...n/java/com/cx/cn/cxquartz/controller/IndexController.java
+100
-1
src/main/java/com/cx/cn/cxquartz/dao/TraffPictureMapper.java
src/main/java/com/cx/cn/cxquartz/dao/TraffPictureMapper.java
+1
-0
src/main/java/com/cx/cn/cxquartz/service/quartz/TraffPictureService.java
...om/cx/cn/cxquartz/service/quartz/TraffPictureService.java
+3
-0
src/main/java/com/cx/cn/cxquartz/service/quartz/impl/EventWriteService.java
...cx/cn/cxquartz/service/quartz/impl/EventWriteService.java
+3
-1
src/main/java/com/cx/cn/cxquartz/service/quartz/impl/TraffpictureServiceImpl.java
...cxquartz/service/quartz/impl/TraffpictureServiceImpl.java
+9
-2
src/main/resources/mapper/TraffPictureMapper.xml
src/main/resources/mapper/TraffPictureMapper.xml
+3
-0
No files found.
src/main/java/com/cx/cn/cxquartz/controller/ExtController.java
View file @
1cbd9743
...
@@ -442,7 +442,7 @@ public String getnewRtspVlue(String devicecode ){
...
@@ -442,7 +442,7 @@ public String getnewRtspVlue(String devicecode ){
//获得返回结果,根据 Metadata.type 判断是人,车,人骑车,并将详细信息入对应的表
//获得返回结果,根据 Metadata.type 判断是人,车,人骑车,并将详细信息入对应的表
List
<
TraffpictureParam
>
objectList
=
(
List
<
TraffpictureParam
>)
JSONArray
.
parseArray
(
String
.
valueOf
(
result
.
get
(
"ObjectList"
)),
TraffpictureParam
.
class
);
List
<
TraffpictureParam
>
objectList
=
(
List
<
TraffpictureParam
>)
JSONArray
.
parseArray
(
String
.
valueOf
(
result
.
get
(
"ObjectList"
)),
TraffpictureParam
.
class
);
//获得 type
//获得 type
//更新 recordalarm 为
一
分析
//更新 recordalarm 为
已
分析
transferRecord
.
setProcessstatus
(
"-1"
);
transferRecord
.
setProcessstatus
(
"-1"
);
traffAlarmRecordService
.
updateTraffAlarmRecordProcess
(
transferRecord
);
traffAlarmRecordService
.
updateTraffAlarmRecordProcess
(
transferRecord
);
if
(
objectList
.
size
()
<
1
)
{
if
(
objectList
.
size
()
<
1
)
{
...
@@ -531,7 +531,7 @@ public String getnewRtspVlue(String devicecode ){
...
@@ -531,7 +531,7 @@ public String getnewRtspVlue(String devicecode ){
}
}
traffPictureService
.
updateTraffpicture
(
traffpictureParamresult
);
traffPictureService
.
updateTraffpicture
(
traffpictureParamresult
);
//推送给第三方的base64
//推送给第三方的base64
sendtozhiui
.
setImagedata
(
publicpictureurl
+
"/fielagent?ftpPath="
+
traffpictureParamresult
.
getI
magedata
());
sendtozhiui
.
setImagedata
(
publicpictureurl
+
"/fielagent?ftpPath="
+
traffpictureParamresult
.
getI
d
());
//赋值推送第三方数据
//赋值推送第三方数据
sendtozhiui
.
setRecordlevel
(
code
.
getAlarmlevel
());
sendtozhiui
.
setRecordlevel
(
code
.
getAlarmlevel
());
sendtozhiui
.
setTargetnum
(
code
.
getMaxnum
());
sendtozhiui
.
setTargetnum
(
code
.
getMaxnum
());
...
@@ -980,7 +980,7 @@ public String getnewRtspVlue(String devicecode ){
...
@@ -980,7 +980,7 @@ public String getnewRtspVlue(String devicecode ){
traffpictureParam
.
setFdid
(
transferRecord
.
getFdid
());
traffpictureParam
.
setFdid
(
transferRecord
.
getFdid
());
traffpictureParam
.
setRecordid
(
transferRecord
.
getRecordid
());
traffpictureParam
.
setRecordid
(
transferRecord
.
getRecordid
());
traffpictureParam
.
setChannelid
(
transferRecord
.
getChannelid
());
traffpictureParam
.
setChannelid
(
transferRecord
.
getChannelid
());
traffpictureParam
.
setCreatetime
(
new
Dat
e
());
traffpictureParam
.
setCreatetime
(
transferRecord
.
getCreatetim
e
());
//获得imgid 对应的 base64
//获得imgid 对应的 base64
// String imgftpurl = traffPictureService.queryimgpath(traffpictureParam);
// String imgftpurl = traffPictureService.queryimgpath(traffpictureParam);
// Ftp ftp = ftpService.reloadFtp();
// Ftp ftp = ftpService.reloadFtp();
...
...
src/main/java/com/cx/cn/cxquartz/controller/IndexController.java
View file @
1cbd9743
This diff is collapsed.
Click to expand it.
src/main/java/com/cx/cn/cxquartz/dao/TraffPictureMapper.java
View file @
1cbd9743
...
@@ -9,5 +9,6 @@ public interface TraffPictureMapper {
...
@@ -9,5 +9,6 @@ public interface TraffPictureMapper {
int
inserTraffpicture
(
TraffpictureParam
traffalarmrecord
);
int
inserTraffpicture
(
TraffpictureParam
traffalarmrecord
);
int
updateTraffpicture
(
TraffpictureParam
traffalarmrecord
);
int
updateTraffpicture
(
TraffpictureParam
traffalarmrecord
);
String
queryimgpath
(
TraffpictureParam
traffpicture
);
String
queryimgpath
(
TraffpictureParam
traffpicture
);
String
queryimgdataByid
(
String
id
);
int
updateTraffpicturePushStatus
(
TraffpictureParam
traffpicture
);
int
updateTraffpicturePushStatus
(
TraffpictureParam
traffpicture
);
}
}
\ No newline at end of file
src/main/java/com/cx/cn/cxquartz/service/quartz/TraffPictureService.java
View file @
1cbd9743
...
@@ -8,4 +8,7 @@ public interface TraffPictureService {
...
@@ -8,4 +8,7 @@ public interface TraffPictureService {
int
updateTraffpicture
(
TraffpictureParam
traffpicture
);
int
updateTraffpicture
(
TraffpictureParam
traffpicture
);
String
queryimgpath
(
TraffpictureParam
traffpicture
);
String
queryimgpath
(
TraffpictureParam
traffpicture
);
String
queryimgdataByid
(
String
id
);
}
}
src/main/java/com/cx/cn/cxquartz/service/quartz/impl/EventWriteService.java
View file @
1cbd9743
...
@@ -18,6 +18,7 @@ import org.springframework.http.MediaType;
...
@@ -18,6 +18,7 @@ import org.springframework.http.MediaType;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
org.springframework.web.client.RestTemplate
;
import
org.springframework.web.client.RestTemplate
;
import
java.text.SimpleDateFormat
;
import
java.util.concurrent.*
;
import
java.util.concurrent.*
;
/**
/**
...
@@ -60,7 +61,8 @@ public class EventWriteService {
...
@@ -60,7 +61,8 @@ public class EventWriteService {
sendtozhiui
.
setAlarmnum
(
traffpictureParamresult
.
getTargetnum
());
sendtozhiui
.
setAlarmnum
(
traffpictureParamresult
.
getTargetnum
());
sendtozhiui
.
setFdid
(
traffpictureParamresult
.
getFdid
());
sendtozhiui
.
setFdid
(
traffpictureParamresult
.
getFdid
());
sendtozhiui
.
setRecordtype
(
traffpictureParamresult
.
getRecordtype
());
sendtozhiui
.
setRecordtype
(
traffpictureParamresult
.
getRecordtype
());
sendtozhiui
.
setRecordtime
(
traffpictureParamresult
.
getCreatetime
()==
null
?
""
:
DateUtils
.
formatDate
(
traffpictureParamresult
.
getCreatetime
()));
SimpleDateFormat
format
=
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm:ss"
);
sendtozhiui
.
setRecordtime
(
traffpictureParamresult
.
getCreatetime
()==
null
?
""
:
format
.
format
(
traffpictureParamresult
.
getCreatetime
()));
ResultObj
resultObj
;
ResultObj
resultObj
;
try
{
try
{
resultObj
=
sendMessage
(
sendtozhiui
);
resultObj
=
sendMessage
(
sendtozhiui
);
...
...
src/main/java/com/cx/cn/cxquartz/service/quartz/impl/TraffpictureServiceImpl.java
View file @
1cbd9743
...
@@ -15,10 +15,11 @@ import org.springframework.stereotype.Service;
...
@@ -15,10 +15,11 @@ import org.springframework.stereotype.Service;
* @since 2021-04-29
* @since 2021-04-29
*/
*/
@Service
@Service
public
class
TraffpictureServiceImpl
implements
TraffPictureService
{
public
class
TraffpictureServiceImpl
implements
TraffPictureService
{
@Autowired
@Autowired
private
TraffPictureMapper
traffPictureMapper
;
private
TraffPictureMapper
traffPictureMapper
;
@Override
@Override
public
int
inserTraffpicture
(
TraffpictureParam
traffpicture
)
{
public
int
inserTraffpicture
(
TraffpictureParam
traffpicture
)
{
return
traffPictureMapper
.
inserTraffpicture
(
traffpicture
);
return
traffPictureMapper
.
inserTraffpicture
(
traffpicture
);
...
@@ -31,7 +32,13 @@ public class TraffpictureServiceImpl implements TraffPictureService{
...
@@ -31,7 +32,13 @@ public class TraffpictureServiceImpl implements TraffPictureService{
@Override
@Override
public
String
queryimgpath
(
TraffpictureParam
traffpicture
)
{
public
String
queryimgpath
(
TraffpictureParam
traffpicture
)
{
return
traffPictureMapper
.
queryimgpath
(
traffpicture
);
return
traffPictureMapper
.
queryimgpath
(
traffpicture
);
}
}
@Override
public
String
queryimgdataByid
(
String
id
)
{
return
traffPictureMapper
.
queryimgdataByid
(
id
);
}
}
}
src/main/resources/mapper/TraffPictureMapper.xml
View file @
1cbd9743
...
@@ -117,5 +117,8 @@
...
@@ -117,5 +117,8 @@
<update
id=
"updateTraffpicturePushStatus"
>
<update
id=
"updateTraffpicturePushStatus"
>
update traffpicture set pushdesc=#{pushdesc} , pushstatus=#{pushstatus} where id=#{id}
update traffpicture set pushdesc=#{pushdesc} , pushstatus=#{pushstatus} where id=#{id}
</update>
</update>
<select
id=
"queryimgdataByid"
parameterType=
"java.lang.String"
resultType=
"java.lang.String"
>
select imagedata from traffpicture where id=#{id}
</select>
</mapper>
</mapper>
\ No newline at end of file
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