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
14a79a5a
Commit
14a79a5a
authored
Oct 21, 2024
by
liuyang
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of
http://git.pseer.com:8800/platform/hg-smart
into dev-ly
parents
9336e033
1790bf2b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
4 deletions
+22
-4
ServiceHGSC007.java
.../java/com/baosight/hggp/hg/sc/service/ServiceHGSC007.java
+22
-4
No files found.
src/main/java/com/baosight/hggp/hg/sc/service/ServiceHGSC007.java
View file @
14a79a5a
...
...
@@ -292,8 +292,17 @@ public class ServiceHGSC007 extends ServiceEPBase {
if
(
queryRow
.
containsKey
(
"depositDate"
))
{
queryRow
.
put
(
"depositDate"
,
DateUtils
.
formatShort
(
queryRow
.
get
(
"depositDate"
)));
}
List
result
=
DaoBase
.
getInstance
().
query
(
"HGSC007.queryByWt"
,
queryRow
);
inInfo
.
set
(
EiConstant
.
resultBlock
,
result
);
List
<
HashMap
<
String
,
Object
>>
result
=
(
List
<
HashMap
<
String
,
Object
>>)
DaoBase
.
getInstance
().
query
(
"HGSC007.queryByWt"
,
queryRow
);
List
<
String
>
processNameList
=
result
.
stream
()
.
map
(
item
->
(
String
)
item
.
get
(
"processName"
))
.
collect
(
Collectors
.
toList
());
List
<
String
>
totalWeightList
=
result
.
stream
()
.
map
(
item
->
String
.
valueOf
(
item
.
get
(
"totalWeight"
)))
// 使用 String.valueOf()
.
collect
(
Collectors
.
toList
());
EiBlock
block
=
new
EiBlock
(
"result"
);
block
.
set
(
"processNameList"
,
processNameList
);
block
.
set
(
"totalWeightList"
,
totalWeightList
);
inInfo
.
setBlock
(
block
);
}
catch
(
PlatException
e
)
{
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"查询失败"
);
}
...
...
@@ -323,8 +332,17 @@ public class ServiceHGSC007 extends ServiceEPBase {
if
(
queryRow
.
containsKey
(
"depositDate"
))
{
queryRow
.
put
(
"depositDate"
,
DateUtils
.
formatShort
(
queryRow
.
get
(
"depositDate"
)));
}
List
result
=
DaoBase
.
getInstance
().
query
(
"HGSC007.queryByDayWt"
,
queryRow
);
inInfo
.
set
(
EiConstant
.
resultBlock
,
result
);
List
<
HashMap
<
String
,
Object
>>
result
=
(
List
<
HashMap
<
String
,
Object
>>)
DaoBase
.
getInstance
().
query
(
"HGSC007.queryByDayWt"
,
queryRow
);
List
<
String
>
depositDateList
=
result
.
stream
()
.
map
(
item
->
(
String
)
item
.
get
(
"depositDate"
))
.
collect
(
Collectors
.
toList
());
List
<
String
>
totalWeightList
=
result
.
stream
()
.
map
(
item
->
String
.
valueOf
(
item
.
get
(
"totalWeight"
)))
// 使用 String.valueOf()
.
collect
(
Collectors
.
toList
());
EiBlock
block
=
new
EiBlock
(
"result"
);
block
.
set
(
"depositDateList"
,
depositDateList
);
block
.
set
(
"totalWeightList"
,
totalWeightList
);
inInfo
.
setBlock
(
block
);
}
catch
(
PlatException
e
)
{
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"查询失败"
);
}
...
...
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