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
ebcbb546
Commit
ebcbb546
authored
Oct 21, 2024
by
liuyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2024-10-19 设备驾驶舱接口调整
parent
b8f01597
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
25 deletions
+34
-25
HPBI003.xml
src/main/java/com/baosight/hpjx/hp/bi/sql/HPBI003.xml
+34
-25
No files found.
src/main/java/com/baosight/hpjx/hp/bi/sql/HPBI003.xml
View file @
ebcbb546
...
...
@@ -825,8 +825,11 @@
select
EQUIPMENT_CODE,
count(1) as NUM
from
hpjx
.t_hpsb002
from
${hpjxSchema}
.t_hpsb002
where EQUIPMENT_TYPE = 'STARUS_TYPE'
<isNotEmpty
prepend=
" AND "
property=
"companyCode"
>
COMPANY_CODE = #companyCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"logValues"
>
LOG_VALUE IN
<iterate
close=
")"
open=
"("
conjunction=
","
property=
"logValues"
>
#logValues[]#
</iterate>
</isNotEmpty>
...
...
@@ -835,9 +838,7 @@
</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=
"companyCode"
>
a.COMPANY_CODE = #companyCode#
</isNotEmpty>
...
...
@@ -858,8 +859,11 @@
select
EQUIPMENT_CODE,
count(1) as NUM
from
hpjx
.t_hpsb002
from
${hpjxSchema}
.t_hpsb002
where EQUIPMENT_TYPE = 'STARUS_TYPE'
<isNotEmpty
prepend=
" AND "
property=
"companyCode"
>
COMPANY_CODE = #companyCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"logValues"
>
LOG_VALUE IN
<iterate
close=
")"
open=
"("
conjunction=
","
property=
"logValues"
>
#logValues[]#
</iterate>
</isNotEmpty>
...
...
@@ -868,9 +872,7 @@
</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=
"companyCode"
>
a.COMPANY_CODE = #companyCode#
</isNotEmpty>
...
...
@@ -891,8 +893,11 @@
select
EQUIPMENT_CODE,
count(1) as NUM
from
hpjx
.t_hpsb002
from
${hpjxSchema}
.t_hpsb002
where EQUIPMENT_TYPE = 'STARUS_TYPE'
<isNotEmpty
prepend=
" AND "
property=
"companyCode"
>
COMPANY_CODE = #companyCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"logValues"
>
LOG_VALUE IN
<iterate
close=
")"
open=
"("
conjunction=
","
property=
"logValues"
>
#logValues[]#
</iterate>
</isNotEmpty>
...
...
@@ -901,9 +906,7 @@
</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=
"companyCode"
>
a.COMPANY_CODE = #companyCode#
</isNotEmpty>
...
...
@@ -924,8 +927,11 @@
select
EQUIPMENT_CODE,
count(1) as NUM
from
hpjx
.t_hpsb002
from
${hpjxSchema}
.t_hpsb002
where EQUIPMENT_TYPE = 'STARUS_TYPE'
<isNotEmpty
prepend=
" AND "
property=
"companyCode"
>
COMPANY_CODE = #companyCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"logValues"
>
LOG_VALUE IN
<iterate
close=
")"
open=
"("
conjunction=
","
property=
"logValues"
>
#logValues[]#
</iterate>
</isNotEmpty>
...
...
@@ -934,9 +940,7 @@
</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=
"companyCode"
>
a.COMPANY_CODE = #companyCode#
</isNotEmpty>
...
...
@@ -957,8 +961,11 @@
select
EQUIPMENT_CODE,
count(1) as NUM
from
hpjx
.t_hpsb002
from
${hpjxSchema}
.t_hpsb002
where EQUIPMENT_TYPE = 'STARUS_TYPE'
<isNotEmpty
prepend=
" AND "
property=
"companyCode"
>
COMPANY_CODE = #companyCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"logValues"
>
LOG_VALUE IN
<iterate
close=
")"
open=
"("
conjunction=
","
property=
"logValues"
>
#logValues[]#
</iterate>
</isNotEmpty>
...
...
@@ -967,9 +974,7 @@
</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=
"companyCode"
>
a.COMPANY_CODE = #companyCode#
</isNotEmpty>
...
...
@@ -990,8 +995,11 @@
select
EQUIPMENT_CODE,
count(1) as NUM
from
hpjx
.t_hpsb002
from
${hpjxSchema}
.t_hpsb002
where EQUIPMENT_TYPE = 'STARUS_TYPE'
<isNotEmpty
prepend=
" AND "
property=
"companyCode"
>
COMPANY_CODE = #companyCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"logValues"
>
LOG_VALUE IN
<iterate
close=
")"
open=
"("
conjunction=
","
property=
"logValues"
>
#logValues[]#
</iterate>
</isNotEmpty>
...
...
@@ -1000,9 +1008,7 @@
</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=
"companyCode"
>
a.COMPANY_CODE = #companyCode#
</isNotEmpty>
...
...
@@ -1023,8 +1029,11 @@
select
EQUIPMENT_CODE,
count(1) as NUM
from
hpjx
.t_hpsb002
from
${hpjxSchema}
.t_hpsb002
where EQUIPMENT_TYPE = 'STARUS_TYPE'
<isNotEmpty
prepend=
" AND "
property=
"companyCode"
>
COMPANY_CODE = #companyCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"logValues"
>
LOG_VALUE IN
<iterate
close=
")"
open=
"("
conjunction=
","
property=
"logValues"
>
#logValues[]#
</iterate>
</isNotEmpty>
...
...
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