Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
hg-smart
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
platform
hg-smart
Commits
2c273f4c
Commit
2c273f4c
authored
Oct 21, 2024
by
liuyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2024-10-21
1.设备管理接口定时刷新
parent
b9d19d6d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
71 additions
and
26 deletions
+71
-26
HGSB010.xml
src/main/java/com/baosight/hggp/hg/sb/sql/HGSB010.xml
+52
-16
HGBI002.jsp
src/main/webapp/HG/BI/HGBI002.jsp
+11
-0
HGBI003.jsp
src/main/webapp/HG/BI/HGBI003.jsp
+8
-10
No files found.
src/main/java/com/baosight/hggp/hg/sb/sql/HGSB010.xml
View file @
2c273f4c
...
...
@@ -190,9 +190,11 @@
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"date"
>
CREATED_TIME =(
select MAX(CREATED_TIME)
from ${hggpSchema}.HGSB010
select MAX(CREATED_TIME) from ${hggpSchema}.HGSB010
where EQUIPMENT_TYPE = 'STARUS_TYPE' and left(CREATED_TIME,8) = #date#
<isNotEmpty
prepend=
" AND "
property=
"accountCode"
>
ACCOUNT_CODE = #accountCode#
</isNotEmpty>
)
</isNotEmpty>
) c on a.DEVICE_CODE = c.EQUIPMENT_CODE
...
...
@@ -212,8 +214,7 @@
order by a.DEVICE_CODE
</select>
<select
id=
"queryBySbYes"
parameterClass=
"java.util.HashMap"
resultClass=
"java.util.HashMap"
>
<select
id=
"queryBySbYes"
parameterClass=
"java.util.HashMap"
resultClass=
"java.util.HashMap"
>
select
a.DEVICE_CODE as "deviceCode",
a.DEVICE_MODEL as "deviceModel",
...
...
@@ -232,6 +233,9 @@
count(1) as NUM
from ${hggpSchema}.HGSB010
where EQUIPMENT_TYPE = 'STARUS_TYPE'
<isNotEmpty
prepend=
" AND "
property=
"accountCode"
>
ACCOUNT_CODE = #accountCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"logValues"
>
LOG_VALUE IN
<iterate
close=
")"
open=
"("
conjunction=
","
property=
"logValues"
>
#logValues[]#
</iterate>
</isNotEmpty>
...
...
@@ -242,6 +246,9 @@
) c on a.DEVICE_CODE = c.EQUIPMENT_CODE
where
a.DELETE_FLAG = 0 and DEVICE_STATUS = 1
<isNotEmpty
prepend=
" AND "
property=
"accountCode"
>
a.ACCOUNT_CODE = #accountCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"companyCode"
>
a.COMPANY_CODE = #companyCode#
</isNotEmpty>
...
...
@@ -264,6 +271,9 @@
count(1) as NUM
from ${hggpSchema}.HGSB010
where EQUIPMENT_TYPE = 'STARUS_TYPE'
<isNotEmpty
prepend=
" AND "
property=
"accountCode"
>
ACCOUNT_CODE = #accountCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"logValues"
>
LOG_VALUE IN
<iterate
close=
")"
open=
"("
conjunction=
","
property=
"logValues"
>
#logValues[]#
</iterate>
</isNotEmpty>
...
...
@@ -272,9 +282,10 @@
</isNotEmpty>
group by EQUIPMENT_CODE
) c on a.DEVICE_CODE = c.EQUIPMENT_CODE
where
a.DELETE_FLAG = 0
and DEVICE_STATUS = 1
where a.DELETE_FLAG = 0 and DEVICE_STATUS = 1
<isNotEmpty
prepend=
" AND "
property=
"accountCode"
>
a.ACCOUNT_CODE = #accountCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"companyCode"
>
a.COMPANY_CODE = #companyCode#
</isNotEmpty>
...
...
@@ -297,6 +308,9 @@
count(1) as NUM
from ${hggpSchema}.HGSB010
where EQUIPMENT_TYPE = 'STARUS_TYPE'
<isNotEmpty
prepend=
" AND "
property=
"accountCode"
>
ACCOUNT_CODE = #accountCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"logValues"
>
LOG_VALUE IN
<iterate
close=
")"
open=
"("
conjunction=
","
property=
"logValues"
>
#logValues[]#
</iterate>
</isNotEmpty>
...
...
@@ -307,6 +321,9 @@
) c on a.DEVICE_CODE = c.EQUIPMENT_CODE
where
a.DELETE_FLAG = 0 and DEVICE_STATUS = 1
<isNotEmpty
prepend=
" AND "
property=
"accountCode"
>
a.ACCOUNT_CODE = #accountCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"companyCode"
>
a.COMPANY_CODE = #companyCode#
</isNotEmpty>
...
...
@@ -329,6 +346,9 @@
count(1) as NUM
from ${hggpSchema}.HGSB010
where EQUIPMENT_TYPE = 'STARUS_TYPE'
<isNotEmpty
prepend=
" AND "
property=
"accountCode"
>
ACCOUNT_CODE = #accountCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"logValues"
>
LOG_VALUE IN
<iterate
close=
")"
open=
"("
conjunction=
","
property=
"logValues"
>
#logValues[]#
</iterate>
</isNotEmpty>
...
...
@@ -337,8 +357,10 @@
</isNotEmpty>
group by EQUIPMENT_CODE
) c on a.DEVICE_CODE = c.EQUIPMENT_CODE
where
a.DELETE_FLAG = 0 and DEVICE_STATUS = 1
where a.DELETE_FLAG = 0 and DEVICE_STATUS = 1
<isNotEmpty
prepend=
" AND "
property=
"accountCode"
>
a.ACCOUNT_CODE = #accountCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"companyCode"
>
a.COMPANY_CODE = #companyCode#
</isNotEmpty>
...
...
@@ -361,6 +383,9 @@
count(1) as NUM
from ${hggpSchema}.HGSB010
where EQUIPMENT_TYPE = 'STARUS_TYPE'
<isNotEmpty
prepend=
" AND "
property=
"accountCode"
>
ACCOUNT_CODE = #accountCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"logValues"
>
LOG_VALUE IN
<iterate
close=
")"
open=
"("
conjunction=
","
property=
"logValues"
>
#logValues[]#
</iterate>
</isNotEmpty>
...
...
@@ -369,9 +394,10 @@
</isNotEmpty>
group by EQUIPMENT_CODE
) c on a.DEVICE_CODE = c.EQUIPMENT_CODE
where
a.DELETE_FLAG = 0
and DEVICE_STATUS = 1
where a.DELETE_FLAG = 0 and DEVICE_STATUS = 1
<isNotEmpty
prepend=
" AND "
property=
"accountCode"
>
a.ACCOUNT_CODE = #accountCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"companyCode"
>
a.COMPANY_CODE = #companyCode#
</isNotEmpty>
...
...
@@ -394,6 +420,9 @@
count(1) as NUM
from ${hggpSchema}.HGSB010
where EQUIPMENT_TYPE = 'STARUS_TYPE'
<isNotEmpty
prepend=
" AND "
property=
"accountCode"
>
ACCOUNT_CODE = #accountCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"logValues"
>
LOG_VALUE IN
<iterate
close=
")"
open=
"("
conjunction=
","
property=
"logValues"
>
#logValues[]#
</iterate>
</isNotEmpty>
...
...
@@ -402,8 +431,10 @@
</isNotEmpty>
group by EQUIPMENT_CODE
) c on a.DEVICE_CODE = c.EQUIPMENT_CODE
where
a.DELETE_FLAG = 0 and DEVICE_STATUS = 1
where a.DELETE_FLAG = 0 and DEVICE_STATUS = 1
<isNotEmpty
prepend=
" AND "
property=
"accountCode"
>
a.ACCOUNT_CODE = #accountCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"companyCode"
>
a.COMPANY_CODE = #companyCode#
</isNotEmpty>
...
...
@@ -426,6 +457,9 @@
count(1) as NUM
from ${hggpSchema}.HGSB010
where EQUIPMENT_TYPE = 'STARUS_TYPE'
<isNotEmpty
prepend=
" AND "
property=
"accountCode"
>
ACCOUNT_CODE = #accountCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"logValues"
>
LOG_VALUE IN
<iterate
close=
")"
open=
"("
conjunction=
","
property=
"logValues"
>
#logValues[]#
</iterate>
</isNotEmpty>
...
...
@@ -434,8 +468,10 @@
</isNotEmpty>
group by EQUIPMENT_CODE
) c on a.DEVICE_CODE = c.EQUIPMENT_CODE
where
a.DELETE_FLAG = 0 and DEVICE_STATUS = 1
where a.DELETE_FLAG = 0 and DEVICE_STATUS = 1
<isNotEmpty
prepend=
" AND "
property=
"accountCode"
>
a.ACCOUNT_CODE = #accountCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"companyCode"
>
a.COMPANY_CODE = #companyCode#
</isNotEmpty>
...
...
src/main/webapp/HG/BI/HGBI002.jsp
View file @
2c273f4c
...
...
@@ -218,8 +218,19 @@
this
.
setOption
();
this
.
getByProcessDayWt
();
this
.
setOption2
();
setInterval
(()
=>
{
this
.
initPage
();
},
60000
);
},
methods
:
{
initPage
(){
this
.
getByProcessWt
();
this
.
setOption
();
this
.
getByProcessDayWt
();
this
.
setOption2
();
},
handledataPicker
(){
this
.
getByProcessWt
();
this
.
setOption
();
...
...
src/main/webapp/HG/BI/HGBI003.jsp
View file @
2c273f4c
...
...
@@ -270,19 +270,17 @@
// self.init();
// }, 60000);
set
Timeout
(
function
()
{
window
.
location
.
reload
();
set
Interval
(()
=>
{
this
.
initPage
();
},
60000
);
},
methods
:
{
// init(){
// console.log(1)
// this.getYesterdayDateFormatted();
// this.getRoleFactory();
// this.queryBySbStatus();
// this.querySbYes();
// this.querySbNo();
// },
initPage
(){
this
.
getYesterdayDateFormatted
();
this
.
queryBySbStatus
();
this
.
querySbYes
();
this
.
querySbNo
();
},
formatTime
(
currentTime
)
{
const
formattedTime
=
currentTime
.
getFullYear
()
+
...
...
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