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
6d87e6c7
Commit
6d87e6c7
authored
Nov 19, 2024
by
liuyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整设备驾驶舱显示设备逻辑
parent
1d9778cd
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
16 deletions
+16
-16
HGSB010.xml
src/main/java/com/baosight/hggp/hg/sb/sql/HGSB010.xml
+16
-16
No files found.
src/main/java/com/baosight/hggp/hg/sb/sql/HGSB010.xml
View file @
6d87e6c7
...
...
@@ -183,7 +183,7 @@
<isNotEmpty
prepend=
" AND "
property=
"factoryCode"
>
B.FACTORY_CODE = #factoryCode#
</isNotEmpty>
INNER
join (
left
join (
select EQUIPMENT_CODE, LOG_VALUE
from ${hggpSchema}.HGSB010 where EQUIPMENT_TYPE = 'STARUS_TYPE'
and CREATED_TIME =(
...
...
@@ -200,7 +200,7 @@
ACCOUNT_CODE = #accountCode#
</isNotEmpty>
) c on a.DEVICE_CODE = c.EQUIPMENT_CODE
where a.DELETE_FLAG = 0 and a.DEVICE_STATUS = 1
where a.DELETE_FLAG = 0 and a.DEVICE_STATUS = 1
and a.REVEAL = 1
<isNotEmpty
prepend=
" AND "
property=
"accountCode"
>
a.ACCOUNT_CODE = #accountCode#
</isNotEmpty>
...
...
@@ -230,7 +230,7 @@
<isNotEmpty
prepend=
" AND "
property=
"factoryCode"
>
B.FACTORY_CODE = #factoryCode#
</isNotEmpty>
join (
left
join (
select
EQUIPMENT_CODE, count(1) as NUM
from ${hggpSchema}.HGSB010
...
...
@@ -247,7 +247,7 @@
group by EQUIPMENT_CODE
) c on a.DEVICE_CODE = c.EQUIPMENT_CODE
where
a.DELETE_FLAG = 0 and DEVICE_STATUS = 1
a.DELETE_FLAG = 0 and DEVICE_STATUS = 1
and REVEAL = 1
<isNotEmpty
prepend=
" AND "
property=
"accountCode"
>
a.ACCOUNT_CODE = #accountCode#
</isNotEmpty>
...
...
@@ -268,7 +268,7 @@
<isNotEmpty
prepend=
" AND "
property=
"factoryCode"
>
B.FACTORY_CODE = #factoryCode#
</isNotEmpty>
join (
left
join (
select
EQUIPMENT_CODE, count(1) as NUM
from ${hggpSchema}.HGSB010
...
...
@@ -284,7 +284,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
and REVEAL = 1
<isNotEmpty
prepend=
" AND "
property=
"accountCode"
>
a.ACCOUNT_CODE = #accountCode#
</isNotEmpty>
...
...
@@ -305,7 +305,7 @@
<isNotEmpty
prepend=
" AND "
property=
"factoryCode"
>
B.FACTORY_CODE = #factoryCode#
</isNotEmpty>
join (
left
join (
select
EQUIPMENT_CODE, count(1) as NUM
from ${hggpSchema}.HGSB010
...
...
@@ -322,7 +322,7 @@
group by EQUIPMENT_CODE
) c on a.DEVICE_CODE = c.EQUIPMENT_CODE
where
a.DELETE_FLAG = 0 and DEVICE_STATUS = 1
a.DELETE_FLAG = 0 and DEVICE_STATUS = 1
and REVEAL = 1
<isNotEmpty
prepend=
" AND "
property=
"accountCode"
>
a.ACCOUNT_CODE = #accountCode#
</isNotEmpty>
...
...
@@ -343,7 +343,7 @@
<isNotEmpty
prepend=
" AND "
property=
"factoryCode"
>
B.FACTORY_CODE = #factoryCode#
</isNotEmpty>
join (
left
join (
select
EQUIPMENT_CODE, count(1) as NUM
from ${hggpSchema}.HGSB010
...
...
@@ -359,7 +359,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
and REVEAL = 1
<isNotEmpty
prepend=
" AND "
property=
"accountCode"
>
a.ACCOUNT_CODE = #accountCode#
</isNotEmpty>
...
...
@@ -380,7 +380,7 @@
<isNotEmpty
prepend=
" AND "
property=
"factoryCode"
>
B.FACTORY_CODE = #factoryCode#
</isNotEmpty>
join (
left
join (
select
EQUIPMENT_CODE, count(1) as NUM
from ${hggpSchema}.HGSB010
...
...
@@ -396,7 +396,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
and REVEAL = 1
<isNotEmpty
prepend=
" AND "
property=
"accountCode"
>
a.ACCOUNT_CODE = #accountCode#
</isNotEmpty>
...
...
@@ -417,7 +417,7 @@
<isNotEmpty
prepend=
" AND "
property=
"factoryCode"
>
B.FACTORY_CODE = #factoryCode#
</isNotEmpty>
join (
left
join (
select
EQUIPMENT_CODE, count(1) as NUM
from ${hggpSchema}.HGSB010
...
...
@@ -433,7 +433,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
and REVEAL = 1
<isNotEmpty
prepend=
" AND "
property=
"accountCode"
>
a.ACCOUNT_CODE = #accountCode#
</isNotEmpty>
...
...
@@ -454,7 +454,7 @@
<isNotEmpty
prepend=
" AND "
property=
"factoryCode"
>
B.FACTORY_CODE = #factoryCode#
</isNotEmpty>
join (
left
join (
select
EQUIPMENT_CODE, count(1) as NUM
from ${hggpSchema}.HGSB010
...
...
@@ -470,7 +470,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
and REVEAL = 1
<isNotEmpty
prepend=
" AND "
property=
"accountCode"
>
a.ACCOUNT_CODE = #accountCode#
</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