Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
京
京能客户端
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王亚宁
京能客户端
Commits
66ebab2e
Commit
66ebab2e
authored
Aug 23, 2024
by
liangyb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#20240823 报表生成增加健壮性
parent
84357993
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
18 deletions
+24
-18
OBE-REPORT/src/com/gx/obe/report/dataset/word/JingNengEvaluationReportDataSet.java
.../report/dataset/word/JingNengEvaluationReportDataSet.java
+24
-18
No files found.
OBE-REPORT/src/com/gx/obe/report/dataset/word/JingNengEvaluationReportDataSet.java
View file @
66ebab2e
...
...
@@ -80,29 +80,35 @@ public class JingNengEvaluationReportDataSet extends BaseDateSet {
List
<
Map
<
String
,
String
>>
supplierAssMapList
=
new
ArrayList
<
Map
<
String
,
String
>>();
List
<
EvaluationStep
>
associationStepList
=
evaluationStepService
.
getEvaluationStepListByType
(
tenderProject
.
getId
(),
EvaluationStepEnum
.
ASSOCIATION_QUERY
);
if
(
null
!=
associationStepList
&&
associationStepList
.
size
()
>
0
){
EvaluationStep
step
=
associationStepList
.
get
(
0
);
List
<
SupplierEvaluationStep
>
resultList
=
supplierEvaluationStepService
.
getSupplierEvaluationStepByTenderIdAndStepId
(
tenderProject
.
getId
(),
step
.
getId
());
if
(
null
!=
resultList
&&
resultList
.
size
()
>
0
)
{
for
(
SupplierEvaluationStep
result
:
resultList
)
{
Map
<
String
,
String
>
supplierMap
=
new
HashMap
<
String
,
String
>();
supplierMap
.
put
(
"supplierName"
,
supplierNameMap
.
get
(
result
.
getSupplierId
()));
List
<
ExpertEvaluationResult
>
supplierResultList
=
expertEvaluationResultService
.
getSupplierStepAllExpertEvaluationResultList
(
tenderProject
.
getId
(),
step
.
getId
(),
result
.
getSupplierId
());
String
opinion
=
null
;
if
(
null
!=
supplierResultList
&&
supplierResultList
.
size
()
>
0
)
{
for
(
ExpertEvaluationResult
expertEvaluationResult
:
supplierResultList
)
{
if
(
null
==
opinion
)
{
opinion
=
expertEvaluationResult
.
getSupplierOpinion
();
}
else
{
opinion
=
opinion
.
concat
(
";"
).
concat
(
expertEvaluationResult
.
getSupplierOpinion
());
try
{
if
(
null
!=
associationStepList
&&
associationStepList
.
size
()
>
0
){
EvaluationStep
step
=
associationStepList
.
get
(
0
);
List
<
SupplierEvaluationStep
>
resultList
=
supplierEvaluationStepService
.
getSupplierEvaluationStepByTenderIdAndStepId
(
tenderProject
.
getId
(),
step
.
getId
());
if
(
null
!=
resultList
&&
resultList
.
size
()
>
0
)
{
for
(
SupplierEvaluationStep
result
:
resultList
)
{
Map
<
String
,
String
>
supplierMap
=
new
HashMap
<
String
,
String
>();
supplierMap
.
put
(
"supplierName"
,
supplierNameMap
.
get
(
result
.
getSupplierId
()));
List
<
ExpertEvaluationResult
>
supplierResultList
=
expertEvaluationResultService
.
getSupplierStepAllExpertEvaluationResultList
(
tenderProject
.
getId
(),
step
.
getId
(),
result
.
getSupplierId
());
String
opinion
=
null
;
if
(
null
!=
supplierResultList
&&
supplierResultList
.
size
()
>
0
)
{
for
(
ExpertEvaluationResult
expertEvaluationResult
:
supplierResultList
)
{
if
(
null
==
opinion
)
{
opinion
=
expertEvaluationResult
.
getSupplierOpinion
();
}
else
{
String
supplierOpinion
=
expertEvaluationResult
.
getSupplierOpinion
();
opinion
=
opinion
.
concat
(
";"
).
concat
(
supplierOpinion
!=
null
?
supplierOpinion
:
""
);
}
}
}
supplierMap
.
put
(
"opinion"
,
opinion
);
supplierMap
.
put
(
"result"
,
result
.
getAccessment
().
equals
(
com
.
gx
.
obe
.
components
.
core
.
enumeration
.
EvaluationStepEnum
.
QUALIFIED
)
?
"符合"
:
"不符合"
);
supplierAssMapList
.
add
(
supplierMap
);
}
supplierMap
.
put
(
"opinion"
,
opinion
);
supplierMap
.
put
(
"result"
,
result
.
getAccessment
().
equals
(
com
.
gx
.
obe
.
components
.
core
.
enumeration
.
EvaluationStepEnum
.
QUALIFIED
)
?
"符合"
:
"不符合"
);
supplierAssMapList
.
add
(
supplierMap
);
}
}
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
System
.
out
.
println
();
}
reportDataSet
.
putParam
(
"associationOpinionList"
,
supplierAssMapList
);
...
...
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