Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
T
tianjin-cement
Project
Project
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
竹天卫
tianjin-cement
Commits
da3c172a
Commit
da3c172a
authored
Mar 18, 2021
by
竹天卫
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
校核详情导出优化
parent
582a44ee
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
6 deletions
+12
-6
EntrustServiceImpl.java
...e/sc/cement/business/service/impl/EntrustServiceImpl.java
+12
-6
No files found.
cement-business/src/main/java/cn/wise/sc/cement/business/service/impl/EntrustServiceImpl.java
View file @
da3c172a
...
...
@@ -5797,17 +5797,23 @@ public class EntrustServiceImpl extends ServiceImpl<EntrustMapper, Entrust> impl
for
(
int
i
=
infoHeader
.
size
();
i
<
teamList
.
size
()
+
infoHeader
.
size
();
i
++)
{
XSSFCell
tempCell
=
row0
.
createCell
(
i
);
Team
team
=
teamList
.
get
(
i
-
infoHeader
.
size
());
List
<
SampleDistribution
>
sdList
=
groupByTeamId
.
get
(
team
.
getId
());
List
<
SampleDistribution
>
sdList2
=
new
ArrayList
<>();
String
lastResult
=
""
;
if
(
sdList
!=
null
&&
sdList
.
size
()
>
0
)
{
if
(
sdList
.
get
(
0
).
getCheckId
()
!=
null
)
{
SampleDistributionCheck
disCheck
=
sampleDistributionCheckMapper
.
selectById
(
sdList
.
get
(
0
).
getCheckId
());
sdList2
=
sdList
.
stream
().
filter
(
arg
->
(
arg
.
getSampleId
().
equals
(
sample
.
getId
()))).
collect
(
Collectors
.
toList
());
if
(
sdList2
!=
null
&&
sdList2
.
size
()>
0
){
if
(
sdList2
.
get
(
0
).
getCheckId
()
!=
null
)
{
SampleDistributionCheck
disCheck
=
sampleDistributionCheckMapper
.
selectById
(
sdList2
.
get
(
0
).
getCheckId
());
lastResult
=
disCheck
.
getLastResult
();
}
else
{
lastResult
=
sdList
.
get
(
0
).
getDistributionResult
();
lastResult
=
sdList2
.
get
(
0
).
getDistributionResult
();
}
}
}
tempCell
.
setCellValue
(
sdList
==
null
?
""
:
lastResult
);
tempCell
.
setCellValue
(
sdList
2
==
null
?
""
:
lastResult
);
tempCell
.
setCellStyle
(
style
);
}
...
...
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