Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
Imagedx
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
Imagedx
Commits
e4473dfa
Commit
e4473dfa
authored
May 16, 2021
by
zhouts
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
项目代码初始化
parent
eb3b49cc
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
134 additions
and
16 deletions
+134
-16
src/main/java/im/zhaojun/common/util/ExcelCol.java
src/main/java/im/zhaojun/common/util/ExcelCol.java
+15
-4
src/main/java/im/zhaojun/system/model/Traffalarmrecordstate.java
...n/java/im/zhaojun/system/model/Traffalarmrecordstate.java
+112
-1
src/main/resources/application.properties
src/main/resources/application.properties
+2
-2
src/main/resources/mapper/DeptMapper.xml
src/main/resources/mapper/DeptMapper.xml
+2
-7
src/main/resources/static/js/sjcx/sjcx.js
src/main/resources/static/js/sjcx/sjcx.js
+3
-2
No files found.
src/main/java/im/zhaojun/common/util/ExcelCol.java
View file @
e4473dfa
package
im
.
zhaojun
.
common
.
util
;
package
im
.
zhaojun
.
common
.
util
;
import
lombok.Getter
;
import
lombok.Setter
;
@Getter
@Setter
public
class
ExcelCol
{
public
class
ExcelCol
{
private
String
colName
;
private
String
colName
;
private
String
colKey
;
private
String
colKey
;
public
String
getColName
()
{
return
colName
;
}
public
void
setColName
(
String
colName
)
{
this
.
colName
=
colName
;
}
public
String
getColKey
()
{
return
colKey
;
}
public
void
setColKey
(
String
colKey
)
{
this
.
colKey
=
colKey
;
}
}
}
src/main/java/im/zhaojun/system/model/Traffalarmrecordstate.java
View file @
e4473dfa
...
@@ -5,7 +5,6 @@ import lombok.Data;
...
@@ -5,7 +5,6 @@ import lombok.Data;
import
javax.persistence.Id
;
import
javax.persistence.Id
;
import
java.io.Serializable
;
import
java.io.Serializable
;
@Data
public
class
Traffalarmrecordstate
implements
Serializable
{
public
class
Traffalarmrecordstate
implements
Serializable
{
@Id
@Id
private
String
countdate
;
private
String
countdate
;
...
@@ -38,6 +37,118 @@ public class Traffalarmrecordstate implements Serializable {
...
@@ -38,6 +37,118 @@ public class Traffalarmrecordstate implements Serializable {
private
Long
failpushcount
;
private
Long
failpushcount
;
private
Long
successpushcount
;
private
Long
successpushcount
;
public
String
getCountdate
()
{
return
countdate
;
}
public
void
setCountdate
(
String
countdate
)
{
this
.
countdate
=
countdate
;
}
public
String
getAreaid
()
{
return
areaid
;
}
public
void
setAreaid
(
String
areaid
)
{
this
.
areaid
=
areaid
;
}
public
String
getEventtype
()
{
return
eventtype
;
}
public
void
setEventtype
(
String
eventtype
)
{
this
.
eventtype
=
eventtype
;
}
public
String
getFdid
()
{
return
fdid
;
}
public
void
setFdid
(
String
fdid
)
{
this
.
fdid
=
fdid
;
}
public
Integer
getChannelid
()
{
return
channelid
;
}
public
void
setChannelid
(
Integer
channelid
)
{
this
.
channelid
=
channelid
;
}
public
Integer
getCounthour
()
{
return
counthour
;
}
public
void
setCounthour
(
Integer
counthour
)
{
this
.
counthour
=
counthour
;
}
public
Short
getChanneltype
()
{
return
channeltype
;
}
public
void
setChanneltype
(
Short
channeltype
)
{
this
.
channeltype
=
channeltype
;
}
public
String
getChannelname
()
{
return
channelname
;
}
public
void
setChannelname
(
String
channelname
)
{
this
.
channelname
=
channelname
;
}
public
String
getAreaname
()
{
return
areaname
;
}
public
void
setAreaname
(
String
areaname
)
{
this
.
areaname
=
areaname
;
}
public
Long
getTotalcount
()
{
return
totalcount
;
}
public
void
setTotalcount
(
Long
totalcount
)
{
this
.
totalcount
=
totalcount
;
}
public
String
getEventtypename
()
{
return
eventtypename
;
}
public
void
setEventtypename
(
String
eventtypename
)
{
this
.
eventtypename
=
eventtypename
;
}
public
Long
getNopushcount
()
{
return
nopushcount
;
}
public
void
setNopushcount
(
Long
nopushcount
)
{
this
.
nopushcount
=
nopushcount
;
}
public
Long
getFailpushcount
()
{
return
failpushcount
;
}
public
void
setFailpushcount
(
Long
failpushcount
)
{
this
.
failpushcount
=
failpushcount
;
}
public
Long
getSuccesspushcount
()
{
return
successpushcount
;
}
public
void
setSuccesspushcount
(
Long
successpushcount
)
{
this
.
successpushcount
=
successpushcount
;
}
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
...
...
src/main/resources/application.properties
View file @
e4473dfa
spring.profiles.active
=
dev
spring.profiles.active
=
dev
server.port
=
808
2
server.port
=
808
4
spring.datasource.username
=
root
spring.datasource.username
=
root
spring.datasource.password
=
123456
spring.datasource.password
=
123456
#spring.datasource.url=jdbc:mysql://172.16.24.153:3306/imagepro?useUnicode=true&characterEncoding=utf-8&useSSL=false
#spring.datasource.url=jdbc:mysql://172.16.24.153:3306/imagepro?useUnicode=true&characterEncoding=utf-8&useSSL=false
spring.datasource.url
=
jdbc:mysql://
192.168.168.212:3306/imagepro?useUnicode=true&characterEncoding=utf-8&useSSL=false
spring.datasource.url
=
jdbc:mysql://
localhost:3306/imagepro?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=UTC
spring.datasource.driver-class-name
=
com.mysql.cj.jdbc.Driver
spring.datasource.driver-class-name
=
com.mysql.cj.jdbc.Driver
spring.datasource.filters
=
stat
spring.datasource.filters
=
stat
...
...
src/main/resources/mapper/DeptMapper.xml
View file @
e4473dfa
...
@@ -185,7 +185,7 @@
...
@@ -185,7 +185,7 @@
</if>
</if>
</if>
</if>
union all
union all
select a.* ,
b.five
from (SELECT
select a.* ,
0 vels
from (SELECT
CONCAT_WS( '_' ,A .sbbh , tdbh) dept_id,
CONCAT_WS( '_' ,A .sbbh , tdbh) dept_id,
A .tdmc dept_name,
A .tdmc dept_name,
A .xzbh parent_id,
A .xzbh parent_id,
...
@@ -202,12 +202,7 @@
...
@@ -202,12 +202,7 @@
T .dept_id = A .xzbh
T .dept_id = A .xzbh
<if
test=
"tdmc != null and tdmc!='' "
>
<if
test=
"tdmc != null and tdmc!='' "
>
and tdmc like '%${tdmc}%'
and tdmc like '%${tdmc}%'
</if>
)a left join (
</if>
)a
select video_id, max(five) five
from vehicletodaystatistic b
where ts = date_format(now(), '%Y-%m-%d')
group by video_id
) b on dept_id=b.video_id
</select>
</select>
...
...
src/main/resources/static/js/sjcx/sjcx.js
View file @
e4473dfa
let
state_sj
=
true
;
let
vue_sjcx
=
new
Vue
({
let
vue_sjcx
=
new
Vue
({
el
:
'
#sjcx
'
,
el
:
'
#sjcx
'
,
data
:
{
data
:
{
...
@@ -774,7 +775,7 @@ wss.onmessage = function (evt) {
...
@@ -774,7 +775,7 @@ wss.onmessage = function (evt) {
if_cz
=
true
;
if_cz
=
true
;
}
}
});
});
if
(
if_cz
)
{
//
if (if_cz) {
//事件id
//事件id
let
sjid
=
data
.
id
;
let
sjid
=
data
.
id
;
//报警时间
//报警时间
...
@@ -932,7 +933,7 @@ wss.onmessage = function (evt) {
...
@@ -932,7 +933,7 @@ wss.onmessage = function (evt) {
//播放声音
//播放声音
let
myMp3
=
document
.
getElementById
(
"
audio
"
);
let
myMp3
=
document
.
getElementById
(
"
audio
"
);
// audio.play();
// audio.play();
}
//
}
}
}
}
}
\ 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