Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
impnhyw
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
wangjinjing
impnhyw
Commits
8fc4920c
Commit
8fc4920c
authored
Aug 27, 2020
by
wangjinjing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复监控在线不在线统计方法
parent
b2b4c081
Changes
61
Hide whitespace changes
Inline
Side-by-side
Showing
61 changed files
with
1599 additions
and
1029 deletions
+1599
-1029
WebRoot/WEB-INF/web.xml
WebRoot/WEB-INF/web.xml
+9
-1
WebRoot/frame/assets/header-all.jsp
WebRoot/frame/assets/header-all.jsp
+17
-17
WebRoot/yw/history/video/ywvideohistorystate.js
WebRoot/yw/history/video/ywvideohistorystate.js
+3
-3
WebRoot/yw/homepage/homepage.js
WebRoot/yw/homepage/homepage.js
+0
-4
WebRoot/yw/homepage/showYDPDetail.js
WebRoot/yw/homepage/showYDPDetail.js
+1
-1
WebRoot/yw/homepage/statisticsGraph.js
WebRoot/yw/homepage/statisticsGraph.js
+4
-4
WebRoot/yw/nhyw/nhywjtxcrzgl/jobinfo/ywworkorder_detail.js
WebRoot/yw/nhyw/nhywjtxcrzgl/jobinfo/ywworkorder_detail.js
+2
-2
WebRoot/yw/operationcount/arearecordcount/showRecord.js
WebRoot/yw/operationcount/arearecordcount/showRecord.js
+2
-2
WebRoot/yw/operationcount/operationcount/arearecordcount/showRecord.js
...erationcount/operationcount/arearecordcount/showRecord.js
+2
-2
WebRoot/yw/operationcount/operationcount/videoarchivecount/onlinecount/onlinecount.js
...erationcount/videoarchivecount/onlinecount/onlinecount.js
+2
-2
WebRoot/yw/operationcount/operationcount/vqdcount/showVideo.js
...ot/yw/operationcount/operationcount/vqdcount/showVideo.js
+2
-2
WebRoot/yw/operationcount/videoarchivecount/onlinecount/onlinecount.js
...erationcount/videoarchivecount/onlinecount/onlinecount.js
+2
-2
WebRoot/yw/operationcount/vqdcount/showVideo.js
WebRoot/yw/operationcount/vqdcount/showVideo.js
+2
-2
WebRoot/yw/patroltask/machinetaskhistory/ywmachinestatusinfo.js
...t/yw/patroltask/machinetaskhistory/ywmachinestatusinfo.js
+179
-403
WebRoot/yw/patroltask/machinetaskhistory/ywmachinestatusinfo.jsp
.../yw/patroltask/machinetaskhistory/ywmachinestatusinfo.jsp
+12
-4
WebRoot/yw/patroltask/machinetaskhistory/ywmachinestatusinfo_show.jsp
...atroltask/machinetaskhistory/ywmachinestatusinfo_show.jsp
+193
-203
WebRoot/yw/recordalarm/detectorstate/detectorcurrentstate.js
WebRoot/yw/recordalarm/detectorstate/detectorcurrentstate.js
+126
-1
WebRoot/yw/recordalarm/detectorstate/gvdcurrentstate.jsp
WebRoot/yw/recordalarm/detectorstate/gvdcurrentstate.jsp
+4
-0
WebRoot/yw/recordalarm/detectorstate/smartsensorcurrentstate.jsp
.../yw/recordalarm/detectorstate/smartsensorcurrentstate.jsp
+4
-0
WebRoot/yw/recordalarm/nhywjtxhdglstate/nhywjtxhdglstate.jsp
WebRoot/yw/recordalarm/nhywjtxhdglstate/nhywjtxhdglstate.jsp
+5
-1
WebRoot/yw/recordalarm/nhywjtxhdglstate/ywxhdcurrentstate.js
WebRoot/yw/recordalarm/nhywjtxhdglstate/ywxhdcurrentstate.js
+136
-5
WebRoot/yw/recordalarm/nhywjtxhdglstate/ywxhdhistorystate.js
WebRoot/yw/recordalarm/nhywjtxhdglstate/ywxhdhistorystate.js
+0
-1
WebRoot/yw/recordalarm/nhywjtydpglstate/nhywjtydpglstate.js
WebRoot/yw/recordalarm/nhywjtydpglstate/nhywjtydpglstate.js
+119
-1
WebRoot/yw/recordalarm/nhywjtydpglstate/nhywjtydpglstate.jsp
WebRoot/yw/recordalarm/nhywjtydpglstate/nhywjtydpglstate.jsp
+4
-0
WebRoot/yw/recordalarm/ywmachinecurrentstate/ywmachinecurrentstate.js
...ecordalarm/ywmachinecurrentstate/ywmachinecurrentstate.js
+150
-2
WebRoot/yw/recordalarm/ywmachinecurrentstate/ywmachinecurrentstate.jsp
...cordalarm/ywmachinecurrentstate/ywmachinecurrentstate.jsp
+4
-0
WebRoot/yw/recordalarm/zxldstate/zxldcurrentstate.js
WebRoot/yw/recordalarm/zxldstate/zxldcurrentstate.js
+130
-1
WebRoot/yw/recordalarm/zxldstate/zxldcurrentstate.jsp
WebRoot/yw/recordalarm/zxldstate/zxldcurrentstate.jsp
+4
-0
WebRoot/yw/szmap/map.jsp
WebRoot/yw/szmap/map.jsp
+1
-1
WebRoot/yw/videoalarm/ywvideocurrentstate.js
WebRoot/yw/videoalarm/ywvideocurrentstate.js
+123
-51
WebRoot/yw/videomanage/videochannelset/sbtdspsr/sbtdspsr.js
WebRoot/yw/videomanage/videochannelset/sbtdspsr/sbtdspsr.js
+7
-36
WebRoot/yw/videomanage/videochannelset/ywvideochannelsetlist/ywvideochannelsetlist.js
...channelset/ywvideochannelsetlist/ywvideochannelsetlist.js
+15
-7
config/db.properties
config/db.properties
+10
-0
config/sqlMapConfig.xml
config/sqlMapConfig.xml
+1
-1
config/szmap/mainConfig.json
config/szmap/mainConfig.json
+2
-10
impnhyw.iml
impnhyw.iml
+19
-25
src/cn/base/filter/AppSessionOutFilter.java
src/cn/base/filter/AppSessionOutFilter.java
+17
-6
src/cn/yw/detector/action/DetectorAction.java
src/cn/yw/detector/action/DetectorAction.java
+4
-4
src/cn/yw/machinemanage/action/YwmachineinfoAction.java
src/cn/yw/machinemanage/action/YwmachineinfoAction.java
+1
-1
src/cn/yw/nhyw/nhywjtledydpgl/action/NhywjtledydpglAction.java
...n/yw/nhyw/nhywjtledydpgl/action/NhywjtledydpglAction.java
+1
-1
src/cn/yw/nhyw/nhywjtledydpgl/dao/NhywjtledydpglDao.java
src/cn/yw/nhyw/nhywjtledydpgl/dao/NhywjtledydpglDao.java
+2
-2
src/cn/yw/nhyw/nhywjtledydpgl/service/NhywjtledydpglService.java
...yw/nhyw/nhywjtledydpgl/service/NhywjtledydpglService.java
+1
-9
src/cn/yw/nhyw/nhywjtxhdgl/action/NhywjtxhdglAction.java
src/cn/yw/nhyw/nhywjtxhdgl/action/NhywjtxhdglAction.java
+3
-14
src/cn/yw/nhyw/nhywjtxhdgl/dao/NhywjtxhdglDao.java
src/cn/yw/nhyw/nhywjtxhdgl/dao/NhywjtxhdglDao.java
+2
-2
src/cn/yw/nhyw/nhywjtxhdgl/service/NhywjtxhdglService.java
src/cn/yw/nhyw/nhywjtxhdgl/service/NhywjtxhdglService.java
+1
-1
src/cn/yw/repairmanage/action/YwrepairjobinfoAction.java
src/cn/yw/repairmanage/action/YwrepairjobinfoAction.java
+1
-7
src/cn/yw/video/videostate/action/YwvideocurrentstateAction.java
...yw/video/videostate/action/YwvideocurrentstateAction.java
+1
-1
src/cn/yw/video/videostate/service/YwvideocurrentstateService.java
.../video/videostate/service/YwvideocurrentstateService.java
+7
-6
src/cn/yw/zxld/action/ZxldAction.java
src/cn/yw/zxld/action/ZxldAction.java
+1
-1
src/cn/yw/zxld/dao/ZxldDao.java
src/cn/yw/zxld/dao/ZxldDao.java
+2
-2
src/cn/yw/zxld/service/ZxldService.java
src/cn/yw/zxld/service/ZxldService.java
+1
-9
src/sqlmap/Nhywjtledydpgl.xml
src/sqlmap/Nhywjtledydpgl.xml
+7
-8
src/sqlmap/Nhywjtxhdgl.xml
src/sqlmap/Nhywjtxhdgl.xml
+13
-6
src/sqlmap/Ptxzs.xml
src/sqlmap/Ptxzs.xml
+1
-1
src/sqlmap/Ywcountvideoappraise.xml
src/sqlmap/Ywcountvideoappraise.xml
+2
-2
src/sqlmap/Ywmachinecurrentstate.xml
src/sqlmap/Ywmachinecurrentstate.xml
+6
-0
src/sqlmap/Ywmachineinfo.xml
src/sqlmap/Ywmachineinfo.xml
+1
-1
src/sqlmap/Ywrepairjobinfo.xml
src/sqlmap/Ywrepairjobinfo.xml
+131
-47
src/sqlmap/Ywvideocurrentstate.xml
src/sqlmap/Ywvideocurrentstate.xml
+92
-94
src/sqlmap/Ywvideohistorystate.xml
src/sqlmap/Ywvideohistorystate.xml
+1
-1
src/sqlmap/Zxld.xml
src/sqlmap/Zxld.xml
+4
-6
No files found.
WebRoot/WEB-INF/web.xml
View file @
8fc4920c
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<web-app
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xmlns=
"http://java.sun.com/xml/ns/javaee"
xsi:schemaLocation=
"http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
id=
"WebApp_ID"
version=
"3.0"
>
<web-app
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xmlns=
"http://java.sun.com/xml/ns/javaee"
xsi:schemaLocation=
"http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
id=
"WebApp_ID"
version=
"3.0"
>
<display-name>
impyw
</display-name>
<display-name>
imp
nh
yw
</display-name>
<welcome-file-list>
<welcome-file-list>
<welcome-file>
index.jsp
</welcome-file>
<welcome-file>
index.jsp
</welcome-file>
</welcome-file-list>
</welcome-file-list>
...
@@ -39,6 +39,14 @@
...
@@ -39,6 +39,14 @@
<filter-name>
AppSessionOutFilter
</filter-name>
<filter-name>
AppSessionOutFilter
</filter-name>
<filter-class>
cn.base.filter.AppSessionOutFilter
</filter-class>
<filter-class>
cn.base.filter.AppSessionOutFilter
</filter-class>
</filter>
</filter>
<filter-mapping>
<filter-name>
AppSessionOutFilter
</filter-name>
<url-pattern>
*.jsp
</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>
AppSessionOutFilter
</filter-name>
<url-pattern>
*.do
</url-pattern>
</filter-mapping>
<filter>
<filter>
<filter-name>
struts2
</filter-name>
<filter-name>
struts2
</filter-name>
<filter-class>
org.apache.struts2.dispatcher.FilterDispatcher
</filter-class>
<filter-class>
org.apache.struts2.dispatcher.FilterDispatcher
</filter-class>
...
...
WebRoot/frame/assets/header-all.jsp
View file @
8fc4920c
...
@@ -129,23 +129,23 @@
...
@@ -129,23 +129,23 @@
}
}
function
uuid
()
{
return
([
1
e7
]
+
-
1
e3
+
-
4
e3
+
-
8
e3
+
-
1
e11
).
replace
(
/
[
018
]
/g
,
c
=
>
(
c
^
crypto
.
getRandomValues
(
new
Uint8Array
(
1
))[
0
]
&
15
>>
c
/
4
).
toString
(
16
);
)
}
// function uuid() {
// function uuid() {
// var s = [];
// return ([1e7] + -1e3 + -4e3 + -8e3 + -1e11).replace(/[018]/g, c = > (c ^ crypto.getRandomValues(new Uint8Array(1))[0] & 15 >> c / 4).toString(16);
// var hexDigits = "0123456789abcdef";
// )
// for (var i = 0; i
<
36
;
i
++
)
{
// s[i] = hexDigits.substr(Math.floor(Math.random() * 0x10), 1);
// }
// s[14] = "4";
// s[19] = hexDigits.substr((s[19] & 0x3) | 0x8, 1);
// s[8] = s[13] = s[18] = s[23] = "-";
//
// var uuid = s.join("");
// return uuid;
// }
// }
function
uuid
()
{
var
s
=
[];
var
hexDigits
=
"
0123456789abcdef
"
;
for
(
var
i
=
0
;
i
<
36
;
i
++
)
{
s
[
i
]
=
hexDigits
.
substr
(
Math
.
floor
(
Math
.
random
()
*
0x10
),
1
);
}
s
[
14
]
=
"
4
"
;
s
[
19
]
=
hexDigits
.
substr
((
s
[
19
]
&
0x3
)
|
0x8
,
1
);
s
[
8
]
=
s
[
13
]
=
s
[
18
]
=
s
[
23
]
=
"
-
"
;
var
uuid
=
s
.
join
(
""
);
return
uuid
;
}
</script>
</script>
\ No newline at end of file
WebRoot/yw/history/video/ywvideohistorystate.js
View file @
8fc4920c
...
@@ -51,7 +51,7 @@ function getQueryParams(){
...
@@ -51,7 +51,7 @@ function getQueryParams(){
}
else
if
(
chosed
[
i
]
==
"
2
"
){
}
else
if
(
chosed
[
i
]
==
"
2
"
){
currentstate
+=
"
or a.networkerror=1
"
;
currentstate
+=
"
or a.networkerror=1
"
;
}
else
if
(
chosed
[
i
]
==
"
3
"
){
}
else
if
(
chosed
[
i
]
==
"
3
"
){
currentstate
+=
"
or
a.isonline=1
"
;
currentstate
+=
"
or
( a.isonline is not null and a.isonline!=0 )
"
;
}
else
if
(
chosed
[
i
]
==
"
4
"
){
}
else
if
(
chosed
[
i
]
==
"
4
"
){
currentstate
+=
"
or a.vqcstate=1
"
;
currentstate
+=
"
or a.vqcstate=1
"
;
}
else
if
(
chosed
[
i
]
==
"
5
"
){
}
else
if
(
chosed
[
i
]
==
"
5
"
){
...
@@ -61,7 +61,7 @@ function getQueryParams(){
...
@@ -61,7 +61,7 @@ function getQueryParams(){
}
}
}
}
if
(
currentstate
==
"
1
"
)
{
if
(
currentstate
==
"
1
"
)
{
sParam
.
tableparam
=
"
and
a.isonline=1
"
;
sParam
.
tableparam
=
"
and
a.isonline is not null and a.isonline!=0
"
;
}
else
{
}
else
{
if
(
currentstate
!=
""
){
if
(
currentstate
!=
""
){
sParam
.
tableparam
=
"
and (
"
+
currentstate
.
substr
(
3
)
+
"
)
"
;
sParam
.
tableparam
=
"
and (
"
+
currentstate
.
substr
(
3
)
+
"
)
"
;
...
@@ -335,7 +335,7 @@ function initCacheStatus(){
...
@@ -335,7 +335,7 @@ function initCacheStatus(){
}
}
function
transStatus
(
data
){
function
transStatus
(
data
){
if
(
data
==
"
1
"
){
if
(
data
!=
"
0
"
){
return
"
<div style='height:13px;width:13px;background-color:#60b631;border-radius:50%;-moz-border-radius: 50%;-webkit-border-radius: 50%;margin:0 auto;'></div>
"
;
return
"
<div style='height:13px;width:13px;background-color:#60b631;border-radius:50%;-moz-border-radius: 50%;-webkit-border-radius: 50%;margin:0 auto;'></div>
"
;
}
else
if
(
data
==
"
0
"
)
{
}
else
if
(
data
==
"
0
"
)
{
return
"
<div style='height:13px;width:13px;background-color:#fe0000;border-radius:50%;-moz-border-radius: 50%;-webkit-border-radius: 50%;margin:0 auto;'></div>
"
;
return
"
<div style='height:13px;width:13px;background-color:#fe0000;border-radius:50%;-moz-border-radius: 50%;-webkit-border-radius: 50%;margin:0 auto;'></div>
"
;
...
...
WebRoot/yw/homepage/homepage.js
View file @
8fc4920c
...
@@ -100,10 +100,6 @@ function getQueryParams(){
...
@@ -100,10 +100,6 @@ function getQueryParams(){
// 加载列表
// 加载列表
function
initGrid
(){
function
initGrid
(){
toolbar
=
[{
toolbar
=
[{
text
:
'
查询
'
,
iconCls
:
'
icon-search
'
,
handler
:
doSearch
},{
text
:
'
待办事项
'
,
text
:
'
待办事项
'
,
iconCls
:
'
icon-showList
'
,
iconCls
:
'
icon-showList
'
,
handler
:
showToDoList
handler
:
showToDoList
...
...
WebRoot/yw/homepage/showYDPDetail.js
View file @
8fc4920c
...
@@ -44,7 +44,7 @@ function initGrid(){
...
@@ -44,7 +44,7 @@ function initGrid(){
checkbox
:
'
true
'
,
checkbox
:
'
true
'
,
width
:
30
width
:
30
},
},
{
field
:
'
ledmc
'
,
title
:
'
LED名称
'
,
hidden
:
false
,
width
:
120
},
{
field
:
'
ledmc
'
,
title
:
'
LED名称
'
,
hidden
:
false
,
width
:
120
},
{
field
:
'
ledbh
'
,
title
:
'
LED编号
'
,
hidden
:
false
,
width
:
120
},
{
field
:
'
ledbh
'
,
title
:
'
LED编号
'
,
hidden
:
false
,
width
:
120
},
{
field
:
'
qymc
'
,
title
:
'
区域名称
'
,
hidden
:
false
,
width
:
120
},
{
field
:
'
qymc
'
,
title
:
'
区域名称
'
,
hidden
:
false
,
width
:
120
},
{
field
:
'
lkmc
'
,
title
:
'
路口名称
'
,
hidden
:
false
,
width
:
120
},
{
field
:
'
lkmc
'
,
title
:
'
路口名称
'
,
hidden
:
false
,
width
:
120
},
...
...
WebRoot/yw/homepage/statisticsGraph.js
View file @
8fc4920c
...
@@ -212,13 +212,13 @@ function xhdRate() {
...
@@ -212,13 +212,13 @@ function xhdRate() {
if
(
res
)
{
if
(
res
)
{
//console.log(res);
//console.log(res);
// 信号灯在线率
// 信号灯在线率
$
(
"
#xhdOnline
"
).
text
(
res
.
online
);
$
(
"
#xhdOnline
"
).
text
(
res
.
xhd
online
);
$
(
"
#xhdUnOnline
"
).
text
(
res
.
unonline
);
$
(
"
#xhdUnOnline
"
).
text
(
res
.
xhd
unonline
);
var
data
=
[{
var
data
=
[{
value
:
res
.
online
,
value
:
res
.
xhd
online
,
name
:
'
在线
'
name
:
'
在线
'
},
{
},
{
value
:
res
.
unonline
,
value
:
res
.
xhd
unonline
,
name
:
'
不在线
'
name
:
'
不在线
'
}];
}];
EchartsBase
.
circularGraphChart
({
EchartsBase
.
circularGraphChart
({
...
...
WebRoot/yw/nhyw/nhywjtxcrzgl/jobinfo/ywworkorder_detail.js
View file @
8fc4920c
...
@@ -22,7 +22,7 @@ $(function(){
...
@@ -22,7 +22,7 @@ $(function(){
success
:
function
(
result
){
success
:
function
(
result
){
var
str
=
""
;
var
str
=
""
;
for
(
var
i
=
0
;
i
<
result
.
length
;
i
++
){
for
(
var
i
=
0
;
i
<
result
.
length
;
i
++
){
str
+=
"
<a class=
\"
ahref
\"
href='
"
+
CommonData
.
up
loadurl
+
"
/
"
+
result
[
i
].
foldername
+
"
'>
"
+
result
[
i
].
name
+
"
</a>
"
;
str
+=
"
<a class=
\"
ahref
\"
href='
"
+
CommonData
.
down
loadurl
+
"
/
"
+
result
[
i
].
foldername
+
"
'>
"
+
result
[
i
].
name
+
"
</a>
"
;
}
}
$
(
"
#receiverdata
"
).
html
(
str
);
$
(
"
#receiverdata
"
).
html
(
str
);
}
}
...
@@ -84,7 +84,7 @@ function renderOrder(){
...
@@ -84,7 +84,7 @@ function renderOrder(){
$
(
"
#accuracyofinfo
"
).
text
(
transEmptyObj
(
records
.
accuracyofinfo
));
$
(
"
#accuracyofinfo
"
).
text
(
transEmptyObj
(
records
.
accuracyofinfo
));
$
(
"
#construction
"
).
text
(
transEmptyObj
(
records
.
construction
));
$
(
"
#construction
"
).
text
(
transEmptyObj
(
records
.
construction
));
$
(
"
#completiontime
"
).
text
(
transEmptyObj
(
records
.
completiontime
));
$
(
"
#completiontime
"
).
text
(
transEmptyObj
(
records
.
completiontime
));
$
(
"
#receivercompany
"
).
text
(
transEmptyObj
(
records
.
receivercompany
));
$
(
"
#receivercompany
"
).
text
(
transEmptyObj
(
records
.
receivercompany
name
));
$
(
"
#receiverpeople
"
).
text
(
transEmptyObj
(
records
.
receiverpeople
));
$
(
"
#receiverpeople
"
).
text
(
transEmptyObj
(
records
.
receiverpeople
));
$
(
"
#receiverphone
"
).
text
(
transEmptyObj
(
records
.
receiverphone
));
$
(
"
#receiverphone
"
).
text
(
transEmptyObj
(
records
.
receiverphone
));
$
(
"
#receivertime
"
).
text
(
transEmptyObj
(
records
.
receivertime
));
$
(
"
#receivertime
"
).
text
(
transEmptyObj
(
records
.
receivertime
));
...
...
WebRoot/yw/operationcount/arearecordcount/showRecord.js
View file @
8fc4920c
...
@@ -17,9 +17,9 @@ function getQueryParams(){
...
@@ -17,9 +17,9 @@ function getQueryParams(){
var
state
=
records
.
state
;
var
state
=
records
.
state
;
if
(
type
==
"
isonline
"
){
//监控点是否在线详细展示
if
(
type
==
"
isonline
"
){
//监控点是否在线详细展示
if
(
state
==
'
1
'
){
//正常
if
(
state
==
'
1
'
){
//正常
tableparam
=
"
and
isonline!=0
"
;
tableparam
=
"
and
( isonline is not null and isonline!=0)
"
;
}
else
{
}
else
{
tableparam
=
"
and
isonline=0
"
;
tableparam
=
"
and
(isonline is null or isonline=0)
"
;
}
}
}
else
if
(
type
==
"
video
"
){
//监控点设备异常详细展示
}
else
if
(
type
==
"
video
"
){
//监控点设备异常详细展示
if
(
state
==
'
1
'
){
//正常
if
(
state
==
'
1
'
){
//正常
...
...
WebRoot/yw/operationcount/operationcount/arearecordcount/showRecord.js
View file @
8fc4920c
...
@@ -17,9 +17,9 @@ function getQueryParams(){
...
@@ -17,9 +17,9 @@ function getQueryParams(){
var
state
=
records
.
state
;
var
state
=
records
.
state
;
if
(
type
==
"
isonline
"
){
//监控点是否在线详细展示
if
(
type
==
"
isonline
"
){
//监控点是否在线详细展示
if
(
state
==
'
1
'
){
//正常
if
(
state
==
'
1
'
){
//正常
tableparam
=
"
and
isonline!=0
"
;
tableparam
=
"
and
(isonline is not null and isonline!=0)
"
;
}
else
{
}
else
{
tableparam
=
"
and
isonline=0
"
;
tableparam
=
"
and
( isonline is null or isonline=0)
"
;
}
}
}
else
if
(
type
==
"
video
"
){
//监控点设备异常详细展示
}
else
if
(
type
==
"
video
"
){
//监控点设备异常详细展示
if
(
state
==
'
1
'
){
//正常
if
(
state
==
'
1
'
){
//正常
...
...
WebRoot/yw/operationcount/operationcount/videoarchivecount/onlinecount/onlinecount.js
View file @
8fc4920c
...
@@ -388,10 +388,10 @@ function shownArea(xzbh,xzmc,flag){
...
@@ -388,10 +388,10 @@ function shownArea(xzbh,xzmc,flag){
//tableparam = " and b.currentstateid is null";
//tableparam = " and b.currentstateid is null";
}
else
if
(
flag
==
3
){
}
else
if
(
flag
==
3
){
title
=
"
在线数
"
;
title
=
"
在线数
"
;
tableparam
=
"
and b.isonline
=1
"
tableparam
=
"
and b.isonline
is not null and b.isonline!=0
"
}
else
if
(
flag
==
4
){
}
else
if
(
flag
==
4
){
title
=
"
离线数
"
;
title
=
"
离线数
"
;
tableparam
=
"
and b.isonline=0
"
tableparam
=
"
and ( b.isonline=0 or b.isonline is null)
"
}
}
params
.
tableparam
=
tableparam
;
params
.
tableparam
=
tableparam
;
params
.
title
=
title
;
params
.
title
=
title
;
...
...
WebRoot/yw/operationcount/operationcount/vqdcount/showVideo.js
View file @
8fc4920c
...
@@ -22,9 +22,9 @@ function getQueryParams(){
...
@@ -22,9 +22,9 @@ function getQueryParams(){
var
state
=
records
.
state
;
var
state
=
records
.
state
;
if
(
type
==
"
isonline
"
){
//监控点是否在线详细展示
if
(
type
==
"
isonline
"
){
//监控点是否在线详细展示
if
(
state
==
'
1
'
){
//正常
if
(
state
==
'
1
'
){
//正常
tableparam
=
"
and isonline
=1
"
;
tableparam
=
"
and isonline
is not null and isonline!=0
"
;
}
else
{
}
else
{
tableparam
=
"
and
isonline=0
"
;
tableparam
=
"
and
( isonline=0 or isonline is null)
"
;
}
}
}
else
if
(
type
==
"
video
"
){
//监控点设备异常详细展示
}
else
if
(
type
==
"
video
"
){
//监控点设备异常详细展示
if
(
state
==
'
1
'
){
//正常
if
(
state
==
'
1
'
){
//正常
...
...
WebRoot/yw/operationcount/videoarchivecount/onlinecount/onlinecount.js
View file @
8fc4920c
...
@@ -428,9 +428,9 @@ function shownArea(xzbh,xzmc,flag){
...
@@ -428,9 +428,9 @@ function shownArea(xzbh,xzmc,flag){
}
}
if
(
params
.
alarmdevicetype
==
"
1
"
)
{
if
(
params
.
alarmdevicetype
==
"
1
"
)
{
if
(
flag
==
3
)
{
if
(
flag
==
3
)
{
tableparam
=
"
and b.isonline
=1
"
tableparam
=
"
and b.isonline
is not null and b.isonline!=0
"
}
else
if
(
flag
==
4
)
{
}
else
if
(
flag
==
4
)
{
tableparam
=
"
and
b.isonline=0
"
tableparam
=
"
and
( b.isonline=0 or b.isonline is null)
"
}
}
}
else
if
(
params
.
alarmdevicetype
==
"
2
"
)
{
//服務器
}
else
if
(
params
.
alarmdevicetype
==
"
2
"
)
{
//服務器
if
(
flag
==
3
)
{
if
(
flag
==
3
)
{
...
...
WebRoot/yw/operationcount/vqdcount/showVideo.js
View file @
8fc4920c
...
@@ -22,9 +22,9 @@ function getQueryParams(){
...
@@ -22,9 +22,9 @@ function getQueryParams(){
var
state
=
records
.
state
;
var
state
=
records
.
state
;
if
(
type
==
"
isonline
"
){
//监控点是否在线详细展示
if
(
type
==
"
isonline
"
){
//监控点是否在线详细展示
if
(
state
==
'
1
'
){
//正常
if
(
state
==
'
1
'
){
//正常
tableparam
=
"
and isonline
=1
"
;
tableparam
=
"
and isonline
is not null and isonline!=0
"
;
}
else
{
}
else
{
tableparam
=
"
and
isonline=0
"
;
tableparam
=
"
and
( isonline=0 or isonline is null)
"
;
}
}
}
else
if
(
type
==
"
video
"
){
//监控点设备异常详细展示
}
else
if
(
type
==
"
video
"
){
//监控点设备异常详细展示
if
(
state
==
'
1
'
){
//正常
if
(
state
==
'
1
'
){
//正常
...
...
WebRoot/yw/patroltask/machinetaskhistory/ywmachinestatusinfo.js
View file @
8fc4920c
var
windowId
,
proName
=
window
.
location
.
pathname
.
split
(
"
/
"
)[
1
],
sysUrl
=
"
http://
"
+
window
.
location
.
host
+
"
/
"
+
proName
,
toEdit
;
var
windowId
,
proName
=
window
.
location
.
pathname
.
split
(
"
/
"
)[
1
],
$
(
function
(){
sysUrl
=
"
http://
"
+
window
.
location
.
host
+
"
/
"
+
proName
,
toEdit
;
initDefault
();
var
sParam
=
{};
$
(
function
()
{
initDefault
();
});
});
//默认
//默认
function
initDefault
(){
function
initDefault
()
{
$
(
"
#startTime
"
).
datetimebox
(
"
setValue
"
,
$
.
getTodayStart
(
0
,
"
00:00:00
"
));
$
(
"
#startTime
"
).
datetimebox
(
"
setValue
"
,
$
.
getTodayStart
(
0
,
"
00:00:00
"
));
$
(
"
#endTime
"
).
datetimebox
(
"
setValue
"
,
$
.
getTodayEnd
(
"
23:59:59
"
));
$
(
"
#endTime
"
).
datetimebox
(
"
setValue
"
,
$
.
getTodayEnd
(
"
23:59:59
"
));
initGrid
();
initGrid
();
}
}
//查询条件
function
getQueryParams
(){
var
sParam
=
{};
var
startTime
=
$
(
'
#startTime
'
).
datetimebox
(
"
getValue
"
);
var
endTime
=
$
(
'
#endTime
'
).
datetimebox
(
"
getValue
"
);
sParam
.
LIKEmachinename
=
$
(
'
#LIKEmachinename
'
).
textbox
(
"
getValue
"
);
sParam
.
TaskMachine
=
"
0
"
;
if
(
$
(
'
#TaskMachine
'
).
is
(
'
:checked
'
)){
sParam
.
TaskMachine
=
"
1
"
;
$
(
"
#taskDiv
"
).
show
();
$
(
"
#notaskDiv
"
).
hide
();
}
else
{
$
(
"
#taskDiv
"
).
hide
();
$
(
"
#notaskDiv
"
).
show
();
}
var
tableparam
=
""
;
if
(
!
(
startTime
==
null
||
startTime
==
""
||
startTime
==
undefined
)){
tableparam
+=
"
AND statusuptime > '
"
+
startTime
+
"
'
"
;
}
if
(
!
(
endTime
==
null
||
endTime
==
""
||
endTime
==
undefined
)){
tableparam
+=
"
AND statusuptime < '
"
+
endTime
+
"
'
"
;
}
sParam
.
tableparam
=
tableparam
;
return
sParam
;
//查询条件
function
getQueryParams
()
{
var
startTime
=
$
(
'
#startTime
'
).
datetimebox
(
"
getValue
"
);
var
endTime
=
$
(
'
#endTime
'
).
datetimebox
(
"
getValue
"
);
sParam
.
LIKEmachinename
=
$
(
'
#LIKEmachinename
'
).
textbox
(
"
getValue
"
);
sParam
.
TaskMachine
=
$
(
'
#TaskMachine
'
).
combobox
(
"
getValue
"
);
var
tableparam
=
""
;
if
(
!
(
startTime
==
null
||
startTime
==
""
||
startTime
==
undefined
))
{
tableparam
+=
"
AND statusuptime > '
"
+
startTime
+
"
'
"
;
}
if
(
!
(
endTime
==
null
||
endTime
==
""
||
endTime
==
undefined
))
{
tableparam
+=
"
AND statusuptime < '
"
+
endTime
+
"
'
"
;
}
sParam
.
tableparam
=
tableparam
;
return
sParam
;
}
}
//加载列表
//加载列表
function
initGrid
(){
function
initGrid
()
{
$
(
"
#taskDiv
"
).
show
();
var
toolbar
=
[{
$
(
"
#notaskDiv
"
).
hide
();
text
:
'
查询
'
,
var
toolbar
=
[{
iconCls
:
'
icon-search
'
,
text
:
'
查询
'
,
handler
:
doSearch
iconCls
:
'
icon-search
'
,
}];
handler
:
doSearch
$
(
'
#tableGrid
'
).
datagrid
({
}
/*,{
toolbar
:
toolbar
,
text : '增加',
singleSelect
:
true
,
iconCls : 'icon-add',
rownumbers
:
true
,
handler : doAdd
queryParams
:
getQueryParams
(),
},{
url
:
'
ywmachinestatusinfoAction!listYwmachinestatusinfoByPage.do
'
,
text : '修改',
columns
:
[[
iconCls : 'icon-cut',
{
handler : doEdit
field
:
'
A
'
,
},{
checkbox
:
'
true
'
,
text : '删除',
width
:
30
iconCls : 'icon-delete',
},
handler : doDelete
{
field
:
'
machineid
'
,
title
:
'
id
'
,
hidden
:
true
,
width
:
120
},
}*/
];
{
$
(
'
#tableGrid
'
).
datagrid
({
field
:
'
machinestatusid
'
,
title
:
'
machinestatusid
'
,
hidden
:
true
,
width
:
120
,
toolbar
:
toolbar
,
formatter
:
function
showClick
(
value
,
record
,
num
)
{
singleSelect
:
true
,
return
"
<a href='javascript:void(0);' class='ahref' onclick='doUpdate(
"
+
num
+
"
)'>
"
+
value
+
"
</a>
"
;
rownumbers
:
true
,
}
queryParams
:
getQueryParams
(),
},
url
:
'
ywmachinestatusinfoAction!listYwmachinestatusinfoByPage.do
'
,
{
field
:
'
machinename
'
,
title
:
'
机器名称
'
,
hidden
:
false
,
width
:
120
},
// url : 'ywmachinestatusinfoAction!get_ywmachinestatusinfo.do',
{
field
:
'
machineip
'
,
title
:
'
设备ip
'
,
hidden
:
false
,
width
:
110
},
columns
:
[[
{
{
field
:
'
zjzt
'
,
title
:
'
主机状态
'
,
hidden
:
true
,
width
:
60
,
field
:
'
A
'
,
formatter
:
function
showClick
(
value
,
record
,
num
)
{
checkbox
:
'
true
'
,
// console.log("主机:",value,record);
width
:
30
if
(
value
==
1
)
{
},
return
"
<div style='height:13px;width:13px;background-color:green;border-radius:50%;-moz-border-radius: 50%;-webkit-border-radius: 50%;margin:0 auto;'></div>
"
;
{
field
:
'
machinestatusid
'
,
title
:
'
machinestatusid
'
,
hidden
:
true
,
width
:
120
,
}
else
if
(
value
==
0
)
{
formatter
:
function
showClick
(
value
,
record
,
num
){
return
"
<div style='height:13px;width:13px;background-color:#fe0000;border-radius:50%;-moz-border-radius: 50%;-webkit-border-radius: 50%;margin:0 auto;'></div>
"
;
return
"
<a href='javascript:void(0);' class='ahref' onclick='doUpdate(
"
+
num
+
"
)'>
"
+
value
+
"
</a>
"
;
}
else
{
}
return
value
;
},
}
{
field
:
'
machinename
'
,
title
:
'
机器名称
'
,
hidden
:
false
,
width
:
120
},
}
{
field
:
'
machineip
'
,
title
:
'
设备ip
'
,
hidden
:
false
,
width
:
110
},
},
{
field
:
'
zjzt
'
,
title
:
'
主机状态
'
,
hidden
:
true
,
width
:
60
,
{
formatter
:
function
showClick
(
value
,
record
,
num
){
field
:
'
cpuzt
'
,
title
:
'
cpu使用率
'
,
hidden
:
false
,
width
:
120
,
// console.log("主机:",value,record);
formatter
:
function
(
value
,
record
,
num
)
{
if
(
value
==
1
){
var
cpu
=
record
.
cpusy
;
return
"
<div style='height:13px;width:13px;background-color:green;border-radius:50%;-moz-border-radius: 50%;-webkit-border-radius: 50%;margin:0 auto;'></div>
"
;
if
(
cpu
!=
null
)
{
}
else
if
(
value
==
0
){
cpu
=
cpu
.
indexOf
(
'
%
'
)
>
0
?
cpu
.
replace
(
"
%
"
,
""
)
:
cpu
;
return
"
<div style='height:13px;width:13px;background-color:#fe0000;border-radius:50%;-moz-border-radius: 50%;-webkit-border-radius: 50%;margin:0 auto;'></div>
"
;
if
(
value
==
0
)
{
}
else
{
return
'
<div class="progress"><div class="progress-value" style="background-color:red;width:
'
+
(
cpu
||
0
)
+
'
px;"><div class="progress-text" style="border:1px solid red;">
'
+
(
cpu
+
"
%
"
||
""
)
+
"
</div></div></div>
"
return
value
;
}
else
{
}
return
$
.
gridProgressBar
(
cpu
+
"
%
"
,
100
*
cpu
/
100.00
);
}
}
},
}
else
{
{
field
:
'
cpuzt
'
,
title
:
'
cpu使用率
'
,
hidden
:
false
,
width
:
120
,
return
"
未知
"
;
formatter
:
function
(
value
,
record
,
num
){
}
var
cpu
=
record
.
cpusy
;
if
(
cpu
!=
null
){
cpu
=
cpu
.
indexOf
(
'
%
'
)
>
0
?
cpu
.
replace
(
"
%
"
,
""
):
cpu
;
if
(
value
==
0
){
return
'
<div class="progress"><div class="progress-value" style="background-color:red;width:
'
+
(
cpu
||
0
)
+
'
px;"><div class="progress-text" style="border:1px solid red;">
'
+
(
cpu
+
"
%
"
||
""
)
+
"
</div></div></div>
"
}
else
{
return
$
.
gridProgressBar
(
cpu
+
"
%
"
,
100
*
cpu
/
100.00
);
}
}
else
{
return
"
未知
"
;
}
}
}
},
},
{
field
:
'
nczt
'
,
title
:
'
内存使用率
'
,
hidden
:
false
,
width
:
225
,
{
formatter
:
function
(
value
,
record
,
num
){
field
:
'
nczt
'
,
title
:
'
内存使用率
'
,
hidden
:
false
,
width
:
225
,
var
nc
=
record
.
ncsy
;
formatter
:
function
(
value
,
record
,
num
)
{
var
ncrl
=
Math
.
round
(
record
.
ncrl
);
var
nc
=
record
.
ncsy
;
var
sync
=
""
;
var
ncrl
=
Math
.
round
(
record
.
ncrl
);
if
(
nc
!=
null
){
var
sync
=
""
;
nc
=
Math
.
round
(
nc
.
indexOf
(
'
%
'
)
>
0
?
nc
.
replace
(
"
%
"
,
""
):
nc
);
if
(
nc
!=
null
)
{
sync
=
(
ncrl
*
nc
)
/
100
;
nc
=
Math
.
round
(
nc
.
indexOf
(
'
%
'
)
>
0
?
nc
.
replace
(
"
%
"
,
""
)
:
nc
);
sync
=
sync
.
toFixed
(
2
);
sync
=
(
ncrl
*
nc
)
/
100
;
if
(
value
==
0
){
sync
=
sync
.
toFixed
(
2
);
return
'
<div class="progress">
'
+
if
(
value
==
0
)
{
'
<div class="progress-value" style="background-color:red;width:
'
+
(
nc
||
0
)
+
'
px;">
'
+
return
'
<div class="progress">
'
+
'
<div class="progress-text progress-textRed" style="border:1px solid red;">
'
+
(
nc
+
"
%
"
||
""
)
+
"
</div>
"
+
'
<div class="progress-value" style="background-color:red;width:
'
+
(
nc
||
0
)
+
'
px;">
'
+
"
</div>
"
+
'
<div class="progress-text progress-textRed" style="border:1px solid red;">
'
+
(
nc
+
"
%
"
||
""
)
+
"
</div>
"
+
"
<div style='position: relative;left: 105px; top: -18px;'>
"
+
parseFloat
(
sync
)
+
"
G /
"
+
parseFloat
(
ncrl
)
+
"
G(总)</div>
"
+
"
</div>
"
+
"
</div>
"
;
"
<div style='position: relative;left: 105px; top: -18px;'>
"
+
parseFloat
(
sync
)
+
"
G /
"
+
parseFloat
(
ncrl
)
+
"
G(总)</div>
"
+
}
else
{
"
</div>
"
;
return
'
<div class="progress">
'
+
}
else
{
'
<div class="progress-value" style="width:
'
+
(
nc
||
0
)
+
'
px;">
'
+
return
'
<div class="progress">
'
+
'
<div class="progress-text">
'
+
(
nc
+
"
%
"
||
""
)
+
"
</div>
"
+
'
<div class="progress-value" style="width:
'
+
(
nc
||
0
)
+
'
px;">
'
+
"
</div>
"
+
'
<div class="progress-text">
'
+
(
nc
+
"
%
"
||
""
)
+
"
</div>
"
+
"
<div style='position: relative;left: 105px; top: -18px;'>
"
+
parseFloat
(
sync
)
+
"
G /
"
+
parseFloat
(
ncrl
)
+
"
G(总)</div>
"
+
"
</div>
"
+
"
</div>
"
;
"
<div style='position: relative;left: 105px; top: -18px;'>
"
+
parseFloat
(
sync
)
+
"
G /
"
+
parseFloat
(
ncrl
)
+
"
G(总)</div>
"
+
"
</div>
"
;
}
}
// return $.gridProgressBar(nc+"%",100*nc/100.00);
// return $.gridProgressBar(nc+"%",100*nc/100.00);
}
else
{
}
else
{
return
"
未知
"
;
return
"
未知
"
;
}
}
}
}
},
},
{
field
:
'
ypzt
'
,
title
:
'
硬盘使用率
'
,
hidden
:
false
,
width
:
250
,
{
formatter
:
function
(
value
,
record
,
num
){
field
:
'
ypzt
'
,
title
:
'
硬盘使用率
'
,
hidden
:
false
,
width
:
250
,
var
yp
=
record
.
ypsy
;
formatter
:
function
(
value
,
record
,
num
)
{
var
yprl
=
Math
.
round
(
record
.
yprl
);
var
yp
=
record
.
ypsy
;
var
ypsy
=
""
;
var
yprl
=
Math
.
round
(
record
.
yprl
);
if
(
yp
!=
null
){
var
ypsy
=
""
;
yp
=
Math
.
round
(
yp
.
indexOf
(
'
%
'
)
>
0
?
yp
.
replace
(
"
%
"
,
""
):
yp
);
if
(
yp
!=
null
)
{
ypsy
=
(
yprl
*
yp
)
/
100
;
yp
=
Math
.
round
(
yp
.
indexOf
(
'
%
'
)
>
0
?
yp
.
replace
(
"
%
"
,
""
)
:
yp
);
ypsy
=
ypsy
.
toFixed
(
2
);
ypsy
=
(
yprl
*
yp
)
/
100
;
if
(
value
==
0
){
ypsy
=
ypsy
.
toFixed
(
2
);
return
'
<div class="progress">
'
+
if
(
value
==
0
)
{
'
<div class="progress-value" style="background-color:red;width:
'
+
(
yp
||
0
)
+
'
px;">
'
+
return
'
<div class="progress">
'
+
'
<div class="progress-text progress-textRed" style="border:1px solid red;">
'
+
(
yp
+
"
%
"
||
""
)
+
"
</div>
"
+
'
<div class="progress-value" style="background-color:red;width:
'
+
(
yp
||
0
)
+
'
px;">
'
+
"
</div>
"
+
'
<div class="progress-text progress-textRed" style="border:1px solid red;">
'
+
(
yp
+
"
%
"
||
""
)
+
"
</div>
"
+
"
<div style='position: relative;left: 105px; top: -18px;'>
"
+
parseFloat
(
ypsy
)
+
"
G /
"
+
parseFloat
(
yprl
)
+
"
G(总)</div>
"
+
"
</div>
"
+
"
</div>
"
;
"
<div style='position: relative;left: 105px; top: -18px;'>
"
+
parseFloat
(
ypsy
)
+
"
G /
"
+
parseFloat
(
yprl
)
+
"
G(总)</div>
"
+
}
else
{
"
</div>
"
;
return
'
<div class="progress">
'
+
}
else
{
'
<div class="progress-value" style="width:
'
+
(
yp
||
0
)
+
'
px;">
'
+
return
'
<div class="progress">
'
+
'
<div class="progress-text">
'
+
(
yp
+
"
%
"
||
""
)
+
"
</div>
"
+
'
<div class="progress-value" style="width:
'
+
(
yp
||
0
)
+
'
px;">
'
+
"
</div>
"
+
'
<div class="progress-text">
'
+
(
yp
+
"
%
"
||
""
)
+
"
</div>
"
+
"
<div style='position: relative;left: 105px; top: -18px;'>
"
+
parseFloat
(
ypsy
)
+
"
G /
"
+
parseFloat
(
yprl
)
+
"
G(总)</div>
"
+
"
</div>
"
+
"
</div>
"
;
"
<div style='position: relative;left: 105px; top: -18px;'>
"
+
parseFloat
(
ypsy
)
+
"
G /
"
+
parseFloat
(
yprl
)
+
"
G(总)</div>
"
+
}
"
</div>
"
;
}
else
{
}
return
"
未知
"
;
}
else
{
}
return
"
未知
"
;
}
}
},
}
{
field
:
'
statusuptime
'
,
title
:
'
检测时间
'
,
hidden
:
false
,
width
:
125
},
},
{
field
:
'
machineid
'
,
title
:
'
操作
'
,
hidden
:
false
,
width
:
70
,
{
field
:
'
statusuptime
'
,
title
:
'
检测时间
'
,
hidden
:
false
,
width
:
125
},
formatter
:
function
showClick
(
value
,
record
,
num
){
{
field
:
'
csmc
'
,
title
:
'
是否启用
'
,
hidden
:
true
,
width
:
125
},
return
'
<a href="javascript:;" style="background: #67c23a;color:white;padding: 2px,5px;" class="l-btn l-btn-small" onclick="lookdetail(
'
+
num
+
'
)" group="" id=""><span class="l-btn-left"><span class="l-btn-text">详情</span></span></a>
'
;
{
}
field
:
'
xxx
'
,
title
:
'
操作
'
,
hidden
:
false
,
width
:
70
,
}
formatter
:
function
showClick
(
value
,
record
,
num
)
{
]]
return
'
<a href="javascript:;" style="background: #67c23a;color:white;padding: 2px 5px;" class="l-btn l-btn-small" onclick="lookdetail(
'
+
num
+
'
)" group="" id=""><span class="l-btn-left"><span class="l-btn-text">详情</span></span></a>
'
;
});
}
$
(
'
#tableNoTaskGrid
'
).
datagrid
({
}
toolbar
:
toolbar
,
]]
singleSelect
:
true
,
});
rownumbers
:
true
,
queryParams
:
getQueryParams
(),
url
:
'
ywmachinestatusinfoAction!listYwmachinestatusinfoByPage.do
'
,
columns
:
[[
{
field
:
'
A
'
,
checkbox
:
'
true
'
,
width
:
30
},
{
field
:
'
machineid
'
,
title
:
'
machineid
'
,
hidden
:
true
,
width
:
120
,
formatter
:
function
showClick
(
value
,
record
,
num
){
return
"
<a href='javascript:void(0);' class='ahref' onclick='doUpdate(
"
+
num
+
"
)'>
"
+
value
+
"
</a>
"
;
}
},
{
field
:
'
machinename
'
,
title
:
'
服务器名称
'
,
hidden
:
false
,
width
:
120
},
{
field
:
'
machineip
'
,
title
:
'
服务器ip
'
,
hidden
:
false
,
width
:
100
},
{
field
:
'
csmc
'
,
title
:
'
是否启用
'
,
hidden
:
false
,
width
:
80
}
]]
});
}
}
function
lookdetail
(
index
)
{
function
lookdetail
(
index
)
{
var
selRows
=
$
(
'
#tableGrid
'
).
datagrid
(
'
getRows
'
)[
index
];
var
selRows
=
$
(
'
#tableGrid
'
).
datagrid
(
'
getRows
'
)[
index
];
windowId
=
top
.
$
.
createWin
({
windowId
=
top
.
$
.
createWin
({
title
:
'
查看详情
'
,
title
:
'
查看详情
'
,
width
:
800
,
width
:
800
,
height
:
500
,
height
:
500
,
data
:
selRows
,
data
:
selRows
,
url
:
sysUrl
+
"
/yw/patroltask/machinetaskhistory/ywmachinestatusinfo_show.jsp
"
url
:
sysUrl
+
"
/yw/patroltask/machinetaskhistory/ywmachinestatusinfo_show.jsp
"
});
});
}
}
//删除
function
doDelete
(){
var
selRows
=
$
(
'
#tableGrid
'
).
datagrid
(
'
getSelected
'
);
if
(
!
selRows
){
$
.
showMsg
(
'
请先选择记录!
'
);
return
;
}
top
.
$
.
dlg
.
confirm
(
'
确认删除?
'
,
function
(){
$
.
ajax
({
type
:
'
post
'
,
dataType
:
'
json
'
,
url
:
'
ywmachinestatusinfoAction!delete_Ywmachinestatusinfo.do
'
,
data
:{
machinestatusid
:
selRows
.
machinestatusid
},
success
:
function
(
flag
){
if
(
flag
==
"
success
"
){
$
.
showMsg
(
"
操作成功!
"
);
doSearch
();
}
else
{
$
.
showMsg
(
"
操作失败!
"
);
}
}
});
});
}
//批量删除
function
doDelete_batch
(){
var
selRows
=
$
(
'
#tableGrid
'
).
datagrid
(
'
getChecked
'
);
var
keyword
=
[];
if
(
selRows
===
null
){
$
.
showMsg
(
'
请先选择一行!
'
);
}
else
{
for
(
var
i
=
0
;
i
<
selRows
.
length
;
i
++
){
keyword
.
push
(
selRows
[
i
].
machinestatusid
);
}
top
.
$
.
dlg
.
confirm
(
'
你确认要删除吗?
'
,
function
(){
$
.
ajax
({
type
:
'
post
'
,
dataType
:
'
json
'
,
url
:
'
ywmachinestatusinfoAction!batch_delete_Ywmachinestatusinfo.do
'
,
data
:{
keyword
:
keyword
.
join
(
"
,
"
)},
success
:
function
(
flag
){
if
(
!
$
.
isNull
(
flag
)){
$
.
showMsg
(
"
操作成功!
"
);
doSearch
();
}
else
{
$
.
showMsg
(
"
操作失败!
"
);
}
}
});
});
}
}
//查询
//查询
function
doSearch
(){
function
doSearch
()
{
if
(
$
(
'
#TaskMachine
'
).
is
(
'
:checked
'
)){
$
(
'
#tableGrid
'
).
datagrid
(
'
load
'
,
getQueryParams
());
$
(
'
#tableGrid
'
).
datagrid
(
'
load
'
,
getQueryParams
());
//控制列显示隐藏
}
else
{
if
(
sParam
.
TaskMachine
==
"
0
"
)
{
$
(
'
#tableNoTaskGrid
'
).
datagrid
(
'
load
'
,
getQueryParams
());
$
(
'
#tableGrid
'
).
datagrid
(
'
hideColumn
'
,
'
zjzt
'
);
}
$
(
'
#tableGrid
'
).
datagrid
(
'
hideColumn
'
,
'
cpuzt
'
);
}
$
(
'
#tableGrid
'
).
datagrid
(
'
hideColumn
'
,
'
ypzt
'
);
//增加
$
(
'
#tableGrid
'
).
datagrid
(
'
hideColumn
'
,
'
statusuptime
'
);
function
doAdd
(){
$
(
'
#tableGrid
'
).
datagrid
(
'
hideColumn
'
,
'
xxx
'
);
toEdit
=
false
;
$
(
'
#tableGrid
'
).
datagrid
(
'
showColumn
'
,
'
csmc
'
);
windowId
=
top
.
$
.
createWin
({
}
else
{
title
:
'
增加信息
'
,
$
(
'
#tableGrid
'
).
datagrid
(
'
showColumn
'
,
'
zjzt
'
);
width
:
650
,
$
(
'
#tableGrid
'
).
datagrid
(
'
showColumn
'
,
'
cpuzt
'
);
height
:
300
,
$
(
'
#tableGrid
'
).
datagrid
(
'
showColumn
'
,
'
ypzt
'
);
buttons
:
[{
$
(
'
#tableGrid
'
).
datagrid
(
'
showColumn
'
,
'
statusuptime
'
);
text
:
$
.
fn
.
textbox
.
defaults
.
ok
,
$
(
'
#tableGrid
'
).
datagrid
(
'
showColumn
'
,
'
xxx
'
);
handler
:
saveNodeInfo
$
(
'
#tableGrid
'
).
datagrid
(
'
hideColumn
'
,
'
csmc
'
);
}],
}
url
:
sysUrl
+
"
/im/ywgl/ywmachinestatusinfo_show.jsp
"
});
}
//修改
function
doUpdate
(
index
){
toEdit
=
true
;
var
selRows
=
$
(
'
#tableGrid
'
).
datagrid
(
'
getRows
'
)[
index
];
windowId
=
top
.
$
.
createWin
({
title
:
'
修改信息
'
,
width
:
650
,
height
:
300
,
data
:
selRows
,
buttons
:
[{
text
:
$
.
fn
.
textbox
.
defaults
.
ok
,
handler
:
saveNodeInfo
}],
url
:
sysUrl
+
"
/im/ywgl/ywmachinestatusinfo_show.jsp
"
});
}
}
//保存
function
saveNodeInfo
(){
var
win
=
$
.
getTopWindowById
(
windowId
);
var
jq
=
win
.
$
;
var
model
=
$
.
getFormValues
(
"
childform
"
,
windowId
);
//console.log(model);
if
(
!
win
.
$
(
'
#childform
'
).
form
(
'
enableValidation
'
).
form
(
'
validate
'
)){
return
;
}
if
(
toEdit
){
//修改
model
.
XGTJmachinestatusid
=
jq
(
'
#machinestatusid
'
).
val
();
//model.checkparam = " and xh='"+model.xh+"' ";
$
.
ajax
({
type
:
'
post
'
,
dataType
:
'
json
'
,
url
:
'
ywmachinestatusinfoAction!update_Ywmachinestatusinfo.do
'
,
data
:
model
,
success
:
function
(
value
){
if
(
value
==
"
success
"
){
$
.
showMsg
(
"
操作成功!
"
);
top
.
$
(
"
#
"
+
windowId
).
dialog
(
'
close
'
);
doSearch
();
}
else
if
(
value
==
"
same
"
){
$
.
showMsg
(
"
已存在!
"
);
}
else
{
$
.
showMsg
(
"
操作失败!
"
);
}
}
});
}
else
{
//model.checkparam = " and xh='"+model.xh+"' ";
$
.
ajax
({
type
:
'
post
'
,
dataType
:
'
json
'
,
url
:
'
ywmachinestatusinfoAction!insert_Ywmachinestatusinfo.do
'
,
data
:
model
,
success
:
function
(
value
){
if
(
value
==
"
success
"
){
$
.
showMsg
(
"
操作成功!
"
);
top
.
$
(
"
#
"
+
windowId
).
dialog
(
'
close
'
);
doSearch
();
}
else
if
(
value
==
"
same
"
){
$
.
showMsg
(
"
已存在!
"
);
}
else
{
$
.
showMsg
(
"
操作失败!
"
);
}
}
});
}
}
//打开修改
function
doEdit
(){
var
selIndex
=
$
(
'
#tableGrid
'
).
datagrid
(
'
getRowIndex
'
,
$
(
"
#tableGrid
"
).
datagrid
(
'
getSelected
'
));
if
(
selIndex
==-
1
){
$
.
showMsg
(
'
请先选择一行!
'
);
}
else
{
doUpdate
(
selIndex
);
}
}
//模板下载
function
doTemplate
(){
var
baseUrl
=
$
.
proPath
();
var
downFile
=
baseUrl
+
"
/down/down.xls
"
;
window
.
location
.
href
=
downFile
;
}
//导入
function
doImport
(){
toEdit
=
false
;
windowId
=
top
.
$
.
createWin
({
id
:
$
.
uniqueId
(),
title
:
'
导入
'
,
width
:
400
,
height
:
130
,
url
:
sysUrl
+
"
/im/xx/ywmachinestatusinfo_imp.jsp
"
});
}
//导出
function
doExport
(){
var
model
=
getQueryParams
();
$
.
ajax
({
type
:
'
post
'
,
dataType
:
'
json
'
,
data
:
model
,
url
:
'
ywmachinestatusinfoAction!count_Ywmachinestatusinfo.do
'
,
success
:
function
(
value
)
{
if
(
!
$
.
isNull
(
value
)){
countExport
(
value
);
}
else
{
$
.
showMsg
(
"
操作失败!
"
);
}
}
});
}
// 导出传参条件
function
countExport
(
totalSize
)
{
var
limit
=
5000
;
if
(
totalSize
>
5000
)
{
top
.
$
.
dlg
.
confirm
(
'
记录过多支持前5000条,确定要将记录导出Excel为表格吗?
'
,
function
(){
execExport
();
});
}
else
{
top
.
$
.
dlg
.
confirm
(
'
确认导出?
'
,
function
(){
execExport
();
})
}
}
// 调用后台
function
execExport
()
{
var
model
=
JSON
.
stringify
(
getQueryParams
());
document
.
excelForm
.
action
=
'
ywmachinestatusinfoAction!exp_Ywmachinestatusinfo.do?downParam=
'
+
encodeURIComponent
(
model
);
document
.
excelForm
.
submit
();
}
WebRoot/yw/patroltask/machinetaskhistory/ywmachinestatusinfo.jsp
View file @
8fc4920c
...
@@ -39,7 +39,15 @@
...
@@ -39,7 +39,15 @@
<input
class=
"easyui-datetimebox"
id=
"endTime"
>
<input
class=
"easyui-datetimebox"
id=
"endTime"
>
</div>
</div>
<div
style=
"margin-top:5px"
>
<div
style=
"margin-top:5px"
>
<label>
<input
type=
"checkbox"
id=
"TaskMachine"
checked
ο
nclick=
"checkboxOnclick()"
>
是否已加入巡检
</label>
<div
class=
'fl'
>
<span
class=
"text-content"
style=
"width:100px"
>
是否已加入巡检:
</span>
<select
id=
"TaskMachine"
class=
"easyui-combobox"
>
<option
>
全部
</option>
<option
value=
"1"
selected
>
是
</option>
<option
value=
"0"
>
否
</option>
</select>
</div>
<%--<label> <input type="checkbox" id="TaskMachine" checked onclick="checkboxOnclick()"> 是否已加入巡检 </label>--%>
</div>
</div>
</div>
</div>
<div
class=
"form-line hidden"
>
<div
class=
"form-line hidden"
>
...
@@ -122,9 +130,9 @@
...
@@ -122,9 +130,9 @@
<div
style=
"height:100%;"
id=
"taskDiv"
>
<div
style=
"height:100%;"
id=
"taskDiv"
>
<table
id=
'tableGrid'
></table>
<table
id=
'tableGrid'
></table>
</div>
</div>
<
div
style=
"height:100%;height:100%;display:none;"
id=
"notaskDiv"
>
<
%--<div style="height:100%;height:100%;display:none;" id="notaskDiv">--%
>
<
table
id=
'tableNoTaskGrid'
></table
>
<
%--<table id='tableNoTaskGrid'></table>--%
>
<
/div
>
<
%--</div>--%
>
</div>
</div>
<form
action=
""
method=
"post"
name=
"excelForm"
id=
"excelForm"
style=
"display: none;"
>
<form
action=
""
method=
"post"
name=
"excelForm"
id=
"excelForm"
style=
"display: none;"
>
</form>
</form>
...
...
WebRoot/yw/patroltask/machinetaskhistory/ywmachinestatusinfo_show.jsp
View file @
8fc4920c
...
@@ -60,217 +60,207 @@
...
@@ -60,217 +60,207 @@
</html>
</html>
<script
type=
"text/javascript"
>
<script
type=
"text/javascript"
>
var
winId
=
$
.
getUrlParam
(
"
winId
"
);
var
winId
=
$
.
getUrlParam
(
"
winId
"
);
var
records
=
top
.
$
(
"
#
"
+
winId
).
panel
(
"
options
"
).
data
;
var
data
=
top
.
$
(
"
#
"
+
winId
).
panel
(
"
options
"
).
data
;
console
.
log
(
"
跳转iframe:
"
,
records
);
console
.
log
(
"
跳转iframe:
"
,
data
);
$
(
function
(){
$
(
function
(){
$
.
ajax
({
type
:
'
post
'
,
dataType
:
'
json
'
,
url
:
'
ywmachinestatusinfoAction!listYwmachinestatusinfoByPage.do
'
,
data
:
{
'
machineid
'
:
records
.
machineid
,
'
statusupbatch
'
:
records
.
statusupbatch
,
'
page
'
:
0
,
'
rows
'
:
20
},
success
:
function
(
res
){
// console.log("测试:",res);
var
data
=
res
.
rows
[
0
]
// console.log("返回结果:",data);
$
(
'
#mc
'
).
html
(
data
.
machinename
);
$
(
'
#ip
'
).
html
(
data
.
machineip
);
$
(
'
#jcsj
'
).
html
(
data
.
statusuptime
);
// 主机状态
$
(
'
#mc
'
).
html
(
data
.
machinename
);
var
zjhtml
=
''
;
$
(
'
#ip
'
).
html
(
data
.
machineip
);
var
zjzt
=
data
.
zjzt
;
$
(
'
#jcsj
'
).
html
(
data
.
statusuptime
);
if
(
zjzt
==
"
1
"
){
zjzt
=
"
正常
"
;
zjhtml
=
"
<div style='height:13px;width:13px;background-color:green;border-radius:50%;-moz-border-radius: 50%;-webkit-border-radius: 50%;margin:0 auto 0 0;'></div>
"
;
}
else
if
(
zjzt
==
'
0
'
)
{
zjzt
=
"
异常
"
zjhtml
=
"
<div style='height:13px;width:13px;background-color:#fe0000;border-radius:50%;-moz-border-radius: 50%;-webkit-border-radius: 50%;margin:0 auto 0 0;'></div>
"
;
}
$
(
'
#zjzt
'
).
html
(
zjzt
);
$
(
'
#zj
'
).
append
(
zjhtml
);
// CUP状态
// 主机状态
var
cpuhtml
=
''
;
var
zjhtml
=
''
;
var
cpuusage
=
data
.
cpusy
;
var
zjzt
=
data
.
zjzt
;
var
cpuzt
=
data
.
cpuzt
;
if
(
zjzt
==
"
1
"
){
if
(
cpuusage
==
null
||
cpuusage
==
''
){
zjzt
=
"
正常
"
;
if
(
cpuzt
==
"
1
"
){
zjhtml
=
"
<div style='height:13px;width:13px;background-color:green;border-radius:50%;-moz-border-radius: 50%;-webkit-border-radius: 50%;margin:0 auto 0 0;'></div>
"
;
cpuzt
=
"
正常
"
;
}
else
if
(
zjzt
==
'
0
'
)
{
}
else
if
(
cpuzt
==
'
0
'
){
zjzt
=
"
异常
"
;
cpuzt
=
"
异常
"
;
zjhtml
=
"
<div style='height:13px;width:13px;background-color:#fe0000;border-radius:50%;-moz-border-radius: 50%;-webkit-border-radius: 50%;margin:0 auto 0 0;'></div>
"
;
}
}
}
else
{
$
(
'
#zjzt
'
).
html
(
zjzt
);
cpuusage
=
cpuusage
.
indexOf
(
'
%
'
)
>
0
?
cpuusage
.
replace
(
"
%
"
,
""
):
cpuusage
;
$
(
'
#zj
'
).
append
(
zjhtml
);
if
(
cpuzt
==
"
1
"
){
cpuzt
=
"
正常
"
;
cpuhtml
=
'
<div class="progress" style="width:140px"><div class="progress-value" style="background-color:red;width:
'
+
(
cpuusage
||
0
)
+
'
px;"><div class="progress-text" style="border:1px solid red;">
'
+
(
cpuusage
+
"
%
"
||
""
)
+
"
</div></div></div>
"
;
}
else
if
(
cpuzt
==
'
0
'
)
{
cpuzt
=
"
异常
"
;
cpuhtml
=
$
.
gridProgressBar
(
cpuusage
+
"
%
"
,
100
*
cpuusage
/
100.00
);
}
}
$
(
'
#cpuzt
'
).
html
(
cpuzt
);
$
(
'
#cpu
'
).
append
(
cpuhtml
);
cpuGrap
(
cpuusage
);
$
(
"
#cpuTitle
"
).
html
(
cpuzt
);
if
(
cpuzt
==
'
正常
'
){
$
(
"
#cpuTitle
"
).
parent
().
css
(
"
color
"
,
"
#000
"
);
}
// 内存状态
// CUP状态
var
nchtml
=
''
;
var
cpuhtml
=
''
;
var
memorytotal
=
data
.
ncrl
;
var
cpuusage
=
data
.
cpusy
;
var
memoryusage
=
data
.
ncsy
;
var
cpuzt
=
data
.
cpuzt
;
var
nczt
=
data
.
nczt
;
if
(
cpuusage
==
null
||
cpuusage
==
''
){
if
(
memorytotal
==
null
||
memorytotal
==
''
){
if
(
cpuzt
==
"
1
"
){
if
(
memoryusage
!=
null
&&
memoryusage
!=
''
){
cpuzt
=
"
正常
"
;
memoryusage
=
memoryusage
.
indexOf
(
'
%
'
)
>
0
?
memoryusage
.
replace
(
"
%
"
,
""
):
memoryusage
;
}
else
if
(
cpuzt
==
'
0
'
){
if
(
nczt
==
0
){
cpuzt
=
"
异常
"
;
nczt
=
'
异常
'
;
}
nchtml
=
'
<div class="progress" style="width:140px">
'
+
}
else
{
'
<div class="progress-value" style="border:1px solid red;background-color:red;width:
'
+
(
memoryusage
||
0
)
+
'
px;">
'
+
cpuusage
=
cpuusage
.
indexOf
(
'
%
'
)
>
0
?
cpuusage
.
replace
(
"
%
"
,
""
):
cpuusage
;
'
<div class="progress-text" style="border:1px solid red;">
'
+
(
memoryusage
+
"
%
"
||
""
)
+
"
</div>
"
+
if
(
cpuzt
==
"
1
"
){
"
</div>
"
+
cpuzt
=
"
正常
"
;
"
</div>
"
;
cpuhtml
=
'
<div class="progress" style="width:140px"><div class="progress-value" style="background-color:red;width:
'
+
(
cpuusage
||
0
)
+
'
px;"><div class="progress-text" style="border:1px solid red;">
'
+
(
cpuusage
+
"
%
"
||
""
)
+
"
</div></div></div>
"
;
}
else
if
(
nczt
==
1
)
{
}
else
if
(
cpuzt
==
'
0
'
)
{
nczt
=
'
正常
'
;
cpuzt
=
"
异常
"
;
nchtml
=
'
<div class="progress" style="width:140px">
'
+
cpuhtml
=
$
.
gridProgressBar
(
cpuusage
+
"
%
"
,
100
*
cpuusage
/
100.00
);
'
<div class="progress-value" style="width:
'
+
(
memoryusage
||
0
)
+
'
px;">
'
+
}
'
<div class="progress-text">
'
+
(
memoryusage
+
"
%
"
||
""
)
+
"
</div>
"
+
}
"
</div>
"
+
$
(
'
#cpuzt
'
).
html
(
cpuzt
);
"
</div>
"
;
$
(
'
#cpu
'
).
append
(
cpuhtml
);
}
cpuGrap
(
cpuusage
);
}
$
(
"
#cpuTitle
"
).
html
(
cpuzt
);
}
else
{
if
(
cpuzt
==
'
正常
'
){
var
ncrl
=
data
.
ncrl
.
toUpperCase
();
$
(
"
#cpuTitle
"
).
parent
().
css
(
"
color
"
,
"
#000
"
);
var
dw
=
"
G
"
;
}
if
(
ncrl
.
indexOf
(
'
G
'
)
>
0
){
ncrl
=
ncrl
.
replace
(
"
G
"
,
""
);
// 内存状态
dw
=
"
G
"
;
var
nchtml
=
''
;
}
else
if
(
ncrl
.
indexOf
(
'
M
'
)
>
0
)
{
var
memorytotal
=
data
.
ncrl
;
ncrl
=
ncrl
.
replace
(
"
M
"
,
""
);
var
memoryusage
=
data
.
ncsy
;
dw
=
"
M
"
;
var
nczt
=
data
.
nczt
;
}
else
if
(
ncrl
.
indexOf
(
'
KB
'
)
>
0
)
{
if
(
memorytotal
==
null
||
memorytotal
==
''
){
ncrl
=
ncrl
.
replace
(
"
KB
"
,
""
);
if
(
memoryusage
!=
null
&&
memoryusage
!=
''
){
dw
=
"
KB
"
;
memoryusage
=
memoryusage
.
indexOf
(
'
%
'
)
>
0
?
memoryusage
.
replace
(
"
%
"
,
""
):
memoryusage
;
}
if
(
nczt
==
0
){
var
sync
=
""
;
nczt
=
'
异常
'
;
if
(
memoryusage
!=
null
&&
memoryusage
!=
''
){
nchtml
=
'
<div class="progress" style="width:140px">
'
+
memoryusage
=
memoryusage
.
indexOf
(
'
%
'
)
>
0
?
memoryusage
.
replace
(
"
%
"
,
""
):
memoryusage
;
'
<div class="progress-value" style="border:1px solid red;background-color:red;width:
'
+
(
memoryusage
||
0
)
+
'
px;">
'
+
ncrl
=
Math
.
round
(
parseFloat
(
ncrl
));
'
<div class="progress-text" style="border:1px solid red;">
'
+
(
memoryusage
+
"
%
"
||
""
)
+
"
</div>
"
+
sync
=
(
ncrl
*
memoryusage
)
/
100
;
"
</div>
"
+
sync
=
parseFloat
(
sync
.
toFixed
(
2
));
"
</div>
"
;
if
(
nczt
==
0
){
}
else
if
(
nczt
==
1
)
{
nczt
=
'
异常
'
;
nczt
=
'
正常
'
;
nchtml
=
'
<div class="progress" style="width:140px">
'
+
nchtml
=
'
<div class="progress" style="width:140px">
'
+
'
<div class="progress-value" style="background-color:red;width:
'
+
(
memoryusage
||
0
)
+
'
px;">
'
+
'
<div class="progress-value" style="width:
'
+
(
memoryusage
||
0
)
+
'
px;">
'
+
'
<div class="progress-text" style="border:1px solid red;">
'
+
(
memoryusage
+
"
%
"
||
""
)
+
"
</div>
"
+
'
<div class="progress-text">
'
+
(
memoryusage
+
"
%
"
||
""
)
+
"
</div>
"
+
"
</div>
"
+
"
</div>
"
+
"
<div style='position: relative;left: 105px; top: -18px;'>
"
+
sync
+
dw
+
"
/
"
+
ncrl
+
dw
+
"
(总)</div>
"
+
"
</div>
"
;
"
</div>
"
;
}
else
if
(
nczt
==
1
)
{
nczt
=
'
正常
'
;
nchtml
=
'
<div class="progress" style="width:140px">
'
+
'
<div class="progress-value" style="width:
'
+
(
memoryusage
||
0
)
+
'
px;">
'
+
'
<div class="progress-text">
'
+
(
memoryusage
+
"
%
"
||
""
)
+
"
</div>
"
+
"
</div>
"
+
"
<div style='position: relative;left: 105px; top: -18px;'>
"
+
sync
+
dw
+
"
/
"
+
ncrl
+
dw
+
"
(总)</div>
"
+
"
</div>
"
;
}
}
}
$
(
'
#nczt
'
).
html
(
nczt
);
$
(
'
#nc
'
).
append
(
nchtml
);
if
(
memorytotal
==
null
||
memorytotal
==
''
||
memoryusage
==
null
||
memoryusage
==
''
){
memoryGrap
(
'
未知
'
,
'
未知
'
);
}
else
{
var
radio
=
sync
+
dw
+
"
/
"
+
ncrl
+
dw
;
memoryGrap
(
memoryusage
,
radio
);
}
}
}
$
(
"
#memoryTitle
"
).
html
(
nczt
);
}
else
{
if
(
nczt
==
'
正常
'
){
var
ncrl
=
data
.
ncrl
.
toUpperCase
();
$
(
"
#memoryTitle
"
).
parent
().
css
(
"
color
"
,
"
#000
"
);
var
dw
=
"
G
"
;
if
(
ncrl
.
indexOf
(
'
G
'
)
>
0
){
ncrl
=
ncrl
.
replace
(
"
G
"
,
""
);
dw
=
"
G
"
;
}
else
if
(
ncrl
.
indexOf
(
'
M
'
)
>
0
)
{
ncrl
=
ncrl
.
replace
(
"
M
"
,
""
);
dw
=
"
M
"
;
}
else
if
(
ncrl
.
indexOf
(
'
KB
'
)
>
0
)
{
ncrl
=
ncrl
.
replace
(
"
KB
"
,
""
);
dw
=
"
KB
"
;
}
var
sync
=
""
;
if
(
memoryusage
!=
null
&&
memoryusage
!=
''
){
memoryusage
=
memoryusage
.
indexOf
(
'
%
'
)
>
0
?
memoryusage
.
replace
(
"
%
"
,
""
):
memoryusage
;
ncrl
=
Math
.
round
(
parseFloat
(
ncrl
));
sync
=
(
ncrl
*
memoryusage
)
/
100
;
sync
=
parseFloat
(
sync
.
toFixed
(
2
));
if
(
nczt
==
0
){
nczt
=
'
异常
'
;
nchtml
=
'
<div class="progress" style="width:140px">
'
+
'
<div class="progress-value" style="background-color:red;width:
'
+
(
memoryusage
||
0
)
+
'
px;">
'
+
'
<div class="progress-text" style="border:1px solid red;">
'
+
(
memoryusage
+
"
%
"
||
""
)
+
"
</div>
"
+
"
</div>
"
+
"
<div style='position: relative;left: 105px; top: -18px;'>
"
+
sync
+
dw
+
"
/
"
+
ncrl
+
dw
+
"
(总)</div>
"
+
"
</div>
"
;
}
else
if
(
nczt
==
1
)
{
nczt
=
'
正常
'
;
nchtml
=
'
<div class="progress" style="width:140px">
'
+
'
<div class="progress-value" style="width:
'
+
(
memoryusage
||
0
)
+
'
px;">
'
+
'
<div class="progress-text">
'
+
(
memoryusage
+
"
%
"
||
""
)
+
"
</div>
"
+
"
</div>
"
+
"
<div style='position: relative;left: 105px; top: -18px;'>
"
+
sync
+
dw
+
"
/
"
+
ncrl
+
dw
+
"
(总)</div>
"
+
"
</div>
"
;
}
}
}
}
$
(
'
#nczt
'
).
html
(
nczt
);
$
(
'
#nc
'
).
append
(
nchtml
);
if
(
memorytotal
==
null
||
memorytotal
==
''
||
memoryusage
==
null
||
memoryusage
==
''
){
memoryGrap
(
'
未知
'
,
'
未知
'
);
}
else
{
var
radio
=
sync
+
dw
+
"
/
"
+
ncrl
+
dw
;
memoryGrap
(
memoryusage
,
radio
);
}
// 硬盘状态
$
(
"
#memoryTitle
"
).
html
(
nczt
);
var
yphtml
=
''
;
if
(
nczt
==
'
正常
'
){
var
harddisktotal
=
data
.
yprl
;
$
(
"
#memoryTitle
"
).
parent
().
css
(
"
color
"
,
"
#000
"
);
var
harddiskusage
=
data
.
ypsy
;
}
var
ypzt
=
data
.
ypzt
;
if
(
harddisktotal
==
null
||
harddisktotal
==
''
){
// 硬盘状态
if
(
harddiskusage
!=
null
&&
harddiskusage
!=
''
){
var
yphtml
=
''
;
harddiskusage
=
harddiskusage
.
indexOf
(
'
%
'
)
>
0
?
harddiskusage
.
replace
(
"
%
"
,
""
):
harddiskusage
;
var
harddisktotal
=
data
.
yprl
;
if
(
ypzt
==
0
)
{
var
harddiskusage
=
data
.
ypsy
;
ypzt
=
'
异常
'
;
var
ypzt
=
data
.
ypzt
;
yphtml
=
'
<div class="progress" style="width:140px">
'
+
if
(
harddisktotal
==
null
||
harddisktotal
==
''
){
'
<div class="progress-value" style="background-color:red;width:
'
+
(
harddiskusage
||
0
)
+
'
px;">
'
+
if
(
harddiskusage
!=
null
&&
harddiskusage
!=
''
){
'
<div class="progress-text" style="border:1px solid red;">
'
+
(
harddiskusage
+
"
%
"
||
""
)
+
"
</div>
"
+
harddiskusage
=
harddiskusage
.
indexOf
(
'
%
'
)
>
0
?
harddiskusage
.
replace
(
"
%
"
,
""
):
harddiskusage
;
"
</div>
"
+
if
(
ypzt
==
0
)
{
"
</div>
"
;
ypzt
=
'
异常
'
;
}
else
if
(
ypzt
==
1
)
{
yphtml
=
'
<div class="progress" style="width:140px">
'
+
ypzt
=
'
正常
'
;
'
<div class="progress-value" style="background-color:red;width:
'
+
(
harddiskusage
||
0
)
+
'
px;">
'
+
yphtml
=
'
<div class="progress" style="width:140px">
'
+
'
<div class="progress-text" style="border:1px solid red;">
'
+
(
harddiskusage
+
"
%
"
||
""
)
+
"
</div>
"
+
'
<div class="progress-value" style="width:
'
+
(
harddiskusage
||
0
)
+
'
px;">
'
+
"
</div>
"
+
'
<div class="progress-text">
'
+
(
harddiskusage
+
"
%
"
||
""
)
+
"
</div>
"
+
"
</div>
"
;
"
</div>
"
+
}
else
if
(
ypzt
==
1
)
{
"
</div>
"
;
ypzt
=
'
正常
'
;
}
yphtml
=
'
<div class="progress" style="width:140px">
'
+
}
'
<div class="progress-value" style="width:
'
+
(
harddiskusage
||
0
)
+
'
px;">
'
+
}
else
{
'
<div class="progress-text">
'
+
(
harddiskusage
+
"
%
"
||
""
)
+
"
</div>
"
+
var
yprl
=
data
.
yprl
.
toUpperCase
();
"
</div>
"
+
var
dw
=
"
G
"
;
"
</div>
"
;
if
(
yprl
.
indexOf
(
'
G
'
)
>
0
){
yprl
=
yprl
.
replace
(
"
G
"
,
""
);
dw
=
"
G
"
;
}
else
if
(
yprl
.
indexOf
(
'
M
'
)
>
0
)
{
yprl
=
yprl
.
replace
(
"
M
"
,
""
);
dw
=
"
M
"
;
}
else
if
(
yprl
.
indexOf
(
'
KB
'
)
>
0
)
{
yprl
=
yprl
.
replace
(
"
KB
"
,
""
);
dw
=
"
KB
"
;
}
var
sy
=
""
;
if
(
harddiskusage
!=
null
&&
harddiskusage
!=
''
){
harddiskusage
=
harddiskusage
.
indexOf
(
'
%
'
)
>
0
?
harddiskusage
.
replace
(
"
%
"
,
""
):
harddiskusage
;
yprl
=
Math
.
round
(
parseFloat
(
yprl
));
sy
=
(
yprl
*
harddiskusage
)
/
100
;
sy
=
parseFloat
(
sy
.
toFixed
(
2
));
if
(
ypzt
==
0
)
{
ypzt
=
'
异常
'
;
yphtml
=
'
<div class="progress" style="width:140px">
'
+
'
<div class="progress-value" style="background-color:red;width:
'
+
(
harddiskusage
||
0
)
+
'
px;">
'
+
'
<div class="progress-text" style="border:1px solid red;">
'
+
(
harddiskusage
+
"
%
"
||
""
)
+
"
</div>
"
+
"
</div>
"
+
"
<div style='position: relative;left: 105px; top: -18px;'>
"
+
sy
+
dw
+
"
/
"
+
yprl
+
dw
+
"
(总)</div>
"
+
"
</div>
"
;
}
else
if
(
ypzt
==
1
)
{
ypzt
=
'
正常
'
;
yphtml
=
'
<div class="progress" style="width:140px">
'
+
'
<div class="progress-value" style="width:
'
+
(
harddiskusage
||
0
)
+
'
px;">
'
+
'
<div class="progress-text">
'
+
(
harddiskusage
+
"
%
"
||
""
)
+
"
</div>
"
+
"
</div>
"
+
"
<div style='position: relative;left: 105px; top: -18px;'>
"
+
sy
+
dw
+
"
/
"
+
yprl
+
dw
+
"
(总)</div>
"
+
"
</div>
"
;
}
}
}
$
(
'
#ypzt
'
).
html
(
ypzt
);
$
(
'
#yp
'
).
append
(
yphtml
);
if
(
harddisktotal
==
null
||
harddisktotal
==
''
||
harddiskusage
==
null
||
harddiskusage
==
''
){
harddiskGrap
(
'
未知
'
,
'
未知
'
);
}
else
{
var
radio
=
sy
+
dw
+
"
/
"
+
yprl
+
dw
;
harddiskGrap
(
harddiskusage
,
radio
);
}
}
}
$
(
"
#diskTitle
"
).
html
(
ypzt
);
}
else
{
if
(
ypzt
==
'
正常
'
){
var
yprl
=
data
.
yprl
.
toUpperCase
();
$
(
"
#diskTitle
"
).
parent
().
css
(
"
color
"
,
"
#000
"
);
var
dw
=
"
G
"
;
if
(
yprl
.
indexOf
(
'
G
'
)
>
0
){
yprl
=
yprl
.
replace
(
"
G
"
,
""
);
dw
=
"
G
"
;
}
else
if
(
yprl
.
indexOf
(
'
M
'
)
>
0
)
{
yprl
=
yprl
.
replace
(
"
M
"
,
""
);
dw
=
"
M
"
;
}
else
if
(
yprl
.
indexOf
(
'
KB
'
)
>
0
)
{
yprl
=
yprl
.
replace
(
"
KB
"
,
""
);
dw
=
"
KB
"
;
}
var
sy
=
""
;
if
(
harddiskusage
!=
null
&&
harddiskusage
!=
''
){
harddiskusage
=
harddiskusage
.
indexOf
(
'
%
'
)
>
0
?
harddiskusage
.
replace
(
"
%
"
,
""
):
harddiskusage
;
yprl
=
Math
.
round
(
parseFloat
(
yprl
));
sy
=
(
yprl
*
harddiskusage
)
/
100
;
sy
=
parseFloat
(
sy
.
toFixed
(
2
));
if
(
ypzt
==
0
)
{
ypzt
=
'
异常
'
;
yphtml
=
'
<div class="progress" style="width:140px">
'
+
'
<div class="progress-value" style="background-color:red;width:
'
+
(
harddiskusage
||
0
)
+
'
px;">
'
+
'
<div class="progress-text" style="border:1px solid red;">
'
+
(
harddiskusage
+
"
%
"
||
""
)
+
"
</div>
"
+
"
</div>
"
+
"
<div style='position: relative;left: 105px; top: -18px;'>
"
+
sy
+
dw
+
"
/
"
+
yprl
+
dw
+
"
(总)</div>
"
+
"
</div>
"
;
}
else
if
(
ypzt
==
1
)
{
ypzt
=
'
正常
'
;
yphtml
=
'
<div class="progress" style="width:140px">
'
+
'
<div class="progress-value" style="width:
'
+
(
harddiskusage
||
0
)
+
'
px;">
'
+
'
<div class="progress-text">
'
+
(
harddiskusage
+
"
%
"
||
""
)
+
"
</div>
"
+
"
</div>
"
+
"
<div style='position: relative;left: 105px; top: -18px;'>
"
+
sy
+
dw
+
"
/
"
+
yprl
+
dw
+
"
(总)</div>
"
+
"
</div>
"
;
}
}
}
}
});
}
$
(
'
#ypzt
'
).
html
(
ypzt
);
$
(
'
#yp
'
).
append
(
yphtml
);
if
(
harddisktotal
==
null
||
harddisktotal
==
''
||
harddiskusage
==
null
||
harddiskusage
==
''
){
harddiskGrap
(
'
未知
'
,
'
未知
'
);
}
else
{
var
radio
=
sy
+
dw
+
"
/
"
+
yprl
+
dw
;
harddiskGrap
(
harddiskusage
,
radio
);
}
$
(
"
#diskTitle
"
).
html
(
ypzt
);
if
(
ypzt
==
'
正常
'
){
$
(
"
#diskTitle
"
).
parent
().
css
(
"
color
"
,
"
#000
"
);
}
});
});
function
cpuGrap
(
data
){
function
cpuGrap
(
data
){
...
@@ -367,7 +357,7 @@ function cpuGrap(data){
...
@@ -367,7 +357,7 @@ function cpuGrap(data){
}]
}]
}
}
]
]
}
}
;
option
.
series
[
0
].
data
[
0
].
value
=
data
;
option
.
series
[
0
].
data
[
0
].
value
=
data
;
myChart
.
setOption
(
option
,
true
);
myChart
.
setOption
(
option
,
true
);
}
}
...
...
WebRoot/yw/recordalarm/detectorstate/detectorcurrentstate.js
View file @
8fc4920c
var
windowId
,
proName
=
window
.
location
.
pathname
.
split
(
"
/
"
)[
1
],
sysUrl
=
"
http://
"
+
window
.
location
.
host
+
"
/
"
+
proName
,
toEdit
;
var
windowId
,
proName
=
window
.
location
.
pathname
.
split
(
"
/
"
)[
1
],
sysUrl
=
"
http://
"
+
window
.
location
.
host
+
"
/
"
+
proName
,
toEdit
;
var
arrs
=
[];
$
(
function
(){
$
(
function
(){
initDefault
();
initDefault
();
});
});
//默认
//默认
function
initDefault
(){
function
initDefault
(){
ywDc
();
initGrid
();
initGrid
();
}
}
function
ywDc
(){
$
.
ajax
({
type
:
'
post
'
,
async
:
true
,
dataType
:
'
json
'
,
url
:
'
xtclAction!listXtclByPage.do
'
,
//dac 行政树
// url:'ptxzsAction!query_Ptxzs.do' ,//本地 行政树
data
:{
LIKEcsdl
:
"
ksh_ZxldCurrent
"
,
LIKEcslm
:
""
,
LIKEcsdm
:
""
,
LIKEcsmc
:
""
,
order
:
"
order by csdl asc
"
,
page
:
1
,
rows
:
20
,
},
}).
done
(
function
(
data
)
{
var
arr
=
[];
if
(
data
.
rows
.
length
>
0
){
for
(
var
i
in
data
.
rows
){
arr
.
push
({
name
:
data
.
rows
[
i
].
csmc
,
value
:
data
.
rows
[
i
].
csdm
});
}
}
arrs
=
arr
;
initCacheStatus
();
// var a =data;
});
}
//初始化下拉框
function
initCacheStatus
()
{
var
ywDeviceStatusArr
=
[];
// var videoStatus = Constants.videoStatus;
var
videoStatus
=
arrs
;
for
(
var
i
in
videoStatus
)
{
ywDeviceStatusArr
.
push
({
"
id
"
:
videoStatus
[
i
].
value
,
"
text
"
:
videoStatus
[
i
].
name
})
}
$
(
"
#currentstate
"
).
combobox
(
"
loadData
"
,
ywDeviceStatusArr
);
$
(
'
#currentstate
'
).
combobox
({
formatter
:
function
(
row
)
{
var
opts
=
$
(
this
).
combobox
(
'
options
'
);
return
row
[
opts
.
textField
];
}
});
var
firstShowPanel
=
true
;
var
ht
=
[];
for
(
var
i
=
0
;
i
<
arrs
.
length
;
i
++
){
var
str
=
"
#_easyui_combobox_i1_
"
+
i
;
ht
.
push
({
id
:
str
});
}
for
(
var
i
=
0
;
i
<
ht
.
length
;
i
++
){
$
(
ht
[
i
].
id
).
after
(
"
<div onclick='handleA' class='handleCom1' style='display:none;'>
"
+
$
(
ht
[
i
].
id
).
html
()
+
"
</div>
"
);
}
$
(
'
#currentstate
'
).
combobox
({
onUnselect
:
function
(
record
)
{
var
opts
=
$
(
this
).
combobox
(
'
options
'
);
var
values
=
$
(
'
#currentstate
'
).
combobox
(
'
getValues
'
);
if
(
record
.
id
==
1
)
{
for
(
var
i
=
0
;
i
<
arrs
.
length
;
i
++
){
$
(
"
#_easyui_combobox_i1_
"
+
i
).
show
();
}
$
(
"
.handleCom
"
).
hide
();
}
else
{
if
(
values
.
length
<=
1
)
{
var
values
=
$
(
'
#currentstate
'
).
combobox
(
'
getValues
'
);
$
(
"
.handleCom1
"
).
hide
();
$
(
"
#_easyui_combobox_i1_0
"
).
show
();
}
}
},
onChange
:
function
()
{
var
values
=
$
(
'
#currentstate
'
).
combobox
(
'
getValues
'
);
},
onHidePanel
:
function
()
{
selectedValues
=
$
(
'
#currentstate
'
).
combobox
(
'
getValues
'
);
firstShowPanel
=
false
;
},
onShowPanel
:
function
()
{
if
(
!
firstShowPanel
)
{
if
(
selectedValues
.
indexOf
(
"
1
"
)
!=
-
1
)
{
for
(
var
i
=
0
;
i
<
arrs
.
length
;
i
++
){
$
(
"
#_easyui_combobox_i1_
"
+
i
).
hide
();
}
}
else
{
if
(
selectedValues
.
length
>
0
)
{
$
(
"
#_easyui_combobox_i1_0
"
).
hide
();
}
}
}
},
onSelect
:
function
(
record
)
{
var
values
=
$
(
'
#currentstate
'
).
combobox
(
'
getValues
'
);
var
opts
=
$
(
this
).
combobox
(
'
options
'
);
if
(
record
.
id
==
1
)
{
for
(
var
i
=
0
;
i
<
arrs
.
length
;
i
++
){
$
(
"
#_easyui_combobox_i1_
"
+
i
).
hide
();
}
$
(
"
.handleCom
"
).
show
();
}
else
{
$
(
"
#_easyui_combobox_i1_0
"
).
hide
();
$
(
"
.handleCom1
"
).
hide
();
}
return
false
;
}
});
}
//查询条件
//查询条件
function
getQueryParams
(){
function
getQueryParams
(){
var
sParam
=
{};
var
sParam
=
{};
...
@@ -15,6 +124,22 @@ function getQueryParams(){
...
@@ -15,6 +124,22 @@ function getQueryParams(){
sParam
.
LIKEbz
=
$
(
'
#bz
'
).
textbox
(
"
getValue
"
);
sParam
.
LIKEbz
=
$
(
'
#bz
'
).
textbox
(
"
getValue
"
);
sParam
.
order
=
"
order by updatetime desc
"
;
sParam
.
order
=
"
order by updatetime desc
"
;
sParam
.
emptyremarks
=
$
(
"
#combobz
"
).
combobox
(
"
getValue
"
);
sParam
.
emptyremarks
=
$
(
"
#combobz
"
).
combobox
(
"
getValue
"
);
var
chosed
=
$
(
'
#currentstate
'
).
combobox
(
'
getValues
'
);
var
state
=
""
;
for
(
var
i
in
chosed
)
{
if
(
chosed
[
i
]
==
"
0
"
){
state
+=
"
or STATE is null or STATE=0
"
;
}
else
{
state
+=
"
or STATE=
"
+
chosed
[
i
];
}
}
if
(
state
==
""
)
{
sParam
.
tableparam
=
""
;
}
else
{
if
(
state
!=
""
)
{
sParam
.
tableparam
=
"
and (
"
+
state
.
substr
(
3
)
+
"
)
"
;
}
}
return
sParam
;
return
sParam
;
}
}
//加载列表
//加载列表
...
...
WebRoot/yw/recordalarm/detectorstate/gvdcurrentstate.jsp
View file @
8fc4920c
...
@@ -46,6 +46,10 @@
...
@@ -46,6 +46,10 @@
<option
value=
"0"
>
为空
</option>
<option
value=
"0"
>
为空
</option>
</select>
</select>
</div>
</div>
<div
class=
'fl'
>
<span
class=
"text-content"
>
设备状态:
</span>
<input
class=
"easyui-combobox"
id=
"currentstate"
name=
"currentstate"
data-options=
"multiple:true, textField:'text', valueField:'id', panelWidth:148,value:''"
>
</div>
</div>
</div>
</div>
</div>
...
...
WebRoot/yw/recordalarm/detectorstate/smartsensorcurrentstate.jsp
View file @
8fc4920c
...
@@ -46,6 +46,10 @@
...
@@ -46,6 +46,10 @@
<option
value=
"0"
>
为空
</option>
<option
value=
"0"
>
为空
</option>
</select>
</select>
</div>
</div>
<div
class=
'fl'
>
<span
class=
"text-content"
>
设备状态:
</span>
<input
class=
"easyui-combobox"
id=
"currentstate"
name=
"currentstate"
data-options=
"multiple:true, textField:'text', valueField:'id', panelWidth:148,value:''"
>
</div>
<!-- <div class='fl'>
<!-- <div class='fl'>
<span class="text-content">主机状态:</span>
<span class="text-content">主机状态:</span>
<input class="easyui-textbox" id="LIKEmachinestatusid" data-options="validType:'length[0,40]'" >
<input class="easyui-textbox" id="LIKEmachinestatusid" data-options="validType:'length[0,40]'" >
...
...
WebRoot/yw/recordalarm/nhywjtxhdglstate/nhywjtxhdglstate.jsp
View file @
8fc4920c
...
@@ -53,13 +53,17 @@
...
@@ -53,13 +53,17 @@
</div>
</div>
<div
class=
'fl'
>
<div
class=
'fl'
>
<span
class=
"text-content"
style=
"width:
20
0px"
>
备注是否为空:
</span>
<span
class=
"text-content"
style=
"width:
16
0px"
>
备注是否为空:
</span>
<select
class=
"easyui-combobox"
id=
"combobz"
>
<select
class=
"easyui-combobox"
id=
"combobz"
>
<option
value=
""
>
全部
</option>
<option
value=
""
>
全部
</option>
<option
value=
"1"
>
不为空
</option>
<option
value=
"1"
>
不为空
</option>
<option
value=
"0"
>
为空
</option>
<option
value=
"0"
>
为空
</option>
</select>
</select>
</div>
</div>
<div
class=
'fl'
>
<span
class=
"text-content"
>
设备状态:
</span>
<input
class=
"easyui-combobox"
id=
"currentstate"
name=
"currentstate"
data-options=
"multiple:true, textField:'text', valueField:'id', panelWidth:148,value:''"
>
</div>
<!-- <div class='fl'>
<!-- <div class='fl'>
<span class="text-content">主机状态:</span>
<span class="text-content">主机状态:</span>
<input class="easyui-textbox" id="LIKEmachinestatusid" data-options="validType:'length[0,40]'" >
<input class="easyui-textbox" id="LIKEmachinestatusid" data-options="validType:'length[0,40]'" >
...
...
WebRoot/yw/recordalarm/nhywjtxhdglstate/ywxhdcurrentstate.js
View file @
8fc4920c
var
windowId
,
proName
=
window
.
location
.
pathname
.
split
(
"
/
"
)[
1
],
var
windowId
,
proName
=
window
.
location
.
pathname
.
split
(
"
/
"
)[
1
],
sysUrl
=
"
http://
"
+
window
.
location
.
host
+
"
/
"
+
proName
,
toEdit
;
sysUrl
=
"
http://
"
+
window
.
location
.
host
+
"
/
"
+
proName
,
toEdit
;
var
arrs
=
[];
$
(
function
()
{
$
(
function
()
{
initDefault
();
initDefault
();
});
});
//默认
//默认
function
initDefault
()
{
function
initDefault
()
{
ywXhd
();
initGrid
();
initGrid
();
}
}
function
ywXhd
(){
$
.
ajax
({
type
:
'
post
'
,
async
:
true
,
dataType
:
'
json
'
,
url
:
'
xtclAction!listXtclByPage.do
'
,
//dac 行政树
// url:'ptxzsAction!query_Ptxzs.do' ,//本地 行政树
data
:{
LIKEcsdl
:
"
nhywjtxhdglCurrent
"
,
LIKEcslm
:
""
,
LIKEcsdm
:
""
,
LIKEcsmc
:
""
,
order
:
"
order by csdl asc
"
,
page
:
1
,
rows
:
20
,
},
}).
done
(
function
(
data
)
{
var
arr
=
[];
if
(
data
.
rows
.
length
>
0
){
for
(
var
i
in
data
.
rows
){
arr
.
push
({
name
:
data
.
rows
[
i
].
csmc
,
value
:
data
.
rows
[
i
].
csdm
});
}
}
arrs
=
arr
;
initCacheStatus
();
// var a =data;
});
}
//初始化下拉框
function
initCacheStatus
()
{
var
ywDeviceStatusArr
=
[];
// var videoStatus = Constants.videoStatus;
var
videoStatus
=
arrs
;
for
(
var
i
in
videoStatus
)
{
ywDeviceStatusArr
.
push
({
"
id
"
:
videoStatus
[
i
].
value
,
"
text
"
:
videoStatus
[
i
].
name
})
}
$
(
"
#currentstate
"
).
combobox
(
"
loadData
"
,
ywDeviceStatusArr
);
$
(
'
#currentstate
'
).
combobox
({
formatter
:
function
(
row
)
{
var
opts
=
$
(
this
).
combobox
(
'
options
'
);
return
row
[
opts
.
textField
];
}
});
var
firstShowPanel
=
true
;
var
ht
=
[];
for
(
var
i
=
0
;
i
<
arrs
.
length
;
i
++
){
var
str
=
"
#_easyui_combobox_i1_
"
+
i
;
ht
.
push
({
id
:
str
});
}
for
(
var
i
=
0
;
i
<
ht
.
length
;
i
++
){
$
(
ht
[
i
].
id
).
after
(
"
<div onclick='handleA' class='handleCom1' style='display:none;'>
"
+
$
(
ht
[
i
].
id
).
html
()
+
"
</div>
"
);
}
$
(
'
#currentstate
'
).
combobox
({
onUnselect
:
function
(
record
)
{
var
opts
=
$
(
this
).
combobox
(
'
options
'
);
var
values
=
$
(
'
#currentstate
'
).
combobox
(
'
getValues
'
);
if
(
record
.
id
==
1
)
{
for
(
var
i
=
0
;
i
<
arrs
.
length
;
i
++
){
$
(
"
#_easyui_combobox_i1_
"
+
i
).
show
();
}
$
(
"
.handleCom
"
).
hide
();
}
else
{
if
(
values
.
length
<=
1
)
{
var
values
=
$
(
'
#currentstate
'
).
combobox
(
'
getValues
'
);
$
(
"
.handleCom1
"
).
hide
();
$
(
"
#_easyui_combobox_i1_0
"
).
show
();
}
}
},
onChange
:
function
()
{
var
values
=
$
(
'
#currentstate
'
).
combobox
(
'
getValues
'
);
},
onHidePanel
:
function
()
{
selectedValues
=
$
(
'
#currentstate
'
).
combobox
(
'
getValues
'
);
firstShowPanel
=
false
;
},
onShowPanel
:
function
()
{
if
(
!
firstShowPanel
)
{
if
(
selectedValues
.
indexOf
(
"
1
"
)
!=
-
1
)
{
for
(
var
i
=
0
;
i
<
arrs
.
length
;
i
++
){
$
(
"
#_easyui_combobox_i1_
"
+
i
).
hide
();
}
}
else
{
if
(
selectedValues
.
length
>
0
)
{
$
(
"
#_easyui_combobox_i1_0
"
).
hide
();
}
}
}
},
onSelect
:
function
(
record
)
{
var
values
=
$
(
'
#currentstate
'
).
combobox
(
'
getValues
'
);
var
opts
=
$
(
this
).
combobox
(
'
options
'
);
if
(
record
.
id
==
1
)
{
for
(
var
i
=
0
;
i
<
arrs
.
length
;
i
++
){
$
(
"
#_easyui_combobox_i1_
"
+
i
).
hide
();
}
$
(
"
.handleCom
"
).
show
();
}
else
{
$
(
"
#_easyui_combobox_i1_0
"
).
hide
();
$
(
"
.handleCom1
"
).
hide
();
}
return
false
;
}
});
}
//查询条件
//查询条件
function
getQueryParams
()
{
function
getQueryParams
()
{
var
sParam
=
{};
var
sParam
=
{};
...
@@ -24,7 +132,22 @@ function getQueryParams() {
...
@@ -24,7 +132,22 @@ function getQueryParams() {
// sParam.startTime = startTime;
// sParam.startTime = startTime;
// sParam.endTime = endTime;
// sParam.endTime = endTime;
// sParam.order = " order by createtime desc"
// sParam.order = " order by createtime desc"
var
chosed
=
$
(
'
#currentstate
'
).
combobox
(
'
getValues
'
);
var
currentstate
=
""
;
for
(
var
i
in
chosed
)
{
if
(
chosed
[
i
]
==
"
0
"
){
currentstate
+=
"
or STATE is null or STATE=0
"
;
}
else
{
currentstate
+=
"
or STATE=
"
+
chosed
[
i
];
}
}
if
(
currentstate
==
""
)
{
sParam
.
tableparam
=
""
;
}
else
{
if
(
currentstate
!=
""
)
{
sParam
.
tableparam
=
"
and (
"
+
currentstate
.
substr
(
3
)
+
"
)
"
;
}
}
return
sParam
;
return
sParam
;
}
}
...
@@ -64,10 +187,18 @@ function initGrid() {
...
@@ -64,10 +187,18 @@ function initGrid() {
{
{
field
:
'
mode
'
,
title
:
'
当前状态
'
,
hidden
:
false
,
width
:
60
,
field
:
'
mode
'
,
title
:
'
当前状态
'
,
hidden
:
false
,
width
:
60
,
formatter
:
function
showClick
(
value
,
record
,
num
)
{
formatter
:
function
showClick
(
value
,
record
,
num
)
{
if
(
value
==
20
)
{
// if (value == 20) {
return
"
<div style='height:13px;width:13px;background-color:#fe0000;border-radius:50%;-moz-border-radius: 50%;-webkit-border-radius: 50%;margin:0 auto;'></div>
"
;
// return "<div style='height:13px;width:13px;background-color:#fe0000;border-radius:50%;-moz-border-radius: 50%;-webkit-border-radius: 50%;margin:0 auto;'></div>";
}
else
{
// } else {
// return "<div style='height:13px;width:13px;background-color:green;border-radius:50%;-moz-border-radius: 50%;-webkit-border-radius: 50%;margin:0 auto;'></div>";
// }
if
(
value
==
1
)
{
return
"
<div style='height:13px;width:13px;background-color:green;border-radius:50%;-moz-border-radius: 50%;-webkit-border-radius: 50%;margin:0 auto;'></div>
"
;
return
"
<div style='height:13px;width:13px;background-color:green;border-radius:50%;-moz-border-radius: 50%;-webkit-border-radius: 50%;margin:0 auto;'></div>
"
;
}
else
if
(
value
==
0
){
return
"
<div style='height:13px;width:13px;background-color:#fe0000;border-radius:50%;-moz-border-radius: 50%;-webkit-border-radius: 50%;margin:0 auto;'></div>
"
;
}
else
{
return
"
未知
"
;
}
}
}
}
},
},
...
...
WebRoot/yw/recordalarm/nhywjtxhdglstate/ywxhdhistorystate.js
View file @
8fc4920c
...
@@ -4,7 +4,6 @@ $(function () {
...
@@ -4,7 +4,6 @@ $(function () {
// console.log("历史记录:",currentstateid);
// console.log("历史记录:",currentstateid);
initDefault
();
initDefault
();
});
});
//默认
//默认
function
initDefault
()
{
function
initDefault
()
{
// 设置默认时间
// 设置默认时间
...
...
WebRoot/yw/recordalarm/nhywjtydpglstate/nhywjtydpglstate.js
View file @
8fc4920c
var
windowId
,
proName
=
window
.
location
.
pathname
.
split
(
"
/
"
)[
1
],
var
windowId
,
proName
=
window
.
location
.
pathname
.
split
(
"
/
"
)[
1
],
sysUrl
=
"
http://
"
+
window
.
location
.
host
+
"
/
"
+
proName
,
toEdit
;
sysUrl
=
"
http://
"
+
window
.
location
.
host
+
"
/
"
+
proName
,
toEdit
;
var
arrs
=
[];
$
(
function
()
{
$
(
function
()
{
initDefault
();
initDefault
();
});
});
//默认
//默认
function
initDefault
()
{
function
initDefault
()
{
ywYdp
();
initGrid
();
initGrid
();
}
}
function
ywYdp
(){
$
.
ajax
({
type
:
'
post
'
,
async
:
true
,
dataType
:
'
json
'
,
url
:
'
xtclAction!listXtclByPage.do
'
,
//dac 行政树
// url:'ptxzsAction!query_Ptxzs.do' ,//本地 行政树
data
:{
LIKEcsdl
:
"
nhywjtledydpglCurrent
"
,
LIKEcslm
:
""
,
LIKEcsdm
:
""
,
LIKEcsmc
:
""
,
order
:
"
order by csdl asc
"
,
page
:
1
,
rows
:
20
,
},
}).
done
(
function
(
data
)
{
var
arr
=
[];
if
(
data
.
rows
.
length
>
0
){
for
(
var
i
in
data
.
rows
){
arr
.
push
({
name
:
data
.
rows
[
i
].
csmc
,
value
:
data
.
rows
[
i
].
csdm
});
}
}
arrs
=
arr
;
initCacheStatus
();
// var a =data;
});
}
//初始化下拉框
function
initCacheStatus
()
{
var
ywDeviceStatusArr
=
[];
// var videoStatus = Constants.videoStatus;
var
videoStatus
=
arrs
;
for
(
var
i
in
videoStatus
)
{
ywDeviceStatusArr
.
push
({
"
id
"
:
videoStatus
[
i
].
value
,
"
text
"
:
videoStatus
[
i
].
name
})
}
$
(
"
#currentstate
"
).
combobox
(
"
loadData
"
,
ywDeviceStatusArr
);
$
(
'
#currentstate
'
).
combobox
({
formatter
:
function
(
row
)
{
var
opts
=
$
(
this
).
combobox
(
'
options
'
);
return
row
[
opts
.
textField
];
}
});
var
firstShowPanel
=
true
;
var
ht
=
[];
for
(
var
i
=
0
;
i
<
arrs
.
length
;
i
++
){
var
str
=
"
#_easyui_combobox_i1_
"
+
i
;
ht
.
push
({
id
:
str
});
}
for
(
var
i
=
0
;
i
<
ht
.
length
;
i
++
){
$
(
ht
[
i
].
id
).
after
(
"
<div onclick='handleA' class='handleCom1' style='display:none;'>
"
+
$
(
ht
[
i
].
id
).
html
()
+
"
</div>
"
);
}
$
(
'
#currentstate
'
).
combobox
({
onUnselect
:
function
(
record
)
{
var
opts
=
$
(
this
).
combobox
(
'
options
'
);
var
values
=
$
(
'
#currentstate
'
).
combobox
(
'
getValues
'
);
if
(
record
.
id
==
1
)
{
for
(
var
i
=
0
;
i
<
arrs
.
length
;
i
++
){
$
(
"
#_easyui_combobox_i1_
"
+
i
).
show
();
}
$
(
"
.handleCom
"
).
hide
();
}
else
{
if
(
values
.
length
<=
1
)
{
var
values
=
$
(
'
#currentstate
'
).
combobox
(
'
getValues
'
);
$
(
"
.handleCom1
"
).
hide
();
$
(
"
#_easyui_combobox_i1_0
"
).
show
();
}
}
},
onChange
:
function
()
{
var
values
=
$
(
'
#currentstate
'
).
combobox
(
'
getValues
'
);
},
onHidePanel
:
function
()
{
selectedValues
=
$
(
'
#currentstate
'
).
combobox
(
'
getValues
'
);
firstShowPanel
=
false
;
},
onShowPanel
:
function
()
{
if
(
!
firstShowPanel
)
{
if
(
selectedValues
.
indexOf
(
"
1
"
)
!=
-
1
)
{
for
(
var
i
=
0
;
i
<
arrs
.
length
;
i
++
){
$
(
"
#_easyui_combobox_i1_
"
+
i
).
hide
();
}
}
else
{
if
(
selectedValues
.
length
>
0
)
{
$
(
"
#_easyui_combobox_i1_0
"
).
hide
();
}
}
}
},
onSelect
:
function
(
record
)
{
var
values
=
$
(
'
#currentstate
'
).
combobox
(
'
getValues
'
);
var
opts
=
$
(
this
).
combobox
(
'
options
'
);
if
(
record
.
id
==
1
)
{
for
(
var
i
=
0
;
i
<
arrs
.
length
;
i
++
){
$
(
"
#_easyui_combobox_i1_
"
+
i
).
hide
();
}
$
(
"
.handleCom
"
).
show
();
}
else
{
$
(
"
#_easyui_combobox_i1_0
"
).
hide
();
$
(
"
.handleCom1
"
).
hide
();
}
return
false
;
}
});
}
//查询条件
//查询条件
function
getQueryParams
()
{
function
getQueryParams
()
{
var
sParam
=
{};
var
sParam
=
{};
...
@@ -19,7 +125,19 @@ function getQueryParams() {
...
@@ -19,7 +125,19 @@ function getQueryParams() {
sParam
.
LIKEledmc
=
$
(
'
#LIKEledmc
'
).
textbox
(
"
getValue
"
);
sParam
.
LIKEledmc
=
$
(
'
#LIKEledmc
'
).
textbox
(
"
getValue
"
);
sParam
.
LIKEbz
=
$
(
'
#bz
'
).
textbox
(
"
getValue
"
);
sParam
.
LIKEbz
=
$
(
'
#bz
'
).
textbox
(
"
getValue
"
);
sParam
.
emptyremarks
=
$
(
'
#combobz
'
).
combobox
(
"
getValue
"
);
sParam
.
emptyremarks
=
$
(
'
#combobz
'
).
combobox
(
"
getValue
"
);
var
chosed
=
$
(
'
#currentstate
'
).
combobox
(
'
getValues
'
);
var
currentstate
=
""
;
for
(
var
i
in
chosed
)
{
currentstate
+=
"
or STATE=
"
+
chosed
[
i
];
}
if
(
currentstate
==
"
1
"
)
{
sParam
.
tableparam
=
"
and (STATE is not null and STATE!=0)
"
;
}
else
{
if
(
currentstate
!=
""
)
{
sParam
.
tableparam
=
"
and (
"
+
currentstate
.
substr
(
3
)
+
"
)
"
;
}
}
// sParam.startTime = startTime;
// sParam.startTime = startTime;
// sParam.endTime = endTime;
// sParam.endTime = endTime;
return
sParam
;
return
sParam
;
...
...
WebRoot/yw/recordalarm/nhywjtydpglstate/nhywjtydpglstate.jsp
View file @
8fc4920c
...
@@ -45,6 +45,10 @@
...
@@ -45,6 +45,10 @@
<option
value=
"0"
>
为空
</option>
<option
value=
"0"
>
为空
</option>
</select>
</select>
</div>
</div>
<div
class=
'fl'
>
<span
class=
"text-content"
>
设备状态:
</span>
<input
class=
"easyui-combobox"
id=
"currentstate"
name=
"currentstate"
data-options=
"multiple:true, textField:'text', valueField:'id', panelWidth:148,value:''"
>
</div>
<!-- <div class='fl'>
<!-- <div class='fl'>
<span class="text-content">主机状态:</span>
<span class="text-content">主机状态:</span>
<input class="easyui-textbox" id="LIKEmachinestatusid" data-options="validType:'length[0,40]'" >
<input class="easyui-textbox" id="LIKEmachinestatusid" data-options="validType:'length[0,40]'" >
...
...
WebRoot/yw/recordalarm/ywmachinecurrentstate/ywmachinecurrentstate.js
View file @
8fc4920c
var
windowId
,
proName
=
window
.
location
.
pathname
.
split
(
"
/
"
)[
1
],
var
windowId
,
proName
=
window
.
location
.
pathname
.
split
(
"
/
"
)[
1
],
sysUrl
=
"
http://
"
+
window
.
location
.
host
+
"
/
"
+
proName
,
toEdit
;
sysUrl
=
"
http://
"
+
window
.
location
.
host
+
"
/
"
+
proName
,
toEdit
;
var
arrs
=
[];
$
(
function
()
{
$
(
function
()
{
initDefault
();
initDefault
();
});
});
//默认
//默认
function
initDefault
()
{
function
initDefault
()
{
ywFwq
();
initGrid
();
initGrid
();
}
}
function
ywFwq
(){
$
.
ajax
({
type
:
'
post
'
,
async
:
true
,
dataType
:
'
json
'
,
url
:
'
xtclAction!listXtclByPage.do
'
,
//dac 行政树
// url:'ptxzsAction!query_Ptxzs.do' ,//本地 行政树
data
:{
LIKEcsdl
:
"
ywMachineCurrent
"
,
LIKEcslm
:
""
,
LIKEcsdm
:
""
,
LIKEcsmc
:
""
,
order
:
"
order by csdl asc
"
,
page
:
1
,
rows
:
20
,
},
}).
done
(
function
(
data
)
{
var
arr
=
[];
if
(
data
.
rows
.
length
>
0
){
for
(
var
i
in
data
.
rows
){
arr
.
push
({
name
:
data
.
rows
[
i
].
csmc
,
value
:
data
.
rows
[
i
].
csdm
});
}
}
arrs
=
arr
;
initCacheStatus
();
// var a =data;
});
}
//初始化下拉框
function
initCacheStatus
()
{
var
ywDeviceStatusArr
=
[];
// var videoStatus = Constants.videoStatus;
var
videoStatus
=
arrs
;
for
(
var
i
in
videoStatus
)
{
ywDeviceStatusArr
.
push
({
"
id
"
:
videoStatus
[
i
].
value
,
"
text
"
:
videoStatus
[
i
].
name
})
}
$
(
"
#currentstate
"
).
combobox
(
"
loadData
"
,
ywDeviceStatusArr
);
$
(
'
#currentstate
'
).
combobox
({
formatter
:
function
(
row
)
{
var
opts
=
$
(
this
).
combobox
(
'
options
'
);
return
row
[
opts
.
textField
];
}
});
var
firstShowPanel
=
true
;
var
ht
=
[];
for
(
var
i
=
0
;
i
<
arrs
.
length
;
i
++
){
var
str
=
"
#_easyui_combobox_i1_
"
+
i
;
ht
.
push
({
id
:
str
});
}
for
(
var
i
=
0
;
i
<
ht
.
length
;
i
++
){
$
(
ht
[
i
].
id
).
after
(
"
<div onclick='handleA' class='handleCom1' style='display:none;'>
"
+
$
(
ht
[
i
].
id
).
html
()
+
"
</div>
"
);
}
$
(
'
#currentstate
'
).
combobox
({
onUnselect
:
function
(
record
)
{
var
opts
=
$
(
this
).
combobox
(
'
options
'
);
var
values
=
$
(
'
#currentstate
'
).
combobox
(
'
getValues
'
);
if
(
record
.
id
==
1
)
{
for
(
var
i
=
0
;
i
<
arrs
.
length
;
i
++
){
$
(
"
#_easyui_combobox_i1_
"
+
i
).
show
();
}
$
(
"
.handleCom
"
).
hide
();
}
else
{
if
(
values
.
length
<=
1
)
{
var
values
=
$
(
'
#currentstate
'
).
combobox
(
'
getValues
'
);
$
(
"
.handleCom1
"
).
hide
();
$
(
"
#_easyui_combobox_i1_0
"
).
show
();
}
}
},
onChange
:
function
()
{
var
values
=
$
(
'
#currentstate
'
).
combobox
(
'
getValues
'
);
},
onHidePanel
:
function
()
{
selectedValues
=
$
(
'
#currentstate
'
).
combobox
(
'
getValues
'
);
firstShowPanel
=
false
;
},
onShowPanel
:
function
()
{
if
(
!
firstShowPanel
)
{
if
(
selectedValues
.
indexOf
(
"
1
"
)
!=
-
1
)
{
for
(
var
i
=
0
;
i
<
arrs
.
length
;
i
++
){
$
(
"
#_easyui_combobox_i1_
"
+
i
).
hide
();
}
}
else
{
if
(
selectedValues
.
length
>
0
)
{
$
(
"
#_easyui_combobox_i1_0
"
).
hide
();
}
}
}
},
onSelect
:
function
(
record
)
{
var
values
=
$
(
'
#currentstate
'
).
combobox
(
'
getValues
'
);
var
opts
=
$
(
this
).
combobox
(
'
options
'
);
if
(
record
.
id
==
1
)
{
for
(
var
i
=
0
;
i
<
arrs
.
length
;
i
++
){
$
(
"
#_easyui_combobox_i1_
"
+
i
).
hide
();
}
$
(
"
.handleCom
"
).
show
();
}
else
{
$
(
"
#_easyui_combobox_i1_0
"
).
hide
();
$
(
"
.handleCom1
"
).
hide
();
}
return
false
;
}
});
}
//查询条件
//查询条件
function
getQueryParams
()
{
function
getQueryParams
()
{
var
sParam
=
{};
var
sParam
=
{};
...
@@ -18,9 +128,47 @@ function getQueryParams() {
...
@@ -18,9 +128,47 @@ function getQueryParams() {
sParam
.
LIKEmachinename
=
$
(
'
#LIKEmachinename
'
).
textbox
(
"
getValue
"
);
sParam
.
LIKEmachinename
=
$
(
'
#LIKEmachinename
'
).
textbox
(
"
getValue
"
);
sParam
.
LIKEbz
=
$
(
'
#bz
'
).
textbox
(
"
getValue
"
);
sParam
.
LIKEbz
=
$
(
'
#bz
'
).
textbox
(
"
getValue
"
);
sParam
.
emptyremarks
=
$
(
'
#combobz
'
).
combobox
(
"
getValue
"
);
// sParam.startTime = startTime;
// sParam.startTime = startTime;
// sParam.endTime = endTime;
// sParam.endTime = endTime;
var
chosed
=
$
(
'
#currentstate
'
).
combobox
(
'
getValues
'
);
var
currentstate
=
""
;
// for (var i in chosed) {
// currentstate += " or CURRENTSTATE= " + chosed[i];
//
// }
// if (currentstate == "1") {
// sParam.tableparam = " and (CURRENTSTATE is not null and CURRENTSTATE!=0)";
// } else {
// if (currentstate != "") {
// sParam.tableparam = " and (" + currentstate.substr(3) + ") ";
// }
// }
// for (var i in chosed) {
// currentstate += " or isonline= " + chosed[i];
//
// }
// if (currentstate == "1") {
// sParam.tableparam = " and (isonline is not null and isonline!=0)";
// } else {
// if (currentstate != "") {
// sParam.tableparam = " and (" + currentstate.substr(3) + ") ";
// }
// }
for
(
var
i
in
chosed
)
{
currentstate
+=
"
or currentstate=
"
+
chosed
[
i
];
}
if
(
currentstate
==
""
)
{
sParam
.
tableparam
=
""
;
}
else
{
if
(
currentstate
!=
""
)
{
sParam
.
tableparam
=
"
and (
"
+
currentstate
.
substr
(
3
)
+
"
)
"
;
}
}
// sParam.tableparam = " and (isonline is not null and isonline!=0)";
sParam
.
order
=
"
order by createtime desc
"
;
sParam
.
order
=
"
order by createtime desc
"
;
return
sParam
;
return
sParam
;
...
...
WebRoot/yw/recordalarm/ywmachinecurrentstate/ywmachinecurrentstate.jsp
View file @
8fc4920c
...
@@ -45,6 +45,10 @@
...
@@ -45,6 +45,10 @@
<option
value=
"0"
>
为空
</option>
<option
value=
"0"
>
为空
</option>
</select>
</select>
</div>
</div>
<div
class=
'fl'
>
<span
class=
"text-content"
>
设备状态:
</span>
<input
class=
"easyui-combobox"
id=
"currentstate"
name=
"currentstate"
data-options=
"multiple:true, textField:'text', valueField:'id', panelWidth:148,value:''"
>
</div>
<!-- <div class='fl'>
<!-- <div class='fl'>
<span class="text-content">主机状态:</span>
<span class="text-content">主机状态:</span>
<input class="easyui-textbox" id="LIKEmachinestatusid" data-options="validType:'length[0,40]'" >
<input class="easyui-textbox" id="LIKEmachinestatusid" data-options="validType:'length[0,40]'" >
...
...
WebRoot/yw/recordalarm/zxldstate/zxldcurrentstate.js
View file @
8fc4920c
var
windowId
,
proName
=
window
.
location
.
pathname
.
split
(
"
/
"
)[
1
],
sysUrl
=
"
http://
"
+
window
.
location
.
host
+
"
/
"
+
proName
,
toEdit
;
var
windowId
,
proName
=
window
.
location
.
pathname
.
split
(
"
/
"
)[
1
],
sysUrl
=
"
http://
"
+
window
.
location
.
host
+
"
/
"
+
proName
,
toEdit
;
var
arrs
=
[];
$
(
function
(){
$
(
function
(){
initDefault
();
initDefault
();
});
});
//默认
//默认
function
initDefault
(){
function
initDefault
(){
ywLd
();
initGrid
();
initGrid
();
}
}
function
ywLd
(){
$
.
ajax
({
type
:
'
post
'
,
async
:
true
,
dataType
:
'
json
'
,
url
:
'
xtclAction!listXtclByPage.do
'
,
//dac 行政树
// url:'ptxzsAction!query_Ptxzs.do' ,//本地 行政树
data
:{
LIKEcsdl
:
"
ksh_ZxldCurrent
"
,
LIKEcslm
:
""
,
LIKEcsdm
:
""
,
LIKEcsmc
:
""
,
order
:
"
order by csdl asc
"
,
page
:
1
,
rows
:
20
,
},
}).
done
(
function
(
data
)
{
var
arr
=
[];
if
(
data
.
rows
.
length
>
0
){
for
(
var
i
in
data
.
rows
){
arr
.
push
({
name
:
data
.
rows
[
i
].
csmc
,
value
:
data
.
rows
[
i
].
csdm
});
}
}
arrs
=
arr
;
initCacheStatus
();
// var a =data;
});
}
//初始化下拉框
function
initCacheStatus
()
{
var
ywDeviceStatusArr
=
[];
// var videoStatus = Constants.videoStatus;
var
videoStatus
=
arrs
;
for
(
var
i
in
videoStatus
)
{
ywDeviceStatusArr
.
push
({
"
id
"
:
videoStatus
[
i
].
value
,
"
text
"
:
videoStatus
[
i
].
name
})
}
$
(
"
#currentstate
"
).
combobox
(
"
loadData
"
,
ywDeviceStatusArr
);
$
(
'
#currentstate
'
).
combobox
({
formatter
:
function
(
row
)
{
var
opts
=
$
(
this
).
combobox
(
'
options
'
);
return
row
[
opts
.
textField
];
}
});
var
firstShowPanel
=
true
;
var
ht
=
[];
for
(
var
i
=
0
;
i
<
arrs
.
length
;
i
++
){
var
str
=
"
#_easyui_combobox_i1_
"
+
i
;
ht
.
push
({
id
:
str
});
}
for
(
var
i
=
0
;
i
<
ht
.
length
;
i
++
){
$
(
ht
[
i
].
id
).
after
(
"
<div onclick='handleA' class='handleCom1' style='display:none;'>
"
+
$
(
ht
[
i
].
id
).
html
()
+
"
</div>
"
);
}
$
(
'
#currentstate
'
).
combobox
({
onUnselect
:
function
(
record
)
{
var
opts
=
$
(
this
).
combobox
(
'
options
'
);
var
values
=
$
(
'
#currentstate
'
).
combobox
(
'
getValues
'
);
if
(
record
.
id
==
1
)
{
for
(
var
i
=
0
;
i
<
arrs
.
length
;
i
++
){
$
(
"
#_easyui_combobox_i1_
"
+
i
).
show
();
}
$
(
"
.handleCom
"
).
hide
();
}
else
{
if
(
values
.
length
<=
1
)
{
var
values
=
$
(
'
#currentstate
'
).
combobox
(
'
getValues
'
);
$
(
"
.handleCom1
"
).
hide
();
$
(
"
#_easyui_combobox_i1_0
"
).
show
();
}
}
},
onChange
:
function
()
{
var
values
=
$
(
'
#currentstate
'
).
combobox
(
'
getValues
'
);
},
onHidePanel
:
function
()
{
selectedValues
=
$
(
'
#currentstate
'
).
combobox
(
'
getValues
'
);
firstShowPanel
=
false
;
},
onShowPanel
:
function
()
{
if
(
!
firstShowPanel
)
{
if
(
selectedValues
.
indexOf
(
"
1
"
)
!=
-
1
)
{
for
(
var
i
=
0
;
i
<
arrs
.
length
;
i
++
){
$
(
"
#_easyui_combobox_i1_
"
+
i
).
hide
();
}
}
else
{
if
(
selectedValues
.
length
>
0
)
{
$
(
"
#_easyui_combobox_i1_0
"
).
hide
();
}
}
}
},
onSelect
:
function
(
record
)
{
var
values
=
$
(
'
#currentstate
'
).
combobox
(
'
getValues
'
);
var
opts
=
$
(
this
).
combobox
(
'
options
'
);
if
(
record
.
id
==
1
)
{
for
(
var
i
=
0
;
i
<
arrs
.
length
;
i
++
){
$
(
"
#_easyui_combobox_i1_
"
+
i
).
hide
();
}
$
(
"
.handleCom
"
).
show
();
}
else
{
$
(
"
#_easyui_combobox_i1_0
"
).
hide
();
$
(
"
.handleCom1
"
).
hide
();
}
return
false
;
}
});
}
//查询条件
//查询条件
function
getQueryParams
(){
function
getQueryParams
(){
var
sParam
=
{};
var
sParam
=
{};
sParam
.
LIKEldmc
=
$
(
'
#LIKEldmc
'
).
textbox
(
"
getValue
"
);
sParam
.
LIKEldmc
=
$
(
'
#LIKEldmc
'
).
textbox
(
"
getValue
"
);
sParam
.
LIKEbz
=
$
(
'
#bz
'
).
textbox
(
"
getValue
"
);
sParam
.
LIKEbz
=
$
(
'
#bz
'
).
textbox
(
"
getValue
"
);
sParam
.
emptyremarks
=
$
(
'
#combobz
'
).
combobox
(
"
getValue
"
);
sParam
.
emptyremarks
=
$
(
'
#combobz
'
).
combobox
(
"
getValue
"
);
var
chosed
=
$
(
'
#currentstate
'
).
combobox
(
'
getValues
'
);
var
state
=
""
;
for
(
var
i
in
chosed
)
{
if
(
chosed
[
i
]
==
"
0
"
){
state
+=
"
or STATE is null or STATE=0
"
;
}
else
{
state
+=
"
or STATE=
"
+
chosed
[
i
];
}
}
if
(
state
==
""
)
{
sParam
.
tableparam
=
""
;
}
else
{
if
(
state
!=
""
)
{
sParam
.
tableparam
=
"
and (
"
+
state
.
substr
(
3
)
+
"
)
"
;
}
}
return
sParam
;
return
sParam
;
}
}
//加载列表
//加载列表
...
...
WebRoot/yw/recordalarm/zxldstate/zxldcurrentstate.jsp
View file @
8fc4920c
...
@@ -44,6 +44,10 @@
...
@@ -44,6 +44,10 @@
<option
value=
"0"
>
为空
</option>
<option
value=
"0"
>
为空
</option>
</select>
</select>
</div>
</div>
<div
class=
'fl'
>
<span
class=
"text-content"
>
设备状态:
</span>
<input
class=
"easyui-combobox"
id=
"currentstate"
name=
"currentstate"
data-options=
"multiple:true, textField:'text', valueField:'id', panelWidth:148,value:''"
>
</div>
<!-- <div class='fl'>
<!-- <div class='fl'>
<span class="text-content">主机状态:</span>
<span class="text-content">主机状态:</span>
<input class="easyui-textbox" id="LIKEmachinestatusid" data-options="validType:'length[0,40]'" >
<input class="easyui-textbox" id="LIKEmachinestatusid" data-options="validType:'length[0,40]'" >
...
...
WebRoot/yw/szmap/map.jsp
View file @
8fc4920c
...
@@ -31,7 +31,7 @@ document.write("<script src='"+script_init+"'><\/script>");
...
@@ -31,7 +31,7 @@ document.write("<script src='"+script_init+"'><\/script>");
<script
type=
'text/javascript'
src=
'../szmap/business/base/item/CheGpsLayer.js'
></script>
<script
type=
'text/javascript'
src=
'../szmap/business/base/item/CheGpsLayer.js'
></script>
<!-- 首页弹出层响应事件 -->
<!-- 首页弹出层响应事件 -->
<script
type=
'text/javascript'
src=
'../../common/mapUtil.js'
></script>
<script
type=
'text/javascript'
src=
'../../common/mapUtil.js'
></script>
<
script
type=
'text/javascript'
src=
'business/base/BaseDataYzd.js'
></script
>
<
%--<script type='text/javascript' src='business/base/BaseDataYzd.js'></script>--%
>
<script
type=
'text/javascript'
src=
'../szmap/business/base/item/js/map.js'
></script>
<script
type=
'text/javascript'
src=
'../szmap/business/base/item/js/map.js'
></script>
<%--<script type="text/javascript" src="../../frame/main/area/console/rtcServer.js"></script>--%>
<%--<script type="text/javascript" src="../../frame/main/area/console/rtcServer.js"></script>--%>
<%--<script type="text/javascript" src="../../frame/main/area/console/rtcResponse.js"></script>--%>
<%--<script type="text/javascript" src="../../frame/main/area/console/rtcResponse.js"></script>--%>
...
...
WebRoot/yw/videoalarm/ywvideocurrentstate.js
View file @
8fc4920c
...
@@ -7,9 +7,10 @@ var detailWindowId = $.uniqueId();
...
@@ -7,9 +7,10 @@ var detailWindowId = $.uniqueId();
var
cacheStatusObj
=
{};
var
cacheStatusObj
=
{};
var
AllTree
=
null
;
var
AllTree
=
null
;
var
videoalarmTree
=
null
;
var
videoalarmTree
=
null
;
var
arrs
=
[];
$
(
function
()
{
$
(
function
()
{
initDefault
();
initDefault
();
initCacheStatus
();
ywVideo
();
//initTreePanel();
//initTreePanel();
});
});
...
@@ -68,12 +69,27 @@ function getQueryParams() {
...
@@ -68,12 +69,27 @@ function getQueryParams() {
// sParam.currentstate = $("#currentstate").combobox("getValue");
// sParam.currentstate = $("#currentstate").combobox("getValue");
var
chosed
=
$
(
'
#currentstate
'
).
combobox
(
'
getValues
'
);
var
chosed
=
$
(
'
#currentstate
'
).
combobox
(
'
getValues
'
);
var
currentstate
=
""
;
var
currentstate
=
""
;
for
(
var
i
in
chosed
)
{
// for (var i in chosed) {
currentstate
+=
"
or isonline=
"
+
chosed
[
i
];
// currentstate += " or isonline= " + chosed[i];
//
// }
// if (currentstate == "1") {
// sParam.tableparam = " and (isonline is not null and isonline!=0)";
// } else {
// if (currentstate != "") {
// sParam.tableparam = " and (" + currentstate.substr(3) + ") ";
// }
// }
for
(
var
i
in
chosed
)
{
// if(chosed[i]=="3"){
// currentstate += " or isonline !=3";
// }else{
currentstate
+=
"
or isonline=
"
+
chosed
[
i
];
// }
}
}
if
(
currentstate
==
"
1
"
)
{
if
(
currentstate
==
""
)
{
sParam
.
tableparam
=
"
and isonline!=0
"
;
sParam
.
tableparam
=
""
;
}
else
{
}
else
{
if
(
currentstate
!=
""
)
{
if
(
currentstate
!=
""
)
{
sParam
.
tableparam
=
"
and (
"
+
currentstate
.
substr
(
3
)
+
"
)
"
;
sParam
.
tableparam
=
"
and (
"
+
currentstate
.
substr
(
3
)
+
"
)
"
;
...
@@ -90,7 +106,7 @@ function getQueryParams() {
...
@@ -90,7 +106,7 @@ function getQueryParams() {
}
}
}
}
//sParam.order = "order by currentstatetime desc
";
sParam
.
order
=
"
order by isonline
"
;
return
sParam
;
return
sParam
;
}
}
...
@@ -277,23 +293,44 @@ function videoStatistics() {
...
@@ -277,23 +293,44 @@ function videoStatistics() {
data
:
{},
//getQueryParams(),
data
:
{},
//getQueryParams(),
success
:
function
(
res
)
{
success
:
function
(
res
)
{
if
(
res
!=
null
)
{
if
(
res
!=
null
)
{
$
(
"
#frontDeviceTotal
"
).
html
(
res
.
total
);
var
num
=
0
;
$
(
"
#normalFrontDeviceTotal
"
).
html
(
res
.
normalNum
);
var
num_zc
=
0
;
$
(
"
#abnormalFrontDeviceTotal
"
).
html
(
res
.
total
-
res
.
normalNum
);
for
(
var
i
in
res
.
data
){
if
(
res
.
data
[
i
].
csmc
==
'
normal
'
){
$
(
"
#normalFrontDeviceTotal
"
).
html
(
res
.
data
[
i
].
cnt
);
}
if
(
res
.
data
[
i
].
csmc
==
'
total
'
){
$
(
"
#frontDeviceTotal
"
).
html
(
res
.
data
[
i
].
cnt
);
}
if
(
res
.
data
[
i
].
csmc
==
'
abnormal
'
){
$
(
"
#abnormalFrontDeviceTotal
"
).
html
(
res
.
data
[
i
].
cnt
);
}
}
var
colors
=
[
"
#e16616
"
,
"
#754599
"
,
"
#84ccc9
"
];
var
data
=
{
var
data
=
{
"
title
"
:
"
设备故障类型占比分析
"
,
"
title
"
:
"
设备故障类型占比分析
"
,
data
:
[
data
:
[]
{
name
:
"
正常:
"
+
res
.
normalNum
,
value
:
res
.
normalNum
,
color
:
"
#fe0000
"
},
//{name:"网络异常:" + res.abnormalNetNum,value:res.abnormalNetNum,color:"#e16616"},
{
name
:
"
设备不在线:
"
+
res
.
abnormalOnlineNum
,
value
:
res
.
abnormalOnlineNum
,
color
:
"
#32c99d
"
},
{
name
:
"
抽帧异常:
"
+
res
.
abnormalVQCNum
,
value
:
res
.
abnormalVQCNum
,
color
:
"
#e36d6d
"
},
{
name
:
"
质量诊断异常:
"
+
res
.
abnormalVQDNum
,
value
:
res
.
abnormalVQDNum
,
color
:
"
#754599
"
},
{
name
:
"
录像异常:
"
+
res
.
abnormalRecordNum
,
value
:
res
.
abnormalRecordNum
,
color
:
"
#84ccc9
"
}
]
};
};
//遍历返回结果
for
(
var
i
in
res
.
data
)
{
if
(
res
.
data
[
i
].
csdm
==
"
normal
"
)
{
data
.
data
.
push
({
name
:
"
正常
"
,
value
:
res
.
data
[
i
].
cnt
,
color
:
"
#32c99d
"
})
}
else
if
(
res
.
data
[
i
].
csdm
==
"
abnormal
"
)
{
data
.
data
.
push
({
name
:
"
异常
"
,
value
:
res
.
data
[
i
].
cnt
,
color
:
"
#fe0000
"
})
}
}
EchartsBase
.
pieChart
({
EchartsBase
.
pieChart
({
id
:
"
deviceAnalysisGraphChart
"
,
id
:
"
deviceAnalysisGraphChart
"
,
data
:
data
data
:
data
,
orient
:
'
horizontal
'
,
// 'vertical'
});
});
}
}
//console.log("resresres",res);
//console.log("resresres",res);
...
@@ -325,13 +362,41 @@ function handleA(e) {
...
@@ -325,13 +362,41 @@ function handleA(e) {
//e.stopPropagation();
//e.stopPropagation();
//e.preventDefault();
//e.preventDefault();
}
}
function
ywVideo
(){
$
.
ajax
({
type
:
'
post
'
,
async
:
true
,
dataType
:
'
json
'
,
url
:
'
xtclAction!listXtclByPage.do
'
,
//dac 行政树
// url:'ptxzsAction!query_Ptxzs.do' ,//本地 行政树
data
:{
LIKEcsdl
:
"
ywVideoCurrent
"
,
LIKEcslm
:
""
,
LIKEcsdm
:
""
,
LIKEcsmc
:
""
,
order
:
"
order by csdl asc
"
,
page
:
1
,
rows
:
20
,
},
}).
done
(
function
(
data
)
{
var
arr
=
[];
if
(
data
.
rows
.
length
>
0
){
for
(
var
i
in
data
.
rows
){
arr
.
push
({
name
:
data
.
rows
[
i
].
csmc
,
value
:
data
.
rows
[
i
].
csdm
});
}
}
arrs
=
arr
;
initCacheStatus
();
// var a =data;
});
}
//初始化下拉框
//初始化下拉框
function
initCacheStatus
()
{
function
initCacheStatus
()
{
var
ywDeviceStatusArr
=
[];
var
ywDeviceStatusArr
=
[];
var
videoStatus
=
Constants
.
videoStatus
;
// var videoStatus = Constants.videoStatus;
var
videoStatus
=
arrs
;
for
(
var
i
in
videoStatus
)
{
for
(
var
i
in
videoStatus
)
{
ywDeviceStatusArr
.
push
({
"
id
"
:
i
,
"
text
"
:
videoStatus
[
i
]
})
ywDeviceStatusArr
.
push
({
"
id
"
:
videoStatus
[
i
].
value
,
"
text
"
:
videoStatus
[
i
].
name
})
}
}
$
(
"
#currentstate
"
).
combobox
(
"
loadData
"
,
ywDeviceStatusArr
);
$
(
"
#currentstate
"
).
combobox
(
"
loadData
"
,
ywDeviceStatusArr
);
$
(
'
#currentstate
'
).
combobox
({
$
(
'
#currentstate
'
).
combobox
({
...
@@ -341,28 +406,39 @@ function initCacheStatus() {
...
@@ -341,28 +406,39 @@ function initCacheStatus() {
}
}
});
});
var
firstShowPanel
=
true
;
var
firstShowPanel
=
true
;
var
html
=
$
(
"
#_easyui_combobox_i1_0
"
).
html
();
var
ht
=
[];
var
html1
=
$
(
"
#_easyui_combobox_i1_1
"
).
html
();
for
(
var
i
=
0
;
i
<
arrs
.
length
;
i
++
){
var
html2
=
$
(
"
#_easyui_combobox_i1_2
"
).
html
();
var
str
=
"
#_easyui_combobox_i1_
"
+
i
;
var
html3
=
$
(
"
#_easyui_combobox_i1_3
"
).
html
();
ht
.
push
({
id
:
str
});
var
html4
=
$
(
"
#_easyui_combobox_i1_4
"
).
html
();
}
var
html5
=
$
(
"
#_easyui_combobox_i1_5
"
).
html
();
for
(
var
i
=
0
;
i
<
ht
.
length
;
i
++
){
$
(
"
#_easyui_combobox_i1_1
"
).
after
(
"
<div onclick='handleA' class='handleCom' style='display:none;'>
"
+
html1
+
"
</div>
"
);
$
(
ht
[
i
].
id
).
after
(
"
<div onclick='handleA' class='handleCom1' style='display:none;'>
"
+
$
(
ht
[
i
].
id
).
html
()
+
"
</div>
"
);
$
(
"
#_easyui_combobox_i1_2
"
).
after
(
"
<div onclick='handleA' class='handleCom' style='display:none;'>
"
+
html2
+
"
</div>
"
);
}
$
(
"
#_easyui_combobox_i1_3
"
).
after
(
"
<div onclick='handleA' class='handleCom' style='display:none;'>
"
+
html3
+
"
</div>
"
);
// var html = $("#_easyui_combobox_i1_0").html();
$
(
"
#_easyui_combobox_i1_4
"
).
after
(
"
<div onclick='handleA' class='handleCom' style='display:none;'>
"
+
html4
+
"
</div>
"
);
// var html1 = $("#_easyui_combobox_i1_1").html();
$
(
"
#_easyui_combobox_i1_5
"
).
after
(
"
<div onclick='handleA' class='handleCom' style='display:none;'>
"
+
html5
+
"
</div>
"
);
// var html2 = $("#_easyui_combobox_i1_2").html();
$
(
"
#_easyui_combobox_i1_0
"
).
after
(
"
<div onclick='handleA' class='handleCom1' style='display:none;'>
"
+
html
+
"
</div>
"
);
// var html3 = $("#_easyui_combobox_i1_3").html();
// var html4 = $("#_easyui_combobox_i1_4").html();
// var html5 = $("#_easyui_combobox_i1_5").html();
// $("#_easyui_combobox_i1_0").after("<div onclick='handleA' class='handleCom1' style='display:none;'>" + html + "</div>");
// $("#_easyui_combobox_i1_1").after("<div onclick='handleA' class='handleCom' style='display:none;'>" + html1 + "</div>");
// $("#_easyui_combobox_i1_2").after("<div onclick='handleA' class='handleCom' style='display:none;'>" + html2 + "</div>");
// $("#_easyui_combobox_i1_3").after("<div onclick='handleA' class='handleCom' style='display:none;'>" + html3 + "</div>");
// $("#_easyui_combobox_i1_4").after("<div onclick='handleA' class='handleCom' style='display:none;'>" + html4 + "</div>");
// $("#_easyui_combobox_i1_5").after("<div onclick='handleA' class='handleCom' style='display:none;'>" + html5 + "</div>");
$
(
'
#currentstate
'
).
combobox
({
$
(
'
#currentstate
'
).
combobox
({
onUnselect
:
function
(
record
)
{
onUnselect
:
function
(
record
)
{
var
opts
=
$
(
this
).
combobox
(
'
options
'
);
var
opts
=
$
(
this
).
combobox
(
'
options
'
);
var
values
=
$
(
'
#currentstate
'
).
combobox
(
'
getValues
'
);
var
values
=
$
(
'
#currentstate
'
).
combobox
(
'
getValues
'
);
if
(
record
.
id
==
1
)
{
if
(
record
.
id
==
1
)
{
$
(
"
#_easyui_combobox_i1_1
"
).
show
();
// $("#_easyui_combobox_i1_1").show();
$
(
"
#_easyui_combobox_i1_2
"
).
show
();
// $("#_easyui_combobox_i1_2").show();
$
(
"
#_easyui_combobox_i1_3
"
).
show
();
// $("#_easyui_combobox_i1_3").show();
$
(
"
#_easyui_combobox_i1_4
"
).
show
();
// $("#_easyui_combobox_i1_4").show();
$
(
"
#_easyui_combobox_i1_5
"
).
show
();
// $("#_easyui_combobox_i1_5").show();
for
(
var
i
=
1
;
i
<=
arrs
.
length
;
i
++
){
$
(
"
#_easyui_combobox_i1_
"
+
i
).
show
();
}
$
(
"
.handleCom
"
).
hide
();
$
(
"
.handleCom
"
).
hide
();
}
else
{
}
else
{
if
(
values
.
length
<=
1
)
{
if
(
values
.
length
<=
1
)
{
...
@@ -382,11 +458,9 @@ function initCacheStatus() {
...
@@ -382,11 +458,9 @@ function initCacheStatus() {
onShowPanel
:
function
()
{
onShowPanel
:
function
()
{
if
(
!
firstShowPanel
)
{
if
(
!
firstShowPanel
)
{
if
(
selectedValues
.
indexOf
(
"
1
"
)
!=
-
1
)
{
if
(
selectedValues
.
indexOf
(
"
1
"
)
!=
-
1
)
{
$
(
"
#_easyui_combobox_i1_1
"
).
hide
();
for
(
var
i
=
1
;
i
<=
arrs
.
length
;
i
++
){
$
(
"
#_easyui_combobox_i1_2
"
).
hide
();
$
(
"
#_easyui_combobox_i1_
"
+
i
).
hide
();
$
(
"
#_easyui_combobox_i1_3
"
).
hide
();
}
$
(
"
#_easyui_combobox_i1_4
"
).
hide
();
$
(
"
#_easyui_combobox_i1_5
"
).
hide
();
}
else
{
}
else
{
if
(
selectedValues
.
length
>
0
)
{
if
(
selectedValues
.
length
>
0
)
{
$
(
"
#_easyui_combobox_i1_0
"
).
hide
();
$
(
"
#_easyui_combobox_i1_0
"
).
hide
();
...
@@ -398,15 +472,13 @@ function initCacheStatus() {
...
@@ -398,15 +472,13 @@ function initCacheStatus() {
var
values
=
$
(
'
#currentstate
'
).
combobox
(
'
getValues
'
);
var
values
=
$
(
'
#currentstate
'
).
combobox
(
'
getValues
'
);
var
opts
=
$
(
this
).
combobox
(
'
options
'
);
var
opts
=
$
(
this
).
combobox
(
'
options
'
);
if
(
record
.
id
==
1
)
{
if
(
record
.
id
==
1
)
{
$
(
"
#_easyui_combobox_i1_1
"
).
hide
();
// for(var i=1;i<=arrs.length;i++){
$
(
"
#_easyui_combobox_i1_2
"
).
hide
();
// $("#_easyui_combobox_i1_"+i).hide();
$
(
"
#_easyui_combobox_i1_3
"
).
hide
();
// }
$
(
"
#_easyui_combobox_i1_4
"
).
hide
();
$
(
"
#_easyui_combobox_i1_5
"
).
hide
();
$
(
"
.handleCom
"
).
show
();
$
(
"
.handleCom
"
).
show
();
}
else
{
}
else
{
$
(
"
#_easyui_combobox_i1_0
"
).
hide
();
$
(
"
#_easyui_combobox_i1_0
"
).
hide
();
$
(
"
.handleCom1
"
).
show
();
$
(
"
.handleCom1
"
).
hide
();
}
}
return
false
;
return
false
;
}
}
...
@@ -414,9 +486,9 @@ function initCacheStatus() {
...
@@ -414,9 +486,9 @@ function initCacheStatus() {
}
}
function
transStatus
(
data
)
{
function
transStatus
(
data
)
{
if
(
data
==
"
1
"
)
{
if
(
data
!=
"
0
"
)
{
return
"
<div style='height:13px;width:13px;background-color:#60b631;border-radius:50%;-moz-border-radius: 50%;-webkit-border-radius: 50%;margin:0 auto;'></div>
"
;
return
"
<div style='height:13px;width:13px;background-color:#60b631;border-radius:50%;-moz-border-radius: 50%;-webkit-border-radius: 50%;margin:0 auto;'></div>
"
;
}
else
if
(
data
==
"
0
"
)
{
}
else
{
return
"
<div style='height:13px;width:13px;background-color:#fe0000;border-radius:50%;-moz-border-radius: 50%;-webkit-border-radius: 50%;margin:0 auto;'></div>
"
;
return
"
<div style='height:13px;width:13px;background-color:#fe0000;border-radius:50%;-moz-border-radius: 50%;-webkit-border-radius: 50%;margin:0 auto;'></div>
"
;
}
}
return
""
;
return
""
;
...
...
WebRoot/yw/videomanage/videochannelset/sbtdspsr/sbtdspsr.js
View file @
8fc4920c
...
@@ -68,9 +68,6 @@ function initGrid(){
...
@@ -68,9 +68,6 @@ function initGrid(){
]]
]]
});
});
if
(
devicetype
!=
"
1
"
)
{
$
(
'
#tableGrid
'
).
datagrid
(
'
showColumn
'
,
'
tdbh
'
);
}
}
}
function
getSelectedRows
(){
function
getSelectedRows
(){
...
@@ -80,41 +77,15 @@ function getSelectedRows(){
...
@@ -80,41 +77,15 @@ function getSelectedRows(){
//获取选中元素
//获取选中元素
function
getSelected
(){
function
getSelected
(){
var
rows
=
$
(
'
#tableGrid
'
).
datagrid
(
'
getChecked
'
);
var
rows
=
$
(
'
#tableGrid
'
).
datagrid
(
'
getChecked
'
);
// console.log("勾选:",rows);
return
rows
;
return
rows
;
}
}
/*parent.parent.$(".l-btn-text").on("click",function(){
if($(this).text()=="关闭"){
return;
}
var insertParam = {};
// insertParam.channelsetid = channelsetid;
var rows = $('#tableGrid').datagrid('getChecked');
// top.$("#"+winId).panel("options").data.insertParam = insertParam;
// top.$("#"+winId).panel("options").data.channelsetid = channelsetid;
$.ajax({
type:'post',
dataType : 'json',
url:'ywvideochannelsetlistAction!batch_add_Ywvideochannelsetlist.do',
data:{channelsetid:channelsetid,param:JSON.stringify(rows)},
success:function(value){
if(value=="success"){
$.showMsg("操作成功!");
// top.$("#"+winId).dialog('close');
// doSearch();
}else if(value=="same"){
$.showMsg("已存在!");
}else{
$.showMsg("操作失败!");
}
}
});
});*/
//删除
function
doSearch
(){
function
doSearch
(){
$
(
'
#tableGrid
'
).
datagrid
(
'
load
'
,
getQueryParams
());
$
(
'
#tableGrid
'
).
datagrid
(
'
load
'
,
getQueryParams
());
if
(
devicetype
==
"
1
"
)
{
$
(
'
#tableGrid
'
).
datagrid
(
'
showColumn
'
,
'
tdbh
'
);
}
else
{
$
(
'
#tableGrid
'
).
datagrid
(
'
hideColumn
'
,
'
tdbh
'
);
}
}
}
WebRoot/yw/videomanage/videochannelset/ywvideochannelsetlist/ywvideochannelsetlist.js
View file @
8fc4920c
...
@@ -129,13 +129,7 @@ function initGrid(){
...
@@ -129,13 +129,7 @@ function initGrid(){
{
field
:
'
extend4
'
,
title
:
'
扩展4
'
,
hidden
:
true
,
width
:
120
}
{
field
:
'
extend4
'
,
title
:
'
扩展4
'
,
hidden
:
true
,
width
:
120
}
]]
]]
});
});
//控制显影
if
(
devicetype
==
"
1
"
)
{
$
(
'
#tableGrid
'
).
datagrid
(
'
showColumn
'
,
'
channelnum
'
);
$
(
'
#tableGrid
'
).
datagrid
(
'
showColumn
'
,
'
videomodelname
'
);
$
(
'
#tableGrid
'
).
datagrid
(
'
showColumn
'
,
'
recordxdays
'
);
$
(
'
#tableGrid
'
).
datagrid
(
'
showColumn
'
,
'
recordmodelname
'
);
}
}
}
//删除
//删除
function
doDelete
(){
function
doDelete
(){
...
@@ -254,6 +248,20 @@ function doend_batch(){
...
@@ -254,6 +248,20 @@ function doend_batch(){
//查询
//查询
function
doSearch
(){
function
doSearch
(){
$
(
'
#tableGrid
'
).
datagrid
(
'
load
'
,
getQueryParams
());
$
(
'
#tableGrid
'
).
datagrid
(
'
load
'
,
getQueryParams
());
//控制显影
if
(
devicetype
==
"
1
"
)
{
$
(
'
#tableGrid
'
).
datagrid
(
'
showColumn
'
,
'
channelnum
'
);
$
(
'
#tableGrid
'
).
datagrid
(
'
showColumn
'
,
'
videomodelname
'
);
$
(
'
#tableGrid
'
).
datagrid
(
'
showColumn
'
,
'
recordxdays
'
);
$
(
'
#tableGrid
'
).
datagrid
(
'
showColumn
'
,
'
recordmodelname
'
);
}
else
{
$
(
'
#tableGrid
'
).
datagrid
(
'
hideColumn
'
,
'
channelnum
'
);
$
(
'
#tableGrid
'
).
datagrid
(
'
hideColumn
'
,
'
videomodelname
'
);
$
(
'
#tableGrid
'
).
datagrid
(
'
hideColumn
'
,
'
recordxdays
'
);
$
(
'
#tableGrid
'
).
datagrid
(
'
hideColumn
'
,
'
recordmodelname
'
);
}
}
}
//增加
//增加
function
doAdd
(){
function
doAdd
(){
...
...
config/db.properties
View file @
8fc4920c
#数据源1
#
#datasource1.driver=oracle.jdbc.OracleDriver
#
#datasource1.url=jdbc:oracle:thin:@192.168.168.212:1521:helowin
#
#datasource1.username=zn06
#
#datasource1.password=znznzn8
#数据源1
#数据源1
datasource1.driver
=
oracle.jdbc.OracleDriver
datasource1.driver
=
oracle.jdbc.OracleDriver
...
...
config/sqlMapConfig.xml
View file @
8fc4920c
...
@@ -32,7 +32,7 @@
...
@@ -32,7 +32,7 @@
<sqlMap
resource=
"sqlmap/Ptlxccqzgl.xml"
/>
<sqlMap
resource=
"sqlmap/Ptlxccqzgl.xml"
/>
<sqlMap
resource=
"sqlmap/Sbtdjqqx.xml"
/>
<sqlMap
resource=
"sqlmap/Sbtdjqqx.xml"
/>
<sqlMap
resource=
"sqlmap/Sbtdtpqx.xml"
/>
<sqlMap
resource=
"sqlmap/Sbtdtpqx.xml"
/>
<
sqlMap
resource=
"sqlmap/Sbtdspyzd.xml"
/
>
<
!--<sqlMap resource="sqlmap/Sbtdspyzd.xml" />--
>
<!-- 平台信息/end -->
<!-- 平台信息/end -->
<!-- 系统常量变化量/start -->
<!-- 系统常量变化量/start -->
...
...
config/szmap/mainConfig.json
View file @
8fc4920c
...
@@ -99,21 +99,13 @@
...
@@ -99,21 +99,13 @@
"clickFun"
:
"MapToolBar.frameSelect()"
"clickFun"
:
"MapToolBar.frameSelect()"
}
}
],
],
"menulist"
:
[{
"menulist"
:
[
{
"title"
:
"̨"
,
"id"
:
"jklk-tab"
,
"content"
:
""
},
{
"title"
:
"资源列表"
,
"title"
:
"资源列表"
,
"id"
:
"monitor-tab"
,
"id"
:
"monitor-tab"
,
"content"
:
""
"content"
:
""
}
}
],
],
"selectedlist"
:
[{
"selectedlist"
:
[
{
"title"
:
"̨"
,
"id"
:
"jklk-tab-selected"
,
"content"
:
""
},
{
"title"
:
"资源列表"
,
"title"
:
"资源列表"
,
"id"
:
"monitor-tab-selected"
,
"id"
:
"monitor-tab-selected"
,
"content"
:
""
"content"
:
""
...
...
impnhyw.iml
View file @
8fc4920c
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<module
type=
"JAVA_MODULE"
version=
"4"
>
<module
type=
"JAVA_MODULE"
version=
"4"
>
<component
name=
"EclipseModuleManager"
>
<conelement
value=
"org.eclipse.jst.server.core.container/org.eclipse.jst.server.tomcat.runtimeTarget/Apache Tomcat v7.0"
/>
<conelement
value=
"org.eclipse.jst.j2ee.internal.web.container"
/>
<conelement
value=
"org.eclipse.jst.j2ee.internal.module.container"
/>
<src_description
expected_position=
"0"
>
<src_folder
value=
"file://$MODULE_DIR$/src"
expected_position=
"0"
/>
<src_folder
value=
"file://$MODULE_DIR$/config"
expected_position=
"1"
/>
</src_description>
</component>
<component
name=
"FacetManager"
>
<component
name=
"FacetManager"
>
<facet
type=
"Spring"
name=
"Spring"
>
<configuration>
<fileset
id=
"fileset"
name=
"Spring Application Context"
removed=
"false"
>
<file>
file://$MODULE_DIR$/WebRoot/WEB-INF/springBase.xml
</file>
<file>
file://$MODULE_DIR$/WebRoot/WEB-INF/springService.xml
</file>
</fileset>
</configuration>
</facet>
<facet
type=
"web"
name=
"Web"
>
<facet
type=
"web"
name=
"Web"
>
<configuration>
<configuration>
<descriptors>
<descriptors>
...
@@ -27,24 +10,35 @@
...
@@ -27,24 +10,35 @@
<root
url=
"file://$MODULE_DIR$/WebRoot"
relative=
"/"
/>
<root
url=
"file://$MODULE_DIR$/WebRoot"
relative=
"/"
/>
</webroots>
</webroots>
<sourceRoots>
<sourceRoots>
<root
url=
"file://$MODULE_DIR$/src"
/>
<root
url=
"file://$MODULE_DIR$/config"
/>
<root
url=
"file://$MODULE_DIR$/config"
/>
<root
url=
"file://$MODULE_DIR$/
WebRoot
"
/>
<root
url=
"file://$MODULE_DIR$/
src
"
/>
</sourceRoots>
</sourceRoots>
</configuration>
</configuration>
</facet>
</facet>
<facet
type=
"Spring"
name=
"Spring"
>
<configuration>
<fileset
id=
"fileset"
name=
"Spring Application Context"
removed=
"false"
>
<file>
file://$MODULE_DIR$/WebRoot/WEB-INF/springBase.xml
</file>
<file>
file://$MODULE_DIR$/WebRoot/WEB-INF/springService.xml
</file>
</fileset>
</configuration>
</facet>
</component>
</component>
<component
name=
"NewModuleRootManager"
LANGUAGE_LEVEL=
"JDK_1_7"
>
<component
name=
"NewModuleRootManager"
>
<output
url=
"file://$MODULE_DIR$/out"
/>
<output
url=
"file://$MODULE_DIR$/out
/production/impnhyw/WEB-INF/classes
"
/>
<output-test
url=
"file://$MODULE_DIR$/out/test/impnhyw"
/>
<output-test
url=
"file://$MODULE_DIR$/out/test/impnhyw"
/>
<exclude-output
/>
<content
url=
"file://$MODULE_DIR$"
>
<content
url=
"file://$MODULE_DIR$"
>
<sourceFolder
url=
"file://$MODULE_DIR$/config"
type=
"java-resource"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/config"
type=
"java-resource"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/WebRoot"
type=
"java-resource"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/.externalToolBuilders"
type=
"java-test-resource"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src"
isTestSource=
"false"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src"
isTestSource=
"false"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/.idea"
isTestSource=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/.settings"
isTestSource=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/build"
isTestSource=
"true"
/>
</content>
</content>
<orderEntry
type=
"inheritedJdk"
/>
<orderEntry
type=
"sourceFolder"
forTests=
"false"
/>
<orderEntry
type=
"sourceFolder"
forTests=
"false"
/>
<orderEntry
type=
"jdk"
jdkName=
"1.8"
jdkType=
"JavaSDK"
/>
<orderEntry
type=
"library"
name=
"lib5"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"lib"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"lib2"
level=
"project"
/>
<orderEntry
type=
"library"
scope=
"PROVIDED"
name=
"Tomcat 8.5.53"
level=
"application_server_libraries"
/>
</component>
</component>
</module>
</module>
\ No newline at end of file
src/cn/base/filter/AppSessionOutFilter.java
View file @
8fc4920c
...
@@ -18,29 +18,40 @@ public class AppSessionOutFilter implements Filter {
...
@@ -18,29 +18,40 @@ public class AppSessionOutFilter implements Filter {
public
void
destroy
()
{}
public
void
destroy
()
{}
public
void
doFilter
(
ServletRequest
request
,
ServletResponse
response
,
FilterChain
filter
)
throws
IOException
,
ServletException
{
public
void
doFilter
(
ServletRequest
request
,
ServletResponse
response
,
FilterChain
filter
)
{
HttpServletRequest
httpRequst
=
(
HttpServletRequest
)
request
;
HttpServletRequest
httpRequst
=
(
HttpServletRequest
)
request
;
HttpServletResponse
httpResponse
=
(
HttpServletResponse
)
response
;
HttpServletResponse
httpResponse
=
(
HttpServletResponse
)
response
;
String
path
=
httpRequst
.
getContextPath
();
String
head
=
httpRequst
.
getHeader
(
"x-requested-with"
);
String
head
=
httpRequst
.
getHeader
(
"x-requested-with"
);
String
remoteAddr
=
httpRequst
.
getRequestURI
();
String
remoteAddr
=
httpRequst
.
getRequestURI
();
try
{
try
{
if
(
remoteAddr
.
indexOf
(
"userloginValidation.do"
)
==
-
1
if
(
remoteAddr
.
indexOf
(
"userloginValidation.do"
)
==
-
1
&&
remoteAddr
.
indexOf
(
"selectUserRole.do"
)
==
-
1
&&
remoteAddr
.
indexOf
(
"selectUserRole.do"
)
==
-
1
&&
remoteAddr
.
indexOf
(
"getMenuGroupList.do"
)
==
-
1
&&
remoteAddr
.
indexOf
(
"getMenuGroupList.do"
)
==
-
1
&&
remoteAddr
.
indexOf
(
"selectUser.do"
)
==
-
1
&&
remoteAddr
.
indexOf
(
"selectUser.do"
)
==
-
1
&&
remoteAddr
.
indexOf
(
"listXtbbxxByPage.do"
)
==
-
1
&&
remoteAddr
.
indexOf
(
"listXtbbxxByPage.do"
)
==
-
1
&&
remoteAddr
.
indexOf
(
"restartAweb.do"
)
==
-
1
&&
remoteAddr
.
indexOf
(
"restartAweb.do"
)
==
-
1
&&
remoteAddr
.
indexOf
(
"index.jsp"
)
==
-
1
&&
remoteAddr
.
indexOf
(
"login.jsp"
)
==
-
1
){
){
if
(
head
!=
null
&&
(
head
.
equalsIgnoreCase
(
"XMLHttpRequest"
)))
{
//
if (head != null && (head.equalsIgnoreCase("XMLHttpRequest"))) {
Object
adminUser
=
httpRequst
.
getSession
().
getAttribute
(
"userInfo"
);
Object
adminUser
=
httpRequst
.
getSession
().
getAttribute
(
"userInfo"
);
if
(
adminUser
==
null
)
{
if
(
adminUser
==
null
)
{
httpResponse
.
setHeader
(
"sessionstatus"
,
"timeout"
);
httpResponse
.
setHeader
(
"sessionstatus"
,
"timeout"
);
httpResponse
.
sendError
(
999
);
httpResponse
.
setContentType
(
"text/html;utf-8"
);
return
;
httpResponse
.
setCharacterEncoding
(
"utf-8"
);
httpResponse
.
sendRedirect
(
path
+
"/index.jsp"
);
return
;
}
else
{
filter
.
doFilter
(
request
,
response
);
}
}
}
//}
}
else
{
filter
.
doFilter
(
request
,
response
);
}
}
filter
.
doFilter
(
request
,
response
);
}
catch
(
Exception
e
)
{}
}
catch
(
Exception
e
)
{}
}
}
}
}
src/cn/yw/detector/action/DetectorAction.java
View file @
8fc4920c
...
@@ -34,7 +34,7 @@ public class DetectorAction extends BaseAction {
...
@@ -34,7 +34,7 @@ public class DetectorAction extends BaseAction {
map
.
put
(
"limit"
,
rows
);
map
.
put
(
"limit"
,
rows
);
Struts2Utils
.
renderJson
(
this
.
service
.
listDetectorByPage
(
map
));
Struts2Utils
.
renderJson
(
this
.
service
.
listDetectorByPage
(
map
));
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
//
e.printStackTrace();
iLog
.
error
(
"DetectorAction-listDetectorByPage-error:"
+
e
);
iLog
.
error
(
"DetectorAction-listDetectorByPage-error:"
+
e
);
Struts2Utils
.
renderJson
(
null
);
Struts2Utils
.
renderJson
(
null
);
}
}
...
@@ -54,7 +54,7 @@ public class DetectorAction extends BaseAction {
...
@@ -54,7 +54,7 @@ public class DetectorAction extends BaseAction {
map
.
put
(
"limit"
,
rows
);
map
.
put
(
"limit"
,
rows
);
Struts2Utils
.
renderJson
(
this
.
service
.
listDetectortaskByPage
(
map
));
Struts2Utils
.
renderJson
(
this
.
service
.
listDetectortaskByPage
(
map
));
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
//
e.printStackTrace();
iLog
.
error
(
"DetectorAction-listDetectorMy-error:"
+
e
);
iLog
.
error
(
"DetectorAction-listDetectorMy-error:"
+
e
);
Struts2Utils
.
renderJson
(
null
);
Struts2Utils
.
renderJson
(
null
);
}
}
...
@@ -70,7 +70,7 @@ public class DetectorAction extends BaseAction {
...
@@ -70,7 +70,7 @@ public class DetectorAction extends BaseAction {
try
{
try
{
Struts2Utils
.
renderJson
(
this
.
service
.
count_Detector
(
map
));
Struts2Utils
.
renderJson
(
this
.
service
.
count_Detector
(
map
));
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
//
e.printStackTrace();
iLog
.
error
(
"DetectorAction-count_Detector-error:"
+
e
);
iLog
.
error
(
"DetectorAction-count_Detector-error:"
+
e
);
Struts2Utils
.
renderJson
(
null
);
Struts2Utils
.
renderJson
(
null
);
}
}
...
@@ -198,7 +198,7 @@ public class DetectorAction extends BaseAction {
...
@@ -198,7 +198,7 @@ public class DetectorAction extends BaseAction {
public
void
update_DetectorRemarks
()
{
public
void
update_DetectorRemarks
()
{
Map
map
=
Struts2Utils
.
getRequestParameterMap
();
Map
map
=
Struts2Utils
.
getRequestParameterMap
();
try
{
try
{
if
(
RHUtil
.
isNotEmpty
(
map
.
get
(
"remarks"
))
&&
map
.
get
(
"remarks"
).
equals
(
"survey"
)
){
if
(
RHUtil
.
isNotEmpty
(
map
.
get
(
"remarks"
))
&&
map
.
get
(
"remarks"
).
toString
().
indexOf
(
"survey"
)>
0
){
map
.
put
(
"repairstate"
,
900
);
map
.
put
(
"repairstate"
,
900
);
}
}
int
result
=
service
.
update_DetectorRemarks
(
map
);
int
result
=
service
.
update_DetectorRemarks
(
map
);
...
...
src/cn/yw/machinemanage/action/YwmachineinfoAction.java
View file @
8fc4920c
...
@@ -186,7 +186,7 @@ public class YwmachineinfoAction extends BaseAction{
...
@@ -186,7 +186,7 @@ public class YwmachineinfoAction extends BaseAction{
public
void
update_YwmachineinfoRemarks
(){
public
void
update_YwmachineinfoRemarks
(){
Map
map
=
Struts2Utils
.
getRequestParameterMap
();
Map
map
=
Struts2Utils
.
getRequestParameterMap
();
try
{
try
{
if
(
RHUtil
.
isNotEmpty
(
map
.
get
(
"remarks"
))&&
map
.
get
(
"remarks"
).
equal
s
(
"survey"
)){
if
(
RHUtil
.
isNotEmpty
(
map
.
get
(
"remarks"
))&&
map
.
get
(
"remarks"
).
toString
().
contain
s
(
"survey"
)){
map
.
put
(
"repairstate"
,
900
);
map
.
put
(
"repairstate"
,
900
);
this
.
service
.
update_YwmachinecurrentstateRepairstate
(
map
);
this
.
service
.
update_YwmachinecurrentstateRepairstate
(
map
);
}
}
...
...
src/cn/yw/nhyw/nhywjtledydpgl/action/NhywjtledydpglAction.java
View file @
8fc4920c
...
@@ -175,7 +175,7 @@ public class NhywjtledydpglAction extends BaseAction {
...
@@ -175,7 +175,7 @@ public class NhywjtledydpglAction extends BaseAction {
public
void
update_NhywjtledydpglRemarks
()
{
public
void
update_NhywjtledydpglRemarks
()
{
Map
map
=
Struts2Utils
.
getRequestParameterMap
();
Map
map
=
Struts2Utils
.
getRequestParameterMap
();
try
{
try
{
if
(
RHUtil
.
isNotEmpty
(
map
.
get
(
"bz"
))&&
map
.
get
(
"bz"
).
equal
s
(
"survey"
)){
if
(
RHUtil
.
isNotEmpty
(
map
.
get
(
"bz"
))&&
map
.
get
(
"bz"
).
toString
().
contain
s
(
"survey"
)){
map
.
put
(
"repairstate"
,
900
);
map
.
put
(
"repairstate"
,
900
);
}
}
int
result
=
service
.
update_NhywjtledydpglRemarks
(
map
);
int
result
=
service
.
update_NhywjtledydpglRemarks
(
map
);
...
...
src/cn/yw/nhyw/nhywjtledydpgl/dao/NhywjtledydpglDao.java
View file @
8fc4920c
...
@@ -93,8 +93,8 @@ public class NhywjtledydpglDao extends BaseSqlMapDAO{
...
@@ -93,8 +93,8 @@ public class NhywjtledydpglDao extends BaseSqlMapDAO{
}
}
public
List
<
Map
>
statisticsYDPOnlineRate
()
throws
SQLException
{
public
Map
statisticsYDPOnlineRate
()
throws
SQLException
{
return
(
List
<
Map
>)
this
.
queryForLis
t
(
"statisticsYDPOnlineRate"
,
null
);
return
(
Map
)
this
.
queryForObjec
t
(
"statisticsYDPOnlineRate"
,
null
);
}
}
public
List
<
Map
>
query_NhywjtledydpglStatus
(
Map
map
)
throws
SQLException
{
public
List
<
Map
>
query_NhywjtledydpglStatus
(
Map
map
)
throws
SQLException
{
return
(
List
<
Map
>)
this
.
queryForPage
(
"query_NhywjtledydpglStatus"
,
map
);
return
(
List
<
Map
>)
this
.
queryForPage
(
"query_NhywjtledydpglStatus"
,
map
);
...
...
src/cn/yw/nhyw/nhywjtledydpgl/service/NhywjtledydpglService.java
View file @
8fc4920c
...
@@ -132,15 +132,7 @@ public class NhywjtledydpglService extends BaseService {
...
@@ -132,15 +132,7 @@ public class NhywjtledydpglService extends BaseService {
* @throws SQLException
* @throws SQLException
*/
*/
public
Map
statisticsYDPOnlineRate
()
throws
SQLException
{
public
Map
statisticsYDPOnlineRate
()
throws
SQLException
{
Map
<
String
,
Object
>
result
=
new
HashMap
<
String
,
Object
>();
return
nhywjtledydpglDao
.
statisticsYDPOnlineRate
();
List
<
Map
>
list
=
nhywjtledydpglDao
.
statisticsYDPOnlineRate
();
if
(
list
!=
null
&&
list
.
size
()>
0
){
for
(
Map
m
:
list
){
String
name
=
m
.
get
(
"name"
)+
""
;
result
.
put
(
name
,
m
.
get
(
"totalcount"
));
}
}
return
result
;
}
}
public
Map
listNhywjtledydpglStatusByPage
(
Map
map
)
throws
SQLException
{
public
Map
listNhywjtledydpglStatusByPage
(
Map
map
)
throws
SQLException
{
List
<
Map
>
list
=
nhywjtledydpglDao
.
query_NhywjtledydpglStatus
(
map
);
List
<
Map
>
list
=
nhywjtledydpglDao
.
query_NhywjtledydpglStatus
(
map
);
...
...
src/cn/yw/nhyw/nhywjtxhdgl/action/NhywjtxhdglAction.java
View file @
8fc4920c
...
@@ -203,7 +203,7 @@ public class NhywjtxhdglAction extends BaseAction {
...
@@ -203,7 +203,7 @@ public class NhywjtxhdglAction extends BaseAction {
public
void
update_NhywjtxhdglRemarks
()
{
public
void
update_NhywjtxhdglRemarks
()
{
Map
map
=
Struts2Utils
.
getRequestParameterMap
();
Map
map
=
Struts2Utils
.
getRequestParameterMap
();
try
{
try
{
if
(
RHUtil
.
isNotEmpty
(
map
.
get
(
"bz"
))&&
map
.
get
(
"bz"
).
equals
(
"survey"
)
){
if
(
RHUtil
.
isNotEmpty
(
map
.
get
(
"bz"
))&&
map
.
get
(
"bz"
).
toString
().
indexOf
(
"survey"
)>
0
){
map
.
put
(
"repairstate"
,
900
);
map
.
put
(
"repairstate"
,
900
);
}
}
this
.
service
.
update_NhywjtxhdglRepairstate
(
map
);
this
.
service
.
update_NhywjtxhdglRepairstate
(
map
);
...
@@ -404,21 +404,10 @@ public class NhywjtxhdglAction extends BaseAction {
...
@@ -404,21 +404,10 @@ public class NhywjtxhdglAction extends BaseAction {
Map
map
=
Struts2Utils
.
getRequestParameterMap
();
Map
map
=
Struts2Utils
.
getRequestParameterMap
();
Map
<
String
,
Object
>
result
=
new
HashMap
<
String
,
Object
>();
Map
<
String
,
Object
>
result
=
new
HashMap
<
String
,
Object
>();
try
{
try
{
Map
m
=
service
.
countNhywjtxhdgl
(
map
);
Struts2Utils
.
renderJson
(
service
.
xhdOnline
());
if
(
null
!=
m
.
get
(
"总数"
))
{
Integer
mtotal
=
(
Integer
)
m
.
get
(
"总数"
);
Integer
onlinesum
=
service
.
xhdOnline
();
if
(
mtotal
>=
onlinesum
)
{
result
.
put
(
"unonline"
,
mtotal
-
onlinesum
);
}
else
{
result
.
put
(
"unonline"
,
0
);
}
result
.
put
(
"online"
,
onlinesum
);
}
Struts2Utils
.
renderJson
(
result
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
e
.
printStackTrace
();
iLog
.
error
(
"nhywjtxhdglAction-
listNhywjtxhdglHistoryStateByPag
e-error:"
+
e
);
iLog
.
error
(
"nhywjtxhdglAction-
xhdRat
e-error:"
+
e
);
Struts2Utils
.
renderJson
(
null
);
Struts2Utils
.
renderJson
(
null
);
}
}
...
...
src/cn/yw/nhyw/nhywjtxhdgl/dao/NhywjtxhdglDao.java
View file @
8fc4920c
...
@@ -109,8 +109,8 @@ public class NhywjtxhdglDao extends BaseSqlMapDAO{
...
@@ -109,8 +109,8 @@ public class NhywjtxhdglDao extends BaseSqlMapDAO{
public
List
<
Map
>
query_NhywjtxhdglStateStatis
(
Map
map
)
throws
SQLException
{
public
List
<
Map
>
query_NhywjtxhdglStateStatis
(
Map
map
)
throws
SQLException
{
return
this
.
queryForPage
(
"query_NhywjtxhdglStateStatis"
,
map
);
return
this
.
queryForPage
(
"query_NhywjtxhdglStateStatis"
,
map
);
}
}
public
Integer
xhdOnline
()
throws
SQLException
{
public
Map
xhdOnline
()
throws
SQLException
{
return
(
Integer
)
this
.
queryForObject
(
"xhdOnline"
,
null
);
return
(
Map
)
this
.
queryForObject
(
"xhdOnline"
,
null
);
}
}
public
List
<
Map
>
query_Ywxhdstatusinfo
(
Map
map
)
throws
SQLException
{
public
List
<
Map
>
query_Ywxhdstatusinfo
(
Map
map
)
throws
SQLException
{
return
this
.
queryForPage
(
"query_Ywxhdstatusinfo"
,
map
);
return
this
.
queryForPage
(
"query_Ywxhdstatusinfo"
,
map
);
...
...
src/cn/yw/nhyw/nhywjtxhdgl/service/NhywjtxhdglService.java
View file @
8fc4920c
...
@@ -165,7 +165,7 @@ public class NhywjtxhdglService extends BaseService {
...
@@ -165,7 +165,7 @@ public class NhywjtxhdglService extends BaseService {
}
}
//@DS("datasource2")
//@DS("datasource2")
public
Integer
xhdOnline
()
throws
SQLException
{
public
Map
xhdOnline
()
throws
SQLException
{
return
nhywjtxhdglDao
.
xhdOnline
();
return
nhywjtxhdglDao
.
xhdOnline
();
}
}
public
Map
listYwxhdstatusinfoByPage
(
Map
map
)
throws
SQLException
{
public
Map
listYwxhdstatusinfoByPage
(
Map
map
)
throws
SQLException
{
...
...
src/cn/yw/repairmanage/action/YwrepairjobinfoAction.java
View file @
8fc4920c
...
@@ -485,6 +485,7 @@ public class YwrepairjobinfoAction extends BaseAction {
...
@@ -485,6 +485,7 @@ public class YwrepairjobinfoAction extends BaseAction {
}else if("2".equals(deviceType)){//服务器
}else if("2".equals(deviceType)){//服务器
ywmachinecurrentstateService.update_Ywmachinecurrentstate_WorkOrder(map);
ywmachinecurrentstateService.update_Ywmachinecurrentstate_WorkOrder(map);
}*/
}*/
//更新状态表
updateState
(
deviceType
,
StringUtil
.
transEmpty
(
map
.
get
(
"processstatus"
)
+
""
),
updateState
(
deviceType
,
StringUtil
.
transEmpty
(
map
.
get
(
"processstatus"
)
+
""
),
StringUtil
.
transEmpty
(
map
.
get
(
"XGTJfaultdeviceid"
)
+
""
),
StringUtil
.
transEmpty
(
map
.
get
(
"XGTJfaultdeviceid"
)
+
""
),
StringUtil
.
transEmpty
(
map
.
get
(
"XGTJchannelnum"
)
+
""
),
StringUtil
.
transEmpty
(
map
.
get
(
"XGTJchannelnum"
)
+
""
),
...
@@ -547,7 +548,6 @@ public class YwrepairjobinfoAction extends BaseAction {
...
@@ -547,7 +548,6 @@ public class YwrepairjobinfoAction extends BaseAction {
public
void
edit_confirmOrder
()
{
public
void
edit_confirmOrder
()
{
Map
map
=
Struts2Utils
.
getRequestParameterMap
();
Map
map
=
Struts2Utils
.
getRequestParameterMap
();
try
{
try
{
// 更新 Ywrepairjobinfo 表
// 更新 Ywrepairjobinfo 表
PtyhBean
ptyh
=
(
PtyhBean
)
Struts2Utils
.
getSession
().
getAttribute
(
"userInfo"
);
PtyhBean
ptyh
=
(
PtyhBean
)
Struts2Utils
.
getSession
().
getAttribute
(
"userInfo"
);
map
.
put
(
"modifyaccount"
,
ptyh
.
getYhzh
());
map
.
put
(
"modifyaccount"
,
ptyh
.
getYhzh
());
...
@@ -570,7 +570,6 @@ public class YwrepairjobinfoAction extends BaseAction {
...
@@ -570,7 +570,6 @@ public class YwrepairjobinfoAction extends BaseAction {
String
channelnum
=
map
.
get
(
"channelnum"
)
==
null
?
""
:
String
.
valueOf
(
map
.
get
(
"channelnum"
));
String
channelnum
=
map
.
get
(
"channelnum"
)
==
null
?
""
:
String
.
valueOf
(
map
.
get
(
"channelnum"
));
String
alarmeventid
=
map
.
get
(
"alarmeventid"
)
==
null
?
""
:
String
.
valueOf
(
map
.
get
(
"alarmeventid"
));
String
alarmeventid
=
map
.
get
(
"alarmeventid"
)
==
null
?
""
:
String
.
valueOf
(
map
.
get
(
"alarmeventid"
));
updateState
(
alarmdevicetype
,
repairstate
,
alarmdeviceid
,
channelnum
,
alarmeventid
);
updateState
(
alarmdevicetype
,
repairstate
,
alarmdeviceid
,
channelnum
,
alarmeventid
);
// 向日志表增加记录
// 向日志表增加记录
// PtyhBean ptyh = (PtyhBean)Struts2Utils.getSession().getAttribute("userInfo");
// PtyhBean ptyh = (PtyhBean)Struts2Utils.getSession().getAttribute("userInfo");
String
jobid
=
String
.
valueOf
(
map
.
get
(
"XGTJjobid"
));
String
jobid
=
String
.
valueOf
(
map
.
get
(
"XGTJjobid"
));
...
@@ -646,12 +645,10 @@ public class YwrepairjobinfoAction extends BaseAction {
...
@@ -646,12 +645,10 @@ public class YwrepairjobinfoAction extends BaseAction {
+
" or (confirmcompany='"
+
bmbh
+
"' and confirmpeople='"
+
yhzh
+
"') )"
;
+
" or (confirmcompany='"
+
bmbh
+
"' and confirmpeople='"
+
yhzh
+
"') )"
;
queryMap
.
put
(
"comprehensive"
,
comprehensive
);
queryMap
.
put
(
"comprehensive"
,
comprehensive
);
}
}
queryMap
.
put
(
"start"
,
0
);
queryMap
.
put
(
"start"
,
0
);
queryMap
.
put
(
"limit"
,
5000
);
queryMap
.
put
(
"limit"
,
5000
);
Map
resMap
=
service
.
listYwrepairjobinfoByPage
(
queryMap
);
Map
resMap
=
service
.
listYwrepairjobinfoByPage
(
queryMap
);
List
<
Map
>
sList
=
(
List
<
Map
>)
resMap
.
get
(
"rows"
);
List
<
Map
>
sList
=
(
List
<
Map
>)
resMap
.
get
(
"rows"
);
String
[]
zdbm
=
{
"jobnum"
,
"jobprocessstatename"
,
"faultdevicetypename"
,
"faultdevicename"
,
"faultdeviceid"
,
"channelnum"
,
"faulttypename"
,
"faultdescription"
,
"jobreporttime"
};
String
[]
zdbm
=
{
"jobnum"
,
"jobprocessstatename"
,
"faultdevicetypename"
,
"faultdevicename"
,
"faultdeviceid"
,
"channelnum"
,
"faulttypename"
,
"faultdescription"
,
"jobreporttime"
};
String
[]
zdmc
=
{
"工单编号"
,
"工单状态"
,
"故障设备类型"
,
"故障设备名称"
,
"故障设备编号"
,
"通道编号"
,
"故障类型"
,
"故障描述"
,
"上报时间"
};
String
[]
zdmc
=
{
"工单编号"
,
"工单状态"
,
"故障设备类型"
,
"故障设备名称"
,
"故障设备编号"
,
"通道编号"
,
"故障类型"
,
"故障描述"
,
"上报时间"
};
int
excelNum
=
zdbm
.
length
;
int
excelNum
=
zdbm
.
length
;
...
@@ -677,7 +674,6 @@ public class YwrepairjobinfoAction extends BaseAction {
...
@@ -677,7 +674,6 @@ public class YwrepairjobinfoAction extends BaseAction {
int
page
=
Integer
.
parseInt
(
Struts2Utils
.
getParameter
(
"page"
));
int
page
=
Integer
.
parseInt
(
Struts2Utils
.
getParameter
(
"page"
));
int
rows
=
Integer
.
parseInt
(
Struts2Utils
.
getParameter
(
"rows"
));
int
rows
=
Integer
.
parseInt
(
Struts2Utils
.
getParameter
(
"rows"
));
int
start
=
((
page
==
0
?
1
:
page
)
-
1
)
*
rows
;
int
start
=
((
page
==
0
?
1
:
page
)
-
1
)
*
rows
;
map
.
put
(
"start"
,
start
);
map
.
put
(
"start"
,
start
);
map
.
put
(
"limit"
,
rows
);
map
.
put
(
"limit"
,
rows
);
Struts2Utils
.
renderJson
(
this
.
service
.
listYwrepairDevicejobinfoByPage
(
map
));
Struts2Utils
.
renderJson
(
this
.
service
.
listYwrepairDevicejobinfoByPage
(
map
));
...
@@ -695,9 +691,7 @@ public class YwrepairjobinfoAction extends BaseAction {
...
@@ -695,9 +691,7 @@ public class YwrepairjobinfoAction extends BaseAction {
map
.
put
(
"start"
,
0
);
map
.
put
(
"start"
,
0
);
map
.
put
(
"limit"
,
5000
);
map
.
put
(
"limit"
,
5000
);
Map
resMap
=
service
.
listYwrepairjobinfoByPage
(
map
);
Map
resMap
=
service
.
listYwrepairjobinfoByPage
(
map
);
List
<
Map
>
sList
=
(
List
<
Map
>)
resMap
.
get
(
"rows"
);
List
<
Map
>
sList
=
(
List
<
Map
>)
resMap
.
get
(
"rows"
);
String
[]
zdbm
=
{
"jobnum"
,
"jobprocessstatename"
,
"faultdevicetypename"
,
"faultdevicename"
,
"faultdeviceid"
,
"channelnum"
,
"faulttypename"
,
"faultdescription"
,
"jobreporttime"
};
String
[]
zdbm
=
{
"jobnum"
,
"jobprocessstatename"
,
"faultdevicetypename"
,
"faultdevicename"
,
"faultdeviceid"
,
"channelnum"
,
"faulttypename"
,
"faultdescription"
,
"jobreporttime"
};
String
[]
zdmc
=
{
"工单编号"
,
"工单状态"
,
"故障设备类型"
,
"故障设备名称"
,
"故障设备编号"
,
"通道编号"
,
"故障类型"
,
"故障描述"
,
"上报时间"
};
String
[]
zdmc
=
{
"工单编号"
,
"工单状态"
,
"故障设备类型"
,
"故障设备名称"
,
"故障设备编号"
,
"通道编号"
,
"故障类型"
,
"故障描述"
,
"上报时间"
};
int
excelNum
=
zdbm
.
length
;
int
excelNum
=
zdbm
.
length
;
...
...
src/cn/yw/video/videostate/action/YwvideocurrentstateAction.java
View file @
8fc4920c
...
@@ -1051,7 +1051,7 @@ public class YwvideocurrentstateAction extends BaseAction{
...
@@ -1051,7 +1051,7 @@ public class YwvideocurrentstateAction extends BaseAction{
//请求参数update_Ywmachineinfo
//请求参数update_Ywmachineinfo
Map
map
=
Struts2Utils
.
getRequestParameterMap
();
Map
map
=
Struts2Utils
.
getRequestParameterMap
();
//有“survey”这个内容就让设备维修状态改变下,可以不让做告警处理
//有“survey”这个内容就让设备维修状态改变下,可以不让做告警处理
if
(
RHUtil
.
isNotEmpty
(
map
.
get
(
"remarks"
))&&
map
.
get
(
"remarks"
).
equal
s
(
"survey"
)){
if
(
RHUtil
.
isNotEmpty
(
map
.
get
(
"remarks"
))&&
map
.
get
(
"remarks"
).
toString
().
contain
s
(
"survey"
)){
map
.
put
(
"repairstate"
,
900
);
map
.
put
(
"repairstate"
,
900
);
this
.
service
.
update_ywvideocurrentstateRepairState
(
map
);
this
.
service
.
update_ywvideocurrentstateRepairState
(
map
);
}
}
...
...
src/cn/yw/video/videostate/service/YwvideocurrentstateService.java
View file @
8fc4920c
...
@@ -43,13 +43,14 @@ public class YwvideocurrentstateService extends BaseService {
...
@@ -43,13 +43,14 @@ public class YwvideocurrentstateService extends BaseService {
return
ywvideocurrentstateDao
.
statisticsRecordIntactRate
();
return
ywvideocurrentstateDao
.
statisticsRecordIntactRate
();
}
}
public
Map
videoCurrentStateStatistics
(
Map
map
)
throws
SQLException
{
public
Map
videoCurrentStateStatistics
(
Map
map
)
throws
SQLException
{
Map
<
String
,
String
>
result
=
new
HashMap
<
String
,
String
>();
Map
<
String
,
List
<
Map
>>
result
=
new
HashMap
<
String
,
List
<
Map
>
>();
List
<
Map
>
lists
=
ywvideocurrentstateDao
.
videoCurrentStateStatistics
(
map
);
List
<
Map
>
lists
=
ywvideocurrentstateDao
.
videoCurrentStateStatistics
(
map
);
if
(
lists
!=
null
&&
lists
.
size
()>
0
){
// if(lists!=null && lists.size()>0){
for
(
Map
m
:
lists
){
// for(Map m : lists){
result
.
put
(
m
.
get
(
"name"
)+
""
,
m
.
get
(
"total"
)+
""
);
// result.put(m.get("name")+"", m.get("total")+"");
}
// }
}
// }
result
.
put
(
"data"
,
lists
);
return
result
;
return
result
;
}
}
...
...
src/cn/yw/zxld/action/ZxldAction.java
View file @
8fc4920c
...
@@ -181,7 +181,7 @@ public class ZxldAction extends BaseAction {
...
@@ -181,7 +181,7 @@ public class ZxldAction extends BaseAction {
public
void
update_ZxldRemarks
()
{
public
void
update_ZxldRemarks
()
{
Map
map
=
Struts2Utils
.
getRequestParameterMap
();
Map
map
=
Struts2Utils
.
getRequestParameterMap
();
try
{
try
{
if
(
RHUtil
.
isNotEmpty
(
map
.
get
(
"bz"
))&&
map
.
get
(
"bz"
).
equals
(
"survey"
)
){
if
(
RHUtil
.
isNotEmpty
(
map
.
get
(
"bz"
))&&
map
.
get
(
"bz"
).
toString
().
indexOf
(
"survey"
)>
0
){
map
.
put
(
"repairstate"
,
900
);
map
.
put
(
"repairstate"
,
900
);
}
}
int
result
=
service
.
update_ZxldRemarks
(
map
);
int
result
=
service
.
update_ZxldRemarks
(
map
);
...
...
src/cn/yw/zxld/dao/ZxldDao.java
View file @
8fc4920c
...
@@ -120,8 +120,8 @@ public class ZxldDao extends BaseSqlMapDAO {
...
@@ -120,8 +120,8 @@ public class ZxldDao extends BaseSqlMapDAO {
return
this
.
update
(
"edit_Zxld"
,
map
);
return
this
.
update
(
"edit_Zxld"
,
map
);
}
}
public
List
<
Map
>
statisticsZxldRate
()
throws
SQLException
{
public
Map
statisticsZxldRate
()
throws
SQLException
{
return
(
List
<
Map
>)
this
.
queryForLis
t
(
"statisticsZxldRate"
,
null
);
return
(
Map
)
this
.
queryForObjec
t
(
"statisticsZxldRate"
,
null
);
}
}
public
List
<
Map
>
query_ZxldcurrentstateByPage
(
Map
map
)
throws
SQLException
{
public
List
<
Map
>
query_ZxldcurrentstateByPage
(
Map
map
)
throws
SQLException
{
...
...
src/cn/yw/zxld/service/ZxldService.java
View file @
8fc4920c
...
@@ -159,15 +159,7 @@ public class ZxldService extends BaseService {
...
@@ -159,15 +159,7 @@ public class ZxldService extends BaseService {
* @throws SQLException
* @throws SQLException
*/
*/
public
Map
statisticsZxldRate
()
throws
SQLException
{
public
Map
statisticsZxldRate
()
throws
SQLException
{
Map
<
String
,
Object
>
result
=
new
HashMap
<
String
,
Object
>();
return
zxldDao
.
statisticsZxldRate
();
List
<
Map
>
list
=
zxldDao
.
statisticsZxldRate
();
if
(
list
!=
null
&&
list
.
size
()>
0
){
for
(
Map
m
:
list
){
String
name
=
m
.
get
(
"name"
)+
""
;
result
.
put
(
name
,
m
.
get
(
"totalcount"
));
}
}
return
result
;
}
}
/**
/**
...
...
src/sqlmap/Nhywjtledydpgl.xml
View file @
8fc4920c
...
@@ -195,6 +195,9 @@
...
@@ -195,6 +195,9 @@
<isNotEmpty
prepend=
'AND '
property=
'statusupbatch'
>
<isNotEmpty
prepend=
'AND '
property=
'statusupbatch'
>
(statusupbatch =#statusupbatch# )
(statusupbatch =#statusupbatch# )
</isNotEmpty>
</isNotEmpty>
<isNotEmpty
prepend=
'AND '
property=
'currentstate'
>
(a.STATE = #currentstate# )
</isNotEmpty>
<isNotEmpty
property=
'tableparam'
>
<isNotEmpty
property=
'tableparam'
>
$tableparam$
$tableparam$
</isNotEmpty>
</isNotEmpty>
...
@@ -392,14 +395,10 @@
...
@@ -392,14 +395,10 @@
</insert>
</insert>
<select
id=
"statisticsYDPOnlineRate"
resultClass=
"java.util.HashMap"
parameterClass=
"java.util.Map"
>
<select
id=
"statisticsYDPOnlineRate"
resultClass=
"java.util.HashMap"
parameterClass=
"java.util.Map"
>
select COUNT(*) as totalcount ,'totalcount' as name
select count(*) as totalcount,
from nhywjtledydpgl
SUM(case when a.state is not null and a.state=1 then 1 else 0 end) as ydponlinenum,
union ALL
SUM(case when a.state =0 or a.state is null then 1 else 0 end) as ydpunonlinenum
(select COUNT(state) as totalcount,'ydponlinenum' as name from nhywjtledydpgl where state ='1' )
from nhywjtledydpgl a
union ALL
select COUNT(*) as totalcount ,'ydpunonlinenum' as name from
nhywjtledydpgl where (state='0' or state is null)
</select>
</select>
<select
id=
"query_NhywjtledydpglStatus"
resultClass=
"java.util.HashMap"
parameterClass=
"java.util.Map"
>
<select
id=
"query_NhywjtledydpglStatus"
resultClass=
"java.util.HashMap"
parameterClass=
"java.util.Map"
>
...
...
src/sqlmap/Nhywjtxhdgl.xml
View file @
8fc4920c
...
@@ -251,6 +251,9 @@
...
@@ -251,6 +251,9 @@
<isNotEmpty
prepend=
'AND '
property=
'Likemc'
>
<isNotEmpty
prepend=
'AND '
property=
'Likemc'
>
(xhdmc like '%Likemc%')
(xhdmc like '%Likemc%')
</isNotEmpty>
</isNotEmpty>
<isNotEmpty
prepend=
'AND '
property=
'currentstate'
>
(a.STATE = #currentstate# )
</isNotEmpty>
<isNotEmpty
property=
'tableparam'
>
<isNotEmpty
property=
'tableparam'
>
$tableparam$
$tableparam$
</isNotEmpty>
</isNotEmpty>
...
@@ -501,10 +504,10 @@
...
@@ -501,10 +504,10 @@
) a
) a
left join nhywjtxhdstate_history b on a.lkh=b.nojunc and a.qybh=b.noarea
left join nhywjtxhdstate_history b on a.lkh=b.nojunc and a.qybh=b.noarea
<isNotEmpty
prepend=
"and"
property=
"startTime"
>
<isNotEmpty
prepend=
"and"
property=
"startTime"
>
<![CDATA[ b.create_time >=
#startTime#
]]>
<![CDATA[ b.create_time >=
to_date(#startTime#,'yyyy-mm-dd hh24:mi:ss')
]]>
</isNotEmpty>
</isNotEmpty>
<isNotEmpty
prepend=
"and"
property=
"endTime"
>
<isNotEmpty
prepend=
"and"
property=
"endTime"
>
<![CDATA[ b.create_time <=
#endTime#
]]>
<![CDATA[ b.create_time <=
to_date(#endTime# ,'yyyy-mm-dd hh24:mi:ss')
]]>
</isNotEmpty>
</isNotEmpty>
</select>
</select>
...
@@ -516,10 +519,10 @@
...
@@ -516,10 +519,10 @@
) a
) a
left join nhywjtxhdstate_history b on a.lkh=b.nojunc and a.qybh=b.noarea
left join nhywjtxhdstate_history b on a.lkh=b.nojunc and a.qybh=b.noarea
<isNotEmpty
prepend=
"and"
property=
"startTime"
>
<isNotEmpty
prepend=
"and"
property=
"startTime"
>
<![CDATA[ b.create_time >=
#startTime#
]]>
<![CDATA[ b.create_time >=
to_date(#startTime#,'yyyy-mm-dd hh24:mi:ss')
]]>
</isNotEmpty>
</isNotEmpty>
<isNotEmpty
prepend=
"and"
property=
"endTime"
>
<isNotEmpty
prepend=
"and"
property=
"endTime"
>
<![CDATA[ b.create_time <=
#endTime#
]]>
<![CDATA[ b.create_time <=
to_date(#endTime# ,'yyyy-mm-dd hh24:mi:ss')
]]>
</isNotEmpty>
</isNotEmpty>
</select>
</select>
<select
id=
"query_NhywjtxhdglStateStatis"
resultClass=
"java.util.HashMap"
parameterClass=
"java.util.Map"
<select
id=
"query_NhywjtxhdglStateStatis"
resultClass=
"java.util.HashMap"
parameterClass=
"java.util.Map"
...
@@ -532,8 +535,12 @@
...
@@ -532,8 +535,12 @@
<include
refid=
"condition_Nhywjtxhdgl"
/>
<include
refid=
"condition_Nhywjtxhdgl"
/>
and (state=0 or state is null)
and (state=0 or state is null)
</select>
</select>
<select
id=
"xhdOnline"
resultClass=
"java.lang.Integer"
remapResults=
"true"
>
<select
id=
"xhdOnline"
resultClass=
"java.util.HashMap"
parameterClass=
"java.util.Map"
>
select count(*) from NHYWJTXHDGL where state=1
select count(*) as totalcount,
SUM(case when a.state is not null and a.state=1 then 1 else 0 end) as xhdonline,
SUM(case when a.state =0 or a.state is null then 1 else 0 end) as xhdunonline
from nhywjtxhdgl a
</select>
</select>
<select
id=
"query_Ywxhdstatusinfo"
resultClass=
"java.util.HashMap"
parameterClass=
"java.util.Map"
>
<select
id=
"query_Ywxhdstatusinfo"
resultClass=
"java.util.HashMap"
parameterClass=
"java.util.Map"
>
select a.*,b.xhdbh,b.qybh,b.qymc,b.lkh,b.lkmc from (
select a.*,b.xhdbh,b.qybh,b.qymc,b.lkh,b.lkmc from (
...
...
src/sqlmap/Ptxzs.xml
View file @
8fc4920c
...
@@ -204,7 +204,7 @@
...
@@ -204,7 +204,7 @@
where 1=1
where 1=1
<isNotEmpty
prepend=
'AND '
property=
'keyword'
>
<isNotEmpty
prepend=
'AND '
property=
'keyword'
>
key in (#keyword#)
key in (#keyword#)
</isNotEmpty>
</isNotEmpty>
videoCurrentStateStatistics
</delete>
</delete>
<!-- ??? -->
<!-- ??? -->
...
...
src/sqlmap/Ywcountvideoappraise.xml
View file @
8fc4920c
...
@@ -717,7 +717,7 @@
...
@@ -717,7 +717,7 @@
</isNotEmpty>
) as jobnormalnum, sum(case when jd is not null and wd is not null then 1 else 0 end)
</isNotEmpty>
) as jobnormalnum, sum(case when jd is not null and wd is not null then 1 else 0 end)
lalnormalnum,
lalnormalnum,
(select count(*) as jobtotal from ywvideocurrentstate e ,sbtdspsr f where e.videonum=f.sbbh and
(select count(*) as jobtotal from ywvideocurrentstate e ,sbtdspsr f where e.videonum=f.sbbh and
e.channelnum=f.tdbh and e.isonline!=0 and c.xzbh=f.xzbh) as zxsc
e.channelnum=f.tdbh and e.isonline
is not null and e.isonline
!=0 and c.xzbh=f.xzbh) as zxsc
from sbtdspsr c left join ptxzs b on b.xzbh=c.xzbh where sbbh is not null
from sbtdspsr c left join ptxzs b on b.xzbh=c.xzbh where sbbh is not null
<isNotEmpty
prepend=
'AND '
property=
'xzbh'
>
<isNotEmpty
prepend=
'AND '
property=
'xzbh'
>
<![CDATA[ c.xzbh in ]]>
<![CDATA[ c.xzbh in ]]>
...
@@ -1004,7 +1004,7 @@
...
@@ -1004,7 +1004,7 @@
</isNotEmpty>
) as jobnormalnum, sum(case when jd is not null and wd is not null then 1 else 0 end)
</isNotEmpty>
) as jobnormalnum, sum(case when jd is not null and wd is not null then 1 else 0 end)
lalnormalnum,
lalnormalnum,
(select count(*) as jobtotal from ywvideocurrentstate e where e.videonum=c.sbbh and
(select count(*) as jobtotal from ywvideocurrentstate e where e.videonum=c.sbbh and
e.channelnum=c.tdbh and e.isonline!=0) as zxsc
e.channelnum=c.tdbh and
e.isolation is not null and
e.isonline!=0) as zxsc
from sbtdspsr c
from sbtdspsr c
<isNotEmpty
prepend=
'where '
property=
'areanum'
>
<isNotEmpty
prepend=
'where '
property=
'areanum'
>
(c.xzbh = #areanum# or (c.xzbh in (select xzbh from Ptxzs start with sjxzbh=
(c.xzbh = #areanum# or (c.xzbh in (select xzbh from Ptxzs start with sjxzbh=
...
...
src/sqlmap/Ywmachinecurrentstate.xml
View file @
8fc4920c
...
@@ -362,6 +362,12 @@
...
@@ -362,6 +362,12 @@
(b.remarks is not null and b.remarks !=' ' )
(b.remarks is not null and b.remarks !=' ' )
</isEqual>
</isEqual>
</isNotEmpty>
</isNotEmpty>
<isNotEmpty
prepend=
'AND '
property=
'currentstate'
>
(a.currentstate = #currentstate# )
</isNotEmpty>
<isNotEmpty
property=
'tableparam'
>
$tableparam$
</isNotEmpty>
</select>
</select>
<!-- query objects by page-->
<!-- query objects by page-->
<select
id=
"get_Ywmachinecurrentstate"
resultClass=
"java.util.HashMap"
parameterClass=
"java.util.Map"
<select
id=
"get_Ywmachinecurrentstate"
resultClass=
"java.util.HashMap"
parameterClass=
"java.util.Map"
...
...
src/sqlmap/Ywmachineinfo.xml
View file @
8fc4920c
...
@@ -432,7 +432,7 @@
...
@@ -432,7 +432,7 @@
<select
id=
"count_HomepageDeviceCount"
resultClass=
"java.util.HashMap"
parameterClass=
"java.util.Map"
>
<select
id=
"count_HomepageDeviceCount"
resultClass=
"java.util.HashMap"
parameterClass=
"java.util.Map"
>
select count(*) as zs, 'fwqzl' as name from ywmachineinfo
select count(*) as zs, 'fwqzl' as name from ywmachineinfo
union all
union all
select count(*) as zs, 'jkzxs' as name from ywvideocurrentstate where
isonline=1
select count(*) as zs, 'jkzxs' as name from ywvideocurrentstate where
(isolation is not null and isonline!=0)
union all
union all
select count(*) as zs, 'jkzl' as name from sbtdspsr
select count(*) as zs, 'jkzl' as name from sbtdspsr
union all
union all
...
...
src/sqlmap/Ywrepairjobinfo.xml
View file @
8fc4920c
...
@@ -758,61 +758,145 @@
...
@@ -758,61 +758,145 @@
<!-- query objects by page-->
<!-- query objects by page-->
<select
id=
"query_Ywrepairjobinfo"
resultClass=
"java.util.HashMap"
parameterClass=
"java.util.Map"
<select
id=
"query_Ywrepairjobinfo"
resultClass=
"java.util.HashMap"
parameterClass=
"java.util.Map"
remapResults=
"true"
>
remapResults=
"true"
>
select
select jobid,
jobid,jobnum,jobsource,alarmeventid,
jobnum,
faultdevicetype,(select csmc from xtcl b where b.csdl='ywAlarmDeviceType' and b.csdm=faultdevicetype) as
jobsource,
faultdevicetypename,
alarmeventid,
faultdevicename,faultdeviceid,channelnum,faultpictureurl,
faultdevicetype,
faultgrade,(select csmc from xtcl b where b.csdl='ywAlarmRuleLevel' and b.csdm=faultgrade) as faultgradename,
(select csmc
faulttype,(select csmc from xtcl b where b.csdl='ywAlarmDeviceType' and b.csdm=faulttype) as faulttypename,
from xtcl b
faultdescription,faultoccurtime,requirefinishtime,actualfinishtime,
where b.csdl = 'ywAlarmDeviceType'
jobprocessstate,(select alarmname from ywalarmeventcode b where b.alarmcode=jobprocessstate) as
and b.csdm = faultdevicetype) as faultdevicetypename,
jobprocessstatename,
faultdevicename,
jobreportcompany,(select bmmc from ptyhbm b where b.bmbh=jobreportcompany) as jobreportcompanyname,
faultdeviceid,
jobreportpeople,(select yhzh from ptyh b where b.yhbh=jobreportpeople) as jobreportpeoplename,
channelnum,
jobreportphone,jobreporttime,jobacceptstate,jobaccepttime,
faultpictureurl,
jobacceptcompany,(select bmmc from ptyhbm b where b.bmbh=jobacceptcompany) as jobacceptcompanyname,
faultgrade,
jobacceptpeople,(select yhzh from ptyh b where b.yhbh=jobacceptpeople ) as jobacceptpeoplename,
(select csmc
jobacceptphone,rejectcause,ishangup,hangupcause,
from xtcl b
hanguppeople,(select yhzh from ptyh b where b.yhbh=hanguppeople ) as hanguppeoplename,
where b.csdl = 'ywAlarmRuleLevel'
hangupcompany,(select bmmc from ptyhbm b where b.bmbh=hangupcompany) as hangupcompanyname,
and b.csdm = faultgrade) as faultgradename,
hanguptime,unhanguptime,
faulttype,
unhanguppeople,(select yhzh from ptyh b where b.yhbh=unhanguppeople ) as unhanguppeoplename,
(select csmc
unhangupcompany,(select bmmc from ptyhbm b where b.bmbh=unhangupcompany) as unhangupcompanyname,
from xtcl b
where b.csdl = 'ywAlarmDeviceType'
and b.csdm = faulttype) as faulttypename,
faultdescription,
faultoccurtime,
requirefinishtime,
actualfinishtime,
jobprocessstate,
(select alarmname
from ywalarmeventcode b
where b.alarmcode = jobprocessstate) as jobprocessstatename,
jobreportcompany,
(select bmmc from ptyhbm b where b.bmbh = jobreportcompany) as jobreportcompanyname,
jobreportpeople,
(select yhzh from ptyh b where b.yhbh = jobreportpeople) as jobreportpeoplename,
jobreportphone,
jobreporttime,
jobacceptstate,
jobaccepttime,
jobacceptcompany,
(select bmmc from ptyhbm b where b.bmbh = jobacceptcompany) as jobacceptcompanyname,
jobacceptpeople,
(select yhzh from ptyh b where b.yhbh = jobacceptpeople) as jobacceptpeoplename,
jobacceptphone,
rejectcause,
ishangup,
hangupcause,
hanguppeople,
(select yhzh from ptyh b where b.yhbh = hanguppeople) as hanguppeoplename,
hangupcompany,
(select bmmc from ptyhbm b where b.bmbh = hangupcompany) as hangupcompanyname,
hanguptime,
unhanguptime,
unhanguppeople,
(select yhzh from ptyh b where b.yhbh = unhanguppeople) as unhanguppeoplename,
unhangupcompany,
(select bmmc from ptyhbm b where b.bmbh = unhangupcompany) as unhangupcompanyname,
faultacceptinfo,
faultacceptinfo,
feedbackcompany,(select bmmc from ptyhbm b where b.bmbh=feedbackcompany) as feedbackcompanyname,
feedbackcompany,
feedbackpeople,feedbacktime,feedbackphone,feedbackstate,feedbackinfo,isdelay,delaytime,delaycause,delayforcompany,delayforpeople,delayfortime,delayforstate,delayfordescription,
(select bmmc from ptyhbm b where b.bmbh = feedbackcompany) as feedbackcompanyname,
confirmfaulttype, (select csmc from Xtcl where csdl='ywAlarmRuleSource' and
feedbackpeople,
csdm=confirmfaulttype)confirmfaulttypename,confirmfaultinfo,repairdays,
feedbacktime,
confirmcompany,(select bmmc from ptyhbm b where b.bmbh=confirmcompany) as confirmcompanyname,
feedbackphone,
confirmpeople,confirmtime,confirmphone,confirmstate,confirmdescription,createaccount,createtime,modifyaccount,modifytime,remarks,extend1,extend2,extend3,extend4,
feedbackstate,
isreject,maintenanceresult,confirmmaintenance,completiontime,
feedbackinfo,
receivertime,receivercompany,receiverpeople,receiverphone,accuracyofinfo,construction,jd,wd
isdelay,
delaytime,
<!-- (select b.bmmc from ptyh a left join ptyhbm b on (a.bmbh = b.bmbh) where
delaycause,
1=1
delayforcompany,
<isNotEmpty prepend='AND ' property='yhbh'>
delayforpeople,
a.yhbh = #yhbh#
delayfortime,
</isNotEmpty>
delayforstate,
) as bmmc -->
delayfordescription,
confirmfaulttype,
(select csmc
from Xtcl
where csdl = 'ywAlarmRuleSource'
and csdm = confirmfaulttype) confirmfaulttypename,
confirmfaultinfo,
repairdays,
confirmcompany,
(select bmmc from ptyhbm b where b.bmbh = confirmcompany) as confirmcompanyname,
confirmpeople,
confirmtime,
confirmphone,
confirmstate,
confirmdescription,
createaccount,
createtime,
modifyaccount,
modifytime,
remarks,
extend1,
extend2,
extend3,
extend4,
isreject,
maintenanceresult,
confirmmaintenance,
completiontime,
receivertime,
receivercompany,
(select bmmc from ptyhbm b where b.bmbh = receivercompany) as receivercompanyname,
receiverpeople,
receiverphone,
accuracyofinfo,
construction,
jd,
wd
from ywrepairjobinfo
from ywrepairjobinfo
left join (
left join (
SELECT sbbh xh, tdbh, jd, wd, '1' devicetype
SELECT sbbh xh ,tdbh , jd,wd, '1' devicetype
FROM sbtdspsr
FROM sbtdspsr
union all
union all
SELECT xh,
null tdbh, jd,
wd, '3' devicetype
SELECT xh,
null tdbh, jd,
wd, '3' devicetype
FROM nhywjtxhdgl n
FROM nhywjtxhdgl n
UNION ALL
UNION ALL
SELECT xh,null tdbh, jd,wd, '4' devicetype FROM nhywjtledydpgl
SELECT xh, null tdbh, jd, wd, '4' devicetype
FROM nhywjtledydpgl
UNION ALL
UNION ALL
SELECT id AS xh,null tdbh,to_char(longitude) jd, to_char(latitude) wd, '10' AS devicetype
SELECT id AS xh,
FROM its.ksh_detector WHERE detectortype = 'GVD'
null tdbh,
to_char(longitude) jd,
to_char(latitude) wd,
'10' AS devicetype
FROM its.ksh_detector
WHERE detectortype = 'GVD'
UNION ALL
UNION ALL
SELECT id AS xh,null tdbh, to_char(longitude) jd, to_char(latitude) wd, '11' AS devicetype
SELECT id AS xh,
FROM its.ksh_detector WHERE detectortype = 'SMARTSENSOR'
null tdbh,
to_char(longitude) jd,
to_char(latitude) wd,
'11' AS devicetype
FROM its.ksh_detector
WHERE detectortype = 'SMARTSENSOR'
UNION ALL
UNION ALL
SELECT xh,null tdbh, jd,wd, '12' AS detectortype
SELECT xh, null tdbh, jd, wd, '12' AS detectortype
FROM its.ksh_zxld
FROM its.ksh_zxld) a
) a on faultdeviceid=a.xh and channelnum=a.tdbh
on faultdeviceid = a.xh
and channelnum = a.tdbh
<include
refid=
"condition_Ywrepairjobinfo"
/>
<include
refid=
"condition_Ywrepairjobinfo"
/>
<!-- <isNotEmpty prepend=' ' property='start'>
<!-- <isNotEmpty prepend=' ' property='start'>
limit #start# ,#limit#
limit #start# ,#limit#
...
...
src/sqlmap/Ywvideocurrentstate.xml
View file @
8fc4920c
...
@@ -543,7 +543,7 @@
...
@@ -543,7 +543,7 @@
<select
id=
"query_Ywvideocurrentstate"
resultClass=
"java.util.HashMap"
parameterClass=
"java.util.Map"
<select
id=
"query_Ywvideocurrentstate"
resultClass=
"java.util.HashMap"
parameterClass=
"java.util.Map"
remapResults=
"true"
>
remapResults=
"true"
>
select a.*, e.sbip,e.cjmc,f.xzbh as xzbh, f.bz,f.xh ,(select xzmc from ptxzs where xzbh=a.videocatalog) as xzmc,
select a.*, e.sbip,e.cjmc,f.xzbh as xzbh, f.bz,f.xh ,(select xzmc from ptxzs where xzbh=a.videocatalog) as xzmc,
(select alarmname from
ywalarmeventcode
where alarmcode=repairstate)repairstatename
(select alarmname from
ywalarmeventcode
where alarmcode=repairstate)repairstatename
from ywvideocurrentstate a
from ywvideocurrentstate a
right join sbtdspsr f on (f.sbbh=a.videonum and f.tdbh=a.channelnum )
right join sbtdspsr f on (f.sbbh=a.videonum and f.tdbh=a.channelnum )
left join sbxx e on (a.videonum=e.sbbh)
left join sbxx e on (a.videonum=e.sbbh)
...
@@ -575,13 +575,13 @@
...
@@ -575,13 +575,13 @@
<isNotEmpty
prepend=
'AND '
property=
'LIKEremarks'
>
<isNotEmpty
prepend=
'AND '
property=
'LIKEremarks'
>
(f.bz like '%$LIKEremarks$%' )
(f.bz like '%$LIKEremarks$%' )
</isNotEmpty>
</isNotEmpty>
<isNotEmpty
property=
'emptyremarks'
>
<isNotEmpty
property=
'emptyremarks'
>
<isEqual
prepend=
'AND '
property=
'emptyremarks'
compareValue=
"0"
>
<isEqual
prepend=
'AND '
property=
'emptyremarks'
compareValue=
"0"
>
(f.bz is
null or f.bz=' ')
(f.bz is
null or f.bz=' ')
</isEqual>
</isEqual>
<isEqual
prepend=
'AND '
property=
'emptyremarks'
compareValue=
"1"
>
<isEqual
prepend=
'AND '
property=
'emptyremarks'
compareValue=
"1"
>
(f.bz is not null and
f.bz!=' ')
(f.bz is not null and
f.bz!=' ')
</isEqual>
</isEqual>
</isNotEmpty>
</isNotEmpty>
<isNotEmpty
prepend=
'AND '
property=
'LIKEchannelname'
>
<isNotEmpty
prepend=
'AND '
property=
'LIKEchannelname'
>
(a.channelname like '%$LIKEchannelname$%' )
(a.channelname like '%$LIKEchannelname$%' )
...
@@ -674,13 +674,13 @@
...
@@ -674,13 +674,13 @@
<isNotEmpty
prepend=
'AND '
property=
'LIKEremarks'
>
<isNotEmpty
prepend=
'AND '
property=
'LIKEremarks'
>
(d.bz like '%$LIKEremarks$%' )
(d.bz like '%$LIKEremarks$%' )
</isNotEmpty>
</isNotEmpty>
<isNotEmpty
property=
'emptyremarks'
>
<isNotEmpty
property=
'emptyremarks'
>
<isEqual
prepend=
'AND '
property=
'emptyremarks'
compareValue=
"0"
>
<isEqual
prepend=
'AND '
property=
'emptyremarks'
compareValue=
"0"
>
(d.bz is
null or d.bz=' ')
(d.bz is
null or d.bz=' ')
</isEqual>
</isEqual>
<isEqual
prepend=
'AND '
property=
'emptyremarks'
compareValue=
"1"
>
<isEqual
prepend=
'AND '
property=
'emptyremarks'
compareValue=
"1"
>
(d.bz is not null and
trim(d.bz)!=' ')
(d.bz is not null and
trim(d.bz)!=' ')
</isEqual>
</isEqual>
</isNotEmpty>
</isNotEmpty>
<isNotEmpty
property=
'tableparam'
>
<isNotEmpty
property=
'tableparam'
>
$tableparam$
$tableparam$
...
@@ -743,12 +743,12 @@
...
@@ -743,12 +743,12 @@
<!-- <select id="statisticsVideoOnlineRate" resultClass="java.util.HashMap" parameterClass="java.util.Map">-->
<!-- <select id="statisticsVideoOnlineRate" resultClass="java.util.HashMap" parameterClass="java.util.Map">-->
<!-- select -->
<!-- select -->
<!-- count(*) as totalcount,-->
<!-- count(*) as totalcount,-->
<!-- SUM(
(case when a.isonline=1 then 1 else 0 end)
) as onlinenum,-->
<!-- SUM(
case when a.isonline=1 then 1 else 0 end
) as onlinenum,-->
<!-- SUM(
(case when a.isonline=0 or a.isonline is null then 1 else 0 end)
) as unonlinenum,-->
<!-- SUM(
case when a.isonline=0 or a.isonline is null then 1 else 0 end
) as unonlinenum,-->
<!-- SUM(
(case when a.vqdstate=1 then 1 else 0 end)
) as intactnum,-->
<!-- SUM(
case when a.vqdstate=1 then 1 else 0 end
) as intactnum,-->
<!-- SUM(
(case when a.vqdstate=0 or a.vqdstate is null then 1 else 0 end)
) as unIntactnum,-->
<!-- SUM(
case when a.vqdstate=0 or a.vqdstate is null then 1 else 0 end
) as unIntactnum,-->
<!-- SUM(
(case when a.recordstate=1 then 1 else 0 end)
) as recordIntactnum,-->
<!-- SUM(
case when a.recordstate=1 then 1 else 0 end
) as recordIntactnum,-->
<!-- SUM(
(case when a.recordstate=0 or a.recordstate is null then 1 else 0 end)
) as unrecordIntactnum-->
<!-- SUM(
case when a.recordstate=0 or a.recordstate is null then 1 else 0 end
) as unrecordIntactnum-->
<!-- from ywvideocurrentstate a-->
<!-- from ywvideocurrentstate a-->
<!-- <isNotEmpty prepend=' ' property='bmbh'>-->
<!-- <isNotEmpty prepend=' ' property='bmbh'>-->
<!-- LEFT JOIN sbtdjqqx b on (b.sbbh=a.videonum and b.tdbh=a.channelnum )-->
<!-- LEFT JOIN sbtdjqqx b on (b.sbbh=a.videonum and b.tdbh=a.channelnum )-->
...
@@ -761,11 +761,11 @@
...
@@ -761,11 +761,11 @@
<!-- </select>-->
<!-- </select>-->
<select
id=
"statisticsVideoOnlineRate"
resultClass=
"java.util.HashMap"
parameterClass=
"java.util.Map"
>
<select
id=
"statisticsVideoOnlineRate"
resultClass=
"java.util.HashMap"
parameterClass=
"java.util.Map"
>
select
count(*) as totalcount,
select count(*) as totalcount,
SUM(
(case when a.isonline is not null and a.isonline!=0 then 1 else 0 end)
) as onlinenum,
SUM(
case when a.isonline is not null and a.isonline!=0 then 1 else 0 end
) as onlinenum,
SUM(
(case when a.isonline =0 or a.isonline is null then 1 else 0 end)
) as unonlinenum
SUM(
case when a.isonline =0 or a.isonline is null then 1 else 0 end
) as unonlinenum
from ywvideocurrentstate a
from ywvideocurrentstate a
RIGHT JOIN
sbtdspsr d on (d.sbbh=a.videonum and d.tdbh=a.channelnum )
right join
sbtdspsr d on (d.sbbh=a.videonum and d.tdbh=a.channelnum )
</select>
</select>
<select
id=
"statisticsVideoIntactRate"
resultClass=
"java.util.HashMap"
parameterClass=
"java.util.Map"
>
<select
id=
"statisticsVideoIntactRate"
resultClass=
"java.util.HashMap"
parameterClass=
"java.util.Map"
>
...
@@ -780,43 +780,39 @@
...
@@ -780,43 +780,39 @@
</select>
</select>
<select
id=
"videoCurrentStateStatistics"
resultClass=
"java.util.HashMap"
parameterClass=
"java.util.Map"
>
<select
id=
"videoCurrentStateStatistics"
resultClass=
"java.util.HashMap"
parameterClass=
"java.util.Map"
>
select 'total' as name, count(*) as total from sbtdspsr a
select 'total' csdm , 'total'csmc , count(*) cnt
UNION ALL
from ywvideocurrentstate a right join sbtdspsr d on (d.sbbh=a.videonum and d.tdbh=a.channelnum )
select 'normalNum' as name, count(*) as total from ywvideocurrentstate a
union
where
select 'abnormal' csdm ,'abnormal'csmc , count(*) cnt
isonline=1
from ywvideocurrentstate a right join sbtdspsr d on (d.sbbh=a.videonum and d.tdbh=a.channelnum ) where isonline=0 or isonline is null
UNION ALL
union
select 'abnormalVQCNum' as name, count(*) as total from ywvideocurrentstate a
select 'normal' csdm ,'normal'csmc , count(*) cnt
where vqcstate=0
from ywvideocurrentstate a right join sbtdspsr d on (d.sbbh=a.videonum and d.tdbh=a.channelnum ) where a.isonline is not null and isonline!=0
UNION ALL
union
select 'abnormalVQDNum' as name, count(*) as total from ywvideocurrentstate a
select isonline csdm, csmc, count(*) cnt
where vqdstate=0
from ywvideocurrentstate a
UNION ALL
left join xtcl b
select 'abnormalRecordNum' as name, count(*) as total from ywvideocurrentstate a
on a.isonline = b.csdm
where recordstate=0
and b.csdl = 'ywVideoCurrentState'
UNION ALL
right join sbtdspsr d on (d.sbbh=a.videonum and d.tdbh=a.channelnum )
select 'abnormalOnlineNum' as name, count(*) as total from ywvideocurrentstate a
group by isonline,csmc
where (isonline=0 or isonline is null)
UNION ALL
select 'abnormalNetNum' as name, count(*) as total from ywvideocurrentstate a
where networkerror=0
</select>
</select>
<select
id=
"vdqStatisticsRegion"
resultClass=
"java.util.HashMap"
parameterClass=
"java.util.Map"
>
<select
id=
"vdqStatisticsRegion"
resultClass=
"java.util.HashMap"
parameterClass=
"java.util.Map"
>
select
d.xzbh videocatalog,
(select XZMC from ptxzs where xzbh=d.xzbh) as videocatalogname,
select
d.xzbh videocatalog,
(select XZMC from ptxzs where xzbh=d.xzbh) as videocatalogname,
count(*) as jknum,
count(*) as jknum,
(select count(1) from sbtdspsr e where (e.xzbh = d.xzbh)
) as totalnum,
(select count(1) from sbtdspsr e where (e.xzbh = d.xzbh)
) as totalnum,
SUM(
(case when a.isonline=0 or a.isonline is null then 1 else 0 end)
) as lxnum,
SUM(
case when a.isonline=0 or a.isonline is null then 1 else 0 end
) as lxnum,
SUM(
(case when a.isonline=1 then 1 else 0 end)
) as zxnum,
SUM(
case when a.isonline is not null and a.isonline!=0 then 1 else 0 end
) as zxnum,
SUM(
(case when a.vqdstate=0 then 1 else 0 end)
) as videoabnormalnum,
SUM(
case when a.vqdstate=0 then 1 else 0 end
) as videoabnormalnum,
SUM(
(case when a.vqdstate=1 then 1 else 0 end)
) as videonormalnum,
SUM(
case when a.vqdstate=1 then 1 else 0 end
) as videonormalnum,
SUM(
(case when a.nosignalstatus in (2,3,4) then 1 else 0 end)
) as nosignalstatusnum,
SUM(
case when a.nosignalstatus in (2,3,4) then 1 else 0 end
) as nosignalstatusnum,
SUM(
(case when a.videoocclusionstatus=0 then 1 else 0 end)
) as videoocclusionstatusnum,
SUM(
case when a.videoocclusionstatus=0 then 1 else 0 end
) as videoocclusionstatusnum,
SUM(
(case when a.scenechangestatus=0 then 1 else 0 end)
) as scenechangestatusnum,
SUM(
case when a.scenechangestatus=0 then 1 else 0 end
) as scenechangestatusnum,
SUM(
(case when a.imgtoodarkstatus=0 then 1 else 0 end)
) as imgtoodarkstatusnum,
SUM(
case when a.imgtoodarkstatus=0 then 1 else 0 end
) as imgtoodarkstatusnum,
SUM(
(case when a.imgoverbrightstatus=0 then 1 else 0 end)
) as imgoverbrightstatusnum,
SUM(
case when a.imgoverbrightstatus=0 then 1 else 0 end
) as imgoverbrightstatusnum,
SUM(
(case when a.imgclearstatus=0 then 1 else 0 end)
) as imgclearstatusnum,
SUM(
case when a.imgclearstatus=0 then 1 else 0 end
) as imgclearstatusnum,
SUM(
(case when a.imgcolorstatus=0 then 1 else 0 end)
) as imgcolorstatusnum
SUM(
case when a.imgcolorstatus=0 then 1 else 0 end
) as imgcolorstatusnum
FROM ywvideocurrentstate a
FROM ywvideocurrentstate a
right JOIN sbtdspsr d on (d.sbbh=a.videonum and d.tdbh=a.channelnum )
right JOIN sbtdspsr d on (d.sbbh=a.videonum and d.tdbh=a.channelnum )
WHERE 1=1
WHERE 1=1
...
@@ -851,15 +847,16 @@
...
@@ -851,15 +847,16 @@
</select>
</select>
<!-- 区域在线率统计 ============================ / start -->
<!-- 区域在线率统计 ============================ / start -->
<select
id=
"query_areaOnline"
resultClass=
"java.util.HashMap"
parameterClass=
"java.util.Map"
>
<select
id=
"query_areaOnline"
resultClass=
"java.util.HashMap"
parameterClass=
"java.util.Map"
>
select b.xzbh xzqh,b.xzmc, sum(f.mcount)mcount,sum(notonlinecount)notonlinecount,sum(onlinecount)onlinecount,sum(wxj)wxj from(
select b.xzbh xzqh,b.xzmc,
sum(f.mcount)mcount,sum(notonlinecount)notonlinecount,sum(onlinecount)onlinecount,sum(wxj)wxj from(
<isEqual
prepend=
""
property=
"alarmdevicetype"
compareValue=
"1"
>
<isEqual
prepend=
""
property=
"alarmdevicetype"
compareValue=
"1"
>
select f.*,f.mcount-(onlinecount+notonlinecount) as wxj from (
select f.*,f.mcount-(onlinecount+notonlinecount) as wxj from (
select d.xzbh xzqh ,
select d.xzbh xzqh ,
(select count(*) from sbtdspsr e
where e.xzbh = d.xzbh ) as mcount,
(select count(*) from sbtdspsr e where e.xzbh = d.xzbh ) as mcount,
(select XZMC from ptxzs where xzbh=d.xzbh) as xzmc,
(select XZMC from ptxzs where xzbh=d.xzbh) as xzmc,
SUM(
(case when a.isonline=0 or a.isonline is null then 1 else 0 end)
) as notonlinecount,
SUM(
case when a.isonline=0 or a.isonline is null then 1 else 0 end
) as notonlinecount,
SUM(
(case when a.isonline!=0 then 1 else 0 end)
) as onlinecount
SUM(
case when a.isonline is not null and a.isonline!=0 then 1 else 0 end
) as onlinecount
from
ywvideocurrentstate a
from ywvideocurrentstate a
LEFT JOIN sbtdspsr d on (d.sbbh=a.videonum and d.tdbh=a.channelnum )
LEFT JOIN sbtdspsr d on (d.sbbh=a.videonum and d.tdbh=a.channelnum )
<isNotEmpty
prepend=
'AND '
property=
'xzbh'
>
<isNotEmpty
prepend=
'AND '
property=
'xzbh'
>
<![CDATA[ d.xzbh in ]]>
<![CDATA[ d.xzbh in ]]>
...
@@ -875,8 +872,8 @@
...
@@ -875,8 +872,8 @@
select f.*,f.mcount-(onlinecount+notonlinecount) as wxj from (
select f.*,f.mcount-(onlinecount+notonlinecount) as wxj from (
select c.machineareanum xzqh,count(*)mcount ,
select c.machineareanum xzqh,count(*)mcount ,
(select XZMC from ptxzs where xzbh=c.MACHINEAREANUM) as xzmc,
(select XZMC from ptxzs where xzbh=c.MACHINEAREANUM) as xzmc,
SUM(
(case when currentstate!=1 or currentstate is null then 1 else 0 end)
) as notonlinecount,
SUM(
case when currentstate!=1 or currentstate is null then 1 else 0 end
) as notonlinecount,
SUM(
(case when currentstate=1 then 1 else 0 end)
) as onlinecount
SUM(
case when currentstate=1 then 1 else 0 end
) as onlinecount
from ywmachinecurrentstate a right join ywmachineinfo c on a.machineid=c.machineid
from ywmachinecurrentstate a right join ywmachineinfo c on a.machineid=c.machineid
<isNotEmpty
prepend=
'where'
property=
'xzbh'
>
<isNotEmpty
prepend=
'where'
property=
'xzbh'
>
<![CDATA[ c.MACHINEAREANUM in ]]>
<![CDATA[ c.MACHINEAREANUM in ]]>
...
@@ -910,8 +907,8 @@
...
@@ -910,8 +907,8 @@
select f.*,f.mcount-(onlinecount+notonlinecount) as wxj from (
select f.*,f.mcount-(onlinecount+notonlinecount) as wxj from (
select qybh xzqh,count(*) mcount,
select qybh xzqh,count(*) mcount,
(select XZMC from ptxzs where xzbh=qybh) as xzmc,
(select XZMC from ptxzs where xzbh=qybh) as xzmc,
SUM(
(case when state=0 or state is null then 1 else 0 end)
) as notonlinecount,
SUM(
case when state=0 or state is null then 1 else 0 end
) as notonlinecount,
SUM(
(case when state=1 then 1 else 0 end)
) as onlinecount
SUM(
case when state=1 then 1 else 0 end
) as onlinecount
from nhywjtledydpgl
from nhywjtledydpgl
<isNotEmpty
prepend=
'where'
property=
'xzbh'
>
<isNotEmpty
prepend=
'where'
property=
'xzbh'
>
<![CDATA[qybh in ]]>
<![CDATA[qybh in ]]>
...
@@ -926,8 +923,8 @@
...
@@ -926,8 +923,8 @@
select f.*,f.mcount-(onlinecount+notonlinecount) as wxj from (
select f.*,f.mcount-(onlinecount+notonlinecount) as wxj from (
select regionid xzqh,count(*) mcount,
select regionid xzqh,count(*) mcount,
(select XZMC from ptxzs where xzbh=regionid) as xzmc,
(select XZMC from ptxzs where xzbh=regionid) as xzmc,
SUM(
(case when state =0 or state is null then 1 else 0 end)
) as notonlinecount,
SUM(
case when state =0 or state is null then 1 else 0 end
) as notonlinecount,
SUM(
(case when state =1 then 1 else 0 end)
) as onlinecount
SUM(
case when state =1 then 1 else 0 end
) as onlinecount
from its.ksh_detector where detectortype='GVD'
from its.ksh_detector where detectortype='GVD'
<isNotEmpty
prepend=
'AND '
property=
'xzbh'
>
<isNotEmpty
prepend=
'AND '
property=
'xzbh'
>
<![CDATA[regionid in ]]>
<![CDATA[regionid in ]]>
...
@@ -943,8 +940,8 @@
...
@@ -943,8 +940,8 @@
select f.*,f.mcount-(onlinecount+notonlinecount) as wxj from (
select f.*,f.mcount-(onlinecount+notonlinecount) as wxj from (
select regionid xzqh,count(*) mcount,
select regionid xzqh,count(*) mcount,
(select XZMC from ptxzs where xzbh=regionid) as xzmc,
(select XZMC from ptxzs where xzbh=regionid) as xzmc,
SUM(
(case when state =0 or state is null then 1 else 0 end)
) as notonlinecount,
SUM(
case when state =0 or state is null then 1 else 0 end
) as notonlinecount,
SUM(
(case when state =1 then 1 else 0 end)
) as onlinecount
SUM(
case when state =1 then 1 else 0 end
) as onlinecount
from its.ksh_detector where detectortype='SMARTSENSOR'
from its.ksh_detector where detectortype='SMARTSENSOR'
<isNotEmpty
prepend=
'AND '
property=
'xzbh'
>
<isNotEmpty
prepend=
'AND '
property=
'xzbh'
>
<![CDATA[regionid in ]]>
<![CDATA[regionid in ]]>
...
@@ -960,8 +957,8 @@
...
@@ -960,8 +957,8 @@
select f.*,f.mcount-(onlinecount+notonlinecount) as wxj from (
select f.*,f.mcount-(onlinecount+notonlinecount) as wxj from (
select gxdwbh xzqh,count(*) mcount,
select gxdwbh xzqh,count(*) mcount,
(select XZMC from ptxzs where xzbh=gxdwbh) as xzmc,
(select XZMC from ptxzs where xzbh=gxdwbh) as xzmc,
SUM(
(case when state =0 or state is null then 1 else 0 end)
) as notonlinecount,
SUM(
case when state =0 or state is null then 1 else 0 end
) as notonlinecount,
SUM(
(case when state =1 then 1 else 0 end)
) as onlinecount
SUM(
case when state =1 then 1 else 0 end
) as onlinecount
from its.KSH_ZXLD
from its.KSH_ZXLD
<isNotEmpty
prepend=
'where'
property=
'xzbh'
>
<isNotEmpty
prepend=
'where'
property=
'xzbh'
>
<![CDATA[gxdwbh in ]]>
<![CDATA[gxdwbh in ]]>
...
@@ -972,17 +969,18 @@
...
@@ -972,17 +969,18 @@
GROUP BY gxdwbh
GROUP BY gxdwbh
) f
) f
</isEqual>
</isEqual>
) f ,(SELECT t.xzbh,xzmc ,level FROM ptxzs t where level=2 START WITH sjxzbh='-1' CONNECT BY PRIOR xzbh=sjxzbh) b where f.xzqh in
) f ,(SELECT t.xzbh,xzmc ,level FROM ptxzs t where level=2 START WITH sjxzbh='-1' CONNECT BY PRIOR xzbh=sjxzbh)
(select xzbh from ptxzs START WITH sjxzbh=b.xzbh CONNECT BY PRIOR xzbh=sjxzbh
b where f.xzqh in
) group by b.xzbh,b.xzmc order by b.xzbh asc
(select xzbh from ptxzs START WITH sjxzbh=b.xzbh CONNECT BY PRIOR xzbh=sjxzbh
) group by b.xzbh,b.xzmc order by b.xzbh asc
</select>
</select>
<select
id=
"count_areaOnline"
resultClass=
"java.lang.Integer"
parameterClass=
"java.util.Map"
>
<select
id=
"count_areaOnline"
resultClass=
"java.lang.Integer"
parameterClass=
"java.util.Map"
>
select count(count(*)) from(
select count(count(*)) from(
<isEqual
prepend=
""
property=
"alarmdevicetype"
compareValue=
"1"
>
<isEqual
prepend=
""
property=
"alarmdevicetype"
compareValue=
"1"
>
select f.* from (
select f.* from (
select d.xzbh xzqh
from
ywvideocurrentstate a
select d.xzbh xzqh
from
ywvideocurrentstate a
right JOIN sbtdspsr d on (d.sbbh=a.videonum and d.tdbh=a.channelnum )
right JOIN sbtdspsr d on (d.sbbh=a.videonum and d.tdbh=a.channelnum )
<isNotEmpty
prepend=
'AND '
property=
'xzbh'
>
<isNotEmpty
prepend=
'AND '
property=
'xzbh'
>
<![CDATA[ d.xzbh in ]]>
<![CDATA[ d.xzbh in ]]>
<iterate
property=
"xzbh"
conjunction=
","
open=
"("
close=
")"
>
<iterate
property=
"xzbh"
conjunction=
","
open=
"("
close=
")"
>
...
@@ -994,7 +992,7 @@
...
@@ -994,7 +992,7 @@
</isEqual>
</isEqual>
<isEqual
prepend=
""
property=
"alarmdevicetype"
compareValue=
"2"
>
<isEqual
prepend=
""
property=
"alarmdevicetype"
compareValue=
"2"
>
select f.*
from (
select f.* from (
select c.MACHINEAREANUM xzqh
select c.MACHINEAREANUM xzqh
from ywmachinecurrentstate a right join ywmachineinfo c on a.machineid=c.machineid
from ywmachinecurrentstate a right join ywmachineinfo c on a.machineid=c.machineid
<isNotEmpty
prepend=
'where'
property=
'xzbh'
>
<isNotEmpty
prepend=
'where'
property=
'xzbh'
>
...
@@ -1076,9 +1074,10 @@
...
@@ -1076,9 +1074,10 @@
GROUP BY gxdwbh
GROUP BY gxdwbh
) f
) f
</isEqual>
</isEqual>
) f ,(SELECT t.xzbh,xzmc ,level FROM ptxzs t where level=2 START WITH sjxzbh='-1' CONNECT BY PRIOR xzbh=sjxzbh) b where f.xzqh in
) f ,(SELECT t.xzbh,xzmc ,level FROM ptxzs t where level=2 START WITH sjxzbh='-1' CONNECT BY PRIOR xzbh=sjxzbh)
(select xzbh from ptxzs START WITH sjxzbh=b.xzbh CONNECT BY PRIOR xzbh=sjxzbh
b where f.xzqh in
) group by b.xzbh,b.xzmc order by b.xzbh asc
(select xzbh from ptxzs START WITH sjxzbh=b.xzbh CONNECT BY PRIOR xzbh=sjxzbh
) group by b.xzbh,b.xzmc order by b.xzbh asc
</select>
</select>
<!-- 监控点不在线信息 -->
<!-- 监控点不在线信息 -->
...
@@ -1287,11 +1286,11 @@
...
@@ -1287,11 +1286,11 @@
<select
id=
"count_HomepageFalultType"
resultClass=
"java.util.HashMap"
parameterClass=
"java.util.Map"
>
<select
id=
"count_HomepageFalultType"
resultClass=
"java.util.HashMap"
parameterClass=
"java.util.Map"
>
select
select
count(*) as zs,
count(*) as zs,
SUM(
(case when a.isonline=0 or a.isonline is null then 1 else 0 end)
) as sbbzx,
SUM(
case when a.isonline=0 or a.isonline is null then 1 else 0 end
) as sbbzx,
SUM(
(case when a.networkerror=0 or a.networkerror is null then 1 else 0 end)
) as wlyc,
SUM(
case when a.networkerror=0 or a.networkerror is null then 1 else 0 end
) as wlyc,
SUM(
(case when a.vqcstate=0 or a.vqcstate is null then 1 else 0 end)
) as czyc,
SUM(
case when a.vqcstate=0 or a.vqcstate is null then 1 else 0 end
) as czyc,
SUM(
(case when a.vqdstate=0 or a.vqdstate is null then 1 else 0 end)
) as zlzdyc,
SUM(
case when a.vqdstate=0 or a.vqdstate is null then 1 else 0 end
) as zlzdyc,
SUM(
(case when a.recordstate=0 or a.recordstate is null then 1 else 0 end)
) as lxyc
SUM(
case when a.recordstate=0 or a.recordstate is null then 1 else 0 end
) as lxyc
from ywvideocurrentstate a
from ywvideocurrentstate a
RIGHT JOIN ywvideosyncchannel d on (d.videonum=a.videonum and d.channelnum=a.channelnum )
RIGHT JOIN ywvideosyncchannel d on (d.videonum=a.videonum and d.channelnum=a.channelnum )
</select>
</select>
...
@@ -1331,7 +1330,7 @@
...
@@ -1331,7 +1330,7 @@
a.videocatalog = #xzqh#
a.videocatalog = #xzqh#
</isNotEmpty>
</isNotEmpty>
<isNotEmpty
prepend=
'AND '
property=
'normal'
>
<isNotEmpty
prepend=
'AND '
property=
'normal'
>
a.isonline!=0
(a.isolation is not null and a.isonline!=0)
</isNotEmpty>
</isNotEmpty>
<isNotEmpty
prepend=
'AND '
property=
'abnormal'
>
<isNotEmpty
prepend=
'AND '
property=
'abnormal'
>
(a.isonline=0 or a.isonline is null)
(a.isonline=0 or a.isonline is null)
...
@@ -1358,7 +1357,7 @@
...
@@ -1358,7 +1357,7 @@
a.videocatalog = #xzqh#
a.videocatalog = #xzqh#
</isNotEmpty>
</isNotEmpty>
<isNotEmpty
prepend=
'AND '
property=
'normal'
>
<isNotEmpty
prepend=
'AND '
property=
'normal'
>
a.isonline!=0
(a.isolation is not null and a.isonline!=0)
</isNotEmpty>
</isNotEmpty>
<isNotEmpty
prepend=
'AND '
property=
'abnormal'
>
<isNotEmpty
prepend=
'AND '
property=
'abnormal'
>
(a.isonline=0 or a.isonline is null)
(a.isonline=0 or a.isonline is null)
...
@@ -1374,13 +1373,12 @@
...
@@ -1374,13 +1373,12 @@
<select
id=
"getDpIntact"
resultClass=
"java.util.HashMap"
parameterClass=
"java.util.Map"
>
<select
id=
"getDpIntact"
resultClass=
"java.util.HashMap"
parameterClass=
"java.util.Map"
>
select
select
count(*) as total,
count(*) as total,
sum((case when a.isonline=1 and a.vqcstate = 1 and a.vqdstate = 1 and recordstate = 1 then 1 else 0 end)) as
sum(case when a.isonline is not null and a.isonline!=0 and a.vqcstate = 1 and a.vqdstate = 1 and recordstate =
1 then 1 else 0 end) as
intactnum
intactnum
from ywvideocurrentstate a
from ywvideocurrentstate a
RIGHT JOIN ywvideosyncchannel d on (d.videonum=a.videonum and d.channelnum=a.channelnum )
RIGHT JOIN ywvideosyncchannel d on (d.videonum=a.videonum and d.channelnum=a.channelnum )
where 1=1
where 1=1
<isNotEmpty
prepend=
' '
property=
'tableparam'
>
<isNotEmpty
prepend=
' '
property=
'tableparam'
>
$tableparam$
$tableparam$
</isNotEmpty>
</isNotEmpty>
...
@@ -1390,7 +1388,7 @@
...
@@ -1390,7 +1388,7 @@
<select
id=
"getDpVideoByXzbh"
resultClass=
"java.util.HashMap"
parameterClass=
"java.util.Map"
remapResults=
"true"
>
<select
id=
"getDpVideoByXzbh"
resultClass=
"java.util.HashMap"
parameterClass=
"java.util.Map"
remapResults=
"true"
>
select
select
a.videonum,a.channelnum,a.channelname,a.videocatalog,
a.videonum,a.channelnum,a.channelname,a.videocatalog,
(case when isonline
=1
then isonline else 0 end) as isonline,
(case when isonline
is not null and isonline !=0
then isonline else 0 end) as isonline,
(case when vqcstate=1 then vqcstate else 0 end) as vqcstate,
(case when vqcstate=1 then vqcstate else 0 end) as vqcstate,
(case when vqdstate=1 then vqdstate else 0 end) as vqdstate,
(case when vqdstate=1 then vqdstate else 0 end) as vqdstate,
(case when recordstate=1 then recordstate else 0 end) as recordstate
(case when recordstate=1 then recordstate else 0 end) as recordstate
...
@@ -1430,7 +1428,7 @@
...
@@ -1430,7 +1428,7 @@
<isNotEmpty
prepend=
','
property=
'modifyaccount'
>
modifyaccount=#modifyaccount#
</isNotEmpty>
<isNotEmpty
prepend=
','
property=
'modifyaccount'
>
modifyaccount=#modifyaccount#
</isNotEmpty>
<isNotEmpty
prepend=
','
property=
'modifytime'
>
modifytime=#modifytime#
</isNotEmpty>
<isNotEmpty
prepend=
','
property=
'modifytime'
>
modifytime=#modifytime#
</isNotEmpty>
</dynamic>
</dynamic>
where
videonum = #XGTJvideonum# and
channelnum=#XGTJchannelnum#
where
videonum = #XGTJvideonum# and
channelnum=#XGTJchannelnum#
</update>
</update>
<update
id=
"update_jsgs"
parameterClass=
"java.util.Map"
>
<update
id=
"update_jsgs"
parameterClass=
"java.util.Map"
>
update jsgs
update jsgs
...
...
src/sqlmap/Ywvideohistorystate.xml
View file @
8fc4920c
...
@@ -606,7 +606,7 @@
...
@@ -606,7 +606,7 @@
(a.videonum like '%$LIKEvideonum$%' )
(a.videonum like '%$LIKEvideonum$%' )
</isNotEmpty>
</isNotEmpty>
<isNotEmpty
prepend=
'AND '
property=
'LIKEip'
>
<isNotEmpty
prepend=
'AND '
property=
'LIKEip'
>
(
a
.sbip like '%$LIKEip$%' )
(
e
.sbip like '%$LIKEip$%' )
</isNotEmpty>
</isNotEmpty>
<isNotEmpty
prepend=
'AND '
property=
'currentstate'
>
<isNotEmpty
prepend=
'AND '
property=
'currentstate'
>
(a.currentstate = #currentstate# )
(a.currentstate = #currentstate# )
...
...
src/sqlmap/Zxld.xml
View file @
8fc4920c
...
@@ -314,12 +314,10 @@
...
@@ -314,12 +314,10 @@
</select>
</select>
<select
id=
"statisticsZxldRate"
resultClass=
"java.util.HashMap"
parameterClass=
"java.util.Map"
>
<select
id=
"statisticsZxldRate"
resultClass=
"java.util.HashMap"
parameterClass=
"java.util.Map"
>
select COUNT(*) as totalcount ,'totalcount' as name
select count(*) as totalcount,
from its.ksh_zxld
SUM(case when a.state is not null and a.state=1 then 1 else 0 end) as onlinenum,
union ALL
SUM(case when a.state =0 or a.state is null then 1 else 0 end) as unonlinenum
select COUNT(a.xh) as totalcount,'onlinenum' as name from its.ksh_zxld a where state=1
from its.ksh_zxld a
union ALL
select COUNT(a.xh) as totalcount ,'unonlinenum' as name from its.ksh_zxld a where ( state=0 or state is null)
</select>
</select>
<!-- query objects by page-->
<!-- query objects by page-->
...
...
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