Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hzjtpushdateService
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
建金
hzjtpushdateService
Commits
a09b31b5
Commit
a09b31b5
authored
Jan 05, 2021
by
高飞
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
弹窗正检查
parent
1293d095
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
8 deletions
+10
-8
src/main/java/com/hzjt/controller/TraffController.java
src/main/java/com/hzjt/controller/TraffController.java
+9
-7
src/main/resources/application.properties
src/main/resources/application.properties
+1
-1
No files found.
src/main/java/com/hzjt/controller/TraffController.java
View file @
a09b31b5
...
@@ -183,12 +183,6 @@ public class TraffController {
...
@@ -183,12 +183,6 @@ public class TraffController {
if
(
exists
>
0
)
{
if
(
exists
>
0
)
{
return
;
return
;
}
}
//发送给前端
Map
map
=
new
HashMap
();
map
.
put
(
"type"
,
"alarm"
);
map
.
put
(
"data"
,
trffClientMessage
);
WebSocket
.
GroupSending
(
JsonUtil
.
beanToString
(
map
));
traffAlarmRecord
.
setVideourlfrom
(
trffClientMessage
.
getVideo_record_url
());
traffAlarmRecord
.
setVideourlfrom
(
trffClientMessage
.
getVideo_record_url
());
traffAlarmRecord
.
setCreatetime
(
new
Date
());
traffAlarmRecord
.
setCreatetime
(
new
Date
());
...
@@ -227,8 +221,15 @@ public class TraffController {
...
@@ -227,8 +221,15 @@ public class TraffController {
/* 9:免审 */
/* 9:免审 */
traffAlarmRecord
.
setCheckstatus
(
9
);
traffAlarmRecord
.
setCheckstatus
(
9
);
}
}
int
recordid
=
traffAlarmRecordMapper
.
selectmax
();
int
recordid
=
traffAlarmRecordMapper
.
selectmax
();
traffAlarmRecord
.
setRecordid
((
long
)
(
recordid
+
1
));
traffAlarmRecord
.
setRecordid
((
long
)
(
recordid
));
//发送给前端
Map
map
=
new
HashMap
();
map
.
put
(
"type"
,
"alarm"
);
map
.
put
(
"data"
,
trffClientMessage
);
map
.
put
(
"recordid"
,
recordid
);
WebSocket
.
GroupSending
(
JsonUtil
.
beanToString
(
map
));
traffAlarmRecord
.
setProcessstatus
(
"0"
);
traffAlarmRecord
.
setProcessstatus
(
"0"
);
traffAlarmRecordMapper
.
inserTraffAlarmRecord
(
traffAlarmRecord
);
traffAlarmRecordMapper
.
inserTraffAlarmRecord
(
traffAlarmRecord
);
...
@@ -399,4 +400,5 @@ public class TraffController {
...
@@ -399,4 +400,5 @@ public class TraffController {
}
}
src/main/resources/application.properties
View file @
a09b31b5
...
@@ -13,7 +13,7 @@ mybatis.configuration.map-underscore-to-camel-case=true
...
@@ -13,7 +13,7 @@ mybatis.configuration.map-underscore-to-camel-case=true
mybatis.configuration.default-fetch-size
=
100
mybatis.configuration.default-fetch-size
=
100
mybatis.configuration.default-statement-timeout
=
3000
mybatis.configuration.default-statement-timeout
=
3000
#mybatis.mapperLocations = classpath:xxx.xml
#mybatis.mapperLocations = classpath:xxx.xml
logging.level.com.hzjt
=
debug
#
logging.level.com.hzjt=debug
## �������ݿ�-����Դ����
## �������ݿ�-����Դ����
#spring.datasource.url=jdbc:dm://127.0.0.1:12345/auditlocal_cq
#spring.datasource.url=jdbc:dm://127.0.0.1:12345/auditlocal_cq
...
...
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