Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
hp-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
hp-smart
Commits
7c8a7fd3
Commit
7c8a7fd3
authored
Oct 21, 2024
by
lyy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
设备驾驶舱数据修复
parent
78e5deee
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
43 additions
and
31 deletions
+43
-31
HPBI003.xml
src/main/java/com/baosight/hpjx/hp/bi/sql/HPBI003.xml
+30
-23
HPBI004.jsp
src/main/webapp/HP/BI/HPBI004.jsp
+13
-8
No files found.
src/main/java/com/baosight/hpjx/hp/bi/sql/HPBI003.xml
View file @
7c8a7fd3
...
@@ -31,32 +31,39 @@
...
@@ -31,32 +31,39 @@
<select
id=
"queryBySbStatus"
parameterClass=
"java.util.HashMap"
resultClass=
"java.util.HashMap"
>
<select
id=
"queryBySbStatus"
parameterClass=
"java.util.HashMap"
resultClass=
"java.util.HashMap"
>
select
select
a.DEVICE_CODE as "deviceCode",
a.DEVICE_CODE as "deviceCode",
a.DEVICE_NAME as "deviceName",
a.DEVICE_NAME as "deviceName",
a.DEVICE_MODEL as "deviceModel",
a.DEVICE_MODEL as "deviceModel",
c.LOG_VALUE as status
ifnull(c.LOG_VALUE, 0) as "status"
from ${hpjxSchema}.t_hpsb003 a
from ${hpjxSchema}.t_hpsb003 a
join ${hpjxSchema}.t_hpsb002 c on a.DEVICE_CODE = c.EQUIPMENT_CODE
left join (
where
select EQUIPMENT_CODE, LOG_VALUE
a.DELETE_FLAG = 0
from ${hpjxSchema}.t_hpsb002 where EQUIPMENT_TYPE = 'STARUS_TYPE'
and DEVICE_STATUS = 1
<isNotEmpty
prepend=
" AND "
property=
"companyCode"
>
and c.EQUIPMENT_TYPE = 'STARUS_TYPE'
COMPANY_CODE = #companyCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"date"
>
CREATED_TIME =(
select MAX(CREATED_TIME) from ${hpjxSchema}.t_hpsb002
where EQUIPMENT_TYPE = 'STARUS_TYPE' and left(CREATED_TIME,8) = #date#
<isNotEmpty
prepend=
" AND "
property=
"companyCode"
>
<isNotEmpty
prepend=
" AND "
property=
"companyCode"
>
a.COMPANY_CODE = #companyCode#
COMPANY_CODE = #companyCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"factoryCode"
>
a.FACTORY_CODE = #factoryCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"deviceCode"
>
a.DEVICE_CODE = #deviceCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"date"
>
c.CREATED_TIME =(
select MAX(CREATED_TIME) from hpjx.t_hpsb002
where EQUIPMENT_TYPE = 'STARUS_TYPE' and left(CREATED_TIME,8) = #date#
)
</isNotEmpty>
</isNotEmpty>
)
</isNotEmpty>
) c on a.DEVICE_CODE = c.EQUIPMENT_CODE
where
a.DELETE_FLAG = 0
and DEVICE_STATUS = 1
<isNotEmpty
prepend=
" AND "
property=
"companyCode"
>
a.COMPANY_CODE = #companyCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"factoryCode"
>
a.FACTORY_CODE = #factoryCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"deviceCode"
>
a.DEVICE_CODE = #deviceCode#
</isNotEmpty>
order by a.DEVICE_CODE
order by a.DEVICE_CODE
</select>
</select>
...
...
src/main/webapp/HP/BI/HPBI004.jsp
View file @
7c8a7fd3
...
@@ -271,18 +271,23 @@
...
@@ -271,18 +271,23 @@
this
.
setOption2
();
this
.
setOption2
();
// var _this = this;
// setTimeout(function() {
// _this.initPage();
// }, 60000);
setTimeout
(
function
()
{
setTimeout
(
function
()
{
this
.
init
();
window
.
location
.
reload
();
},
60000
);
},
60000
);
},
},
methods
:
{
methods
:
{
init
(){
// initPage
(){
this
.
getYesterdayDateFormatted
();
//
this.getYesterdayDateFormatted();
this
.
queryCompanyInfo
();
//
this.queryCompanyInfo();
this
.
queryBySbStatus
();
//
this.queryBySbStatus();
this
.
querySbYes
();
//
this.querySbYes();
this
.
querySbNo
();
//
this.querySbNo();
},
//
},
formatTime
(
currentTime
)
{
formatTime
(
currentTime
)
{
const
formattedTime
=
const
formattedTime
=
currentTime
.
getFullYear
()
+
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