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
f744b188
Commit
f744b188
authored
Nov 19, 2024
by
liuyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整驾驶舱设备时长显示
parent
aae00522
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
7 deletions
+9
-7
ServiceHGSB010.java
.../java/com/baosight/hggp/hg/sb/service/ServiceHGSB010.java
+2
-1
HGSB010.xml
src/main/java/com/baosight/hggp/hg/sb/sql/HGSB010.xml
+7
-6
No files found.
src/main/java/com/baosight/hggp/hg/sb/service/ServiceHGSB010.java
View file @
f744b188
...
@@ -50,7 +50,8 @@ public class ServiceHGSB010 extends ServiceEPBase {
...
@@ -50,7 +50,8 @@ public class ServiceHGSB010 extends ServiceEPBase {
public
EiInfo
queryBySbStatus
(
EiInfo
inInfo
)
{
public
EiInfo
queryBySbStatus
(
EiInfo
inInfo
)
{
Map
params
=
EiInfoUtils
.
getFirstRow
(
inInfo
);
Map
params
=
EiInfoUtils
.
getFirstRow
(
inInfo
);
if
(
params
.
containsKey
(
"date"
)){
if
(
params
.
containsKey
(
"date"
)){
params
.
put
(
"date"
,
DateUtils
.
formatShort
(
params
.
get
(
"date"
)));
params
.
remove
(
"date"
);
//params.put("date", DateUtils.formatShort(params.get("date")));
}
}
List
<
Map
>
result
=
DaoBase
.
getInstance
().
query
(
"HGSB010.queryBySbStatus"
,
params
);
List
<
Map
>
result
=
DaoBase
.
getInstance
().
query
(
"HGSB010.queryBySbStatus"
,
params
);
inInfo
.
set
(
"result"
,
result
);
inInfo
.
set
(
"result"
,
result
);
...
...
src/main/java/com/baosight/hggp/hg/sb/sql/HGSB010.xml
View file @
f744b188
...
@@ -186,17 +186,18 @@
...
@@ -186,17 +186,18 @@
INNER join (
INNER join (
select EQUIPMENT_CODE, LOG_VALUE
select EQUIPMENT_CODE, LOG_VALUE
from ${hggpSchema}.HGSB010 where EQUIPMENT_TYPE = 'STARUS_TYPE'
from ${hggpSchema}.HGSB010 where EQUIPMENT_TYPE = 'STARUS_TYPE'
<isNotEmpty
prepend=
" AND "
property=
"accountCode"
>
and CREATED_TIME =(
ACCOUNT_CODE = #accountCode#
</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#
where EQUIPMENT_TYPE = 'STARUS_TYPE'
<isNotEmpty
prepend=
" AND "
property=
"accountCode"
>
<isNotEmpty
prepend=
" AND "
property=
"accountCode"
>
ACCOUNT_CODE = #accountCode#
ACCOUNT_CODE = #accountCode#
</isNotEmpty>
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"date"
>
left(CREATED_TIME,8) = #date#
</isNotEmpty>
)
)
<isNotEmpty
prepend=
" AND "
property=
"accountCode"
>
ACCOUNT_CODE = #accountCode#
</isNotEmpty>
</isNotEmpty>
) c on a.DEVICE_CODE = c.EQUIPMENT_CODE
) 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
...
...
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