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
647dec31
Commit
647dec31
authored
Nov 20, 2024
by
liuyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
设备驾驶舱查询设备状态逻辑调整
parent
00b26146
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
+9
-4
ServiceHGSB010.java
.../java/com/baosight/hggp/hg/sb/service/ServiceHGSB010.java
+3
-1
HGSB010.xml
src/main/java/com/baosight/hggp/hg/sb/sql/HGSB010.xml
+6
-3
No files found.
src/main/java/com/baosight/hggp/hg/sb/service/ServiceHGSB010.java
View file @
647dec31
...
@@ -6,6 +6,7 @@ import com.baosight.hggp.aspect.annotation.OperationLogAnnotation;
...
@@ -6,6 +6,7 @@ import com.baosight.hggp.aspect.annotation.OperationLogAnnotation;
import
com.baosight.hggp.core.dao.DaoBase
;
import
com.baosight.hggp.core.dao.DaoBase
;
import
com.baosight.hggp.core.dao.DaoUtils
;
import
com.baosight.hggp.core.dao.DaoUtils
;
import
com.baosight.hggp.core.extapp.decheng.api.SbOpenApi
;
import
com.baosight.hggp.core.extapp.decheng.api.SbOpenApi
;
import
com.baosight.hggp.core.security.UserSessionUtils
;
import
com.baosight.hggp.hg.pz.domain.HGPZ009
;
import
com.baosight.hggp.hg.pz.domain.HGPZ009
;
import
com.baosight.hggp.hg.sb.domain.HGSB010
;
import
com.baosight.hggp.hg.sb.domain.HGSB010
;
import
com.baosight.hggp.hg.xs.domain.User
;
import
com.baosight.hggp.hg.xs.domain.User
;
...
@@ -220,8 +221,9 @@ public class ServiceHGSB010 extends ServiceEPBase {
...
@@ -220,8 +221,9 @@ public class ServiceHGSB010 extends ServiceEPBase {
List
<
HGSB010
>
resultRows
=
MapUtils
.
toDaoEPBases
(
inInfo
,
HGSB010
.
class
);
List
<
HGSB010
>
resultRows
=
MapUtils
.
toDaoEPBases
(
inInfo
,
HGSB010
.
class
);
for
(
HGSB010
hgsb010:
resultRows
)
{
for
(
HGSB010
hgsb010:
resultRows
)
{
hgsb010
.
setEquipmentType
(
"STARUS_TYPE"
);
hgsb010
.
setEquipmentType
(
"STARUS_TYPE"
);
hgsb010
.
setCompanyCode
(
UserSessionUtils
.
getAccountCode
());
DaoUtils
.
insert
(
HGSB010
.
INSERT
,
hgsb010
);
DaoUtils
.
insert
(
HGSB010
.
INSERT
,
hgsb010
);
}
}
return
super
.
insert
(
inInfo
)
;
return
inInfo
;
}
}
}
}
src/main/java/com/baosight/hggp/hg/sb/sql/HGSB010.xml
View file @
647dec31
...
@@ -185,9 +185,11 @@
...
@@ -185,9 +185,11 @@
</isNotEmpty>
</isNotEmpty>
left join (
left join (
select EQUIPMENT_CODE, LOG_VALUE
select EQUIPMENT_CODE, LOG_VALUE
from ${hggpSchema}.HGSB010 where EQUIPMENT_TYPE = 'STARUS_TYPE'
from ${hggpSchema}.HGSB010
and CREATED_TIME =(
where EQUIPMENT_TYPE = 'STARUS_TYPE'
select MAX(CREATED_TIME) from ${hggpSchema}.HGSB010
and (EQUIPMENT_CODE,CREATED_TIME) IN (
select EQUIPMENT_CODE, MAX(CREATED_TIME)
from ${hggpSchema}.HGSB010
where EQUIPMENT_TYPE = 'STARUS_TYPE'
where EQUIPMENT_TYPE = 'STARUS_TYPE'
<isNotEmpty
prepend=
" AND "
property=
"accountCode"
>
<isNotEmpty
prepend=
" AND "
property=
"accountCode"
>
ACCOUNT_CODE = #accountCode#
ACCOUNT_CODE = #accountCode#
...
@@ -195,6 +197,7 @@
...
@@ -195,6 +197,7 @@
<isNotEmpty
prepend=
" AND "
property=
"date"
>
<isNotEmpty
prepend=
" AND "
property=
"date"
>
left(CREATED_TIME,8) = #date#
left(CREATED_TIME,8) = #date#
</isNotEmpty>
</isNotEmpty>
group by EQUIPMENT_CODE
)
)
<isNotEmpty
prepend=
" AND "
property=
"accountCode"
>
<isNotEmpty
prepend=
" AND "
property=
"accountCode"
>
ACCOUNT_CODE = #accountCode#
ACCOUNT_CODE = #accountCode#
...
...
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